Beispiel #1
0
        /// <summary>
        /// Кнопка "Редактировать правила"
        /// </summary>
        private void пускToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmRules f = new frmRules(tempES);

            if (f.ShowDialog() == DialogResult.OK)
            {
                saved = false;
            }
        }
Beispiel #2
0
 public frmAddReason(frmRules f, bool allrules)
 {
     InitializeComponent();
     this.f = f;
     foreach (string s in f.es.Vars.Keys)
     {
         if (allrules || f.es.Vars[s].MyType != VarType.Queried)
         {
             comboBox2.Items.Add(s);
         }
     }
 }
 public frmAddReason(frmRules f, Fact fact)
 {
     InitializeComponent();
     this.f = f;
     foreach (string s in f.es.Vars.Keys)
     {
         comboBox2.Items.Add(s);
     }
     this.fact      = fact;
     comboBox2.Text = fact.V.Name;
     comboBox3.Text = fact.Weight;
 }
Beispiel #4
0
 public frmAddRule(frmRules f, string rName, string reasoning)
     : this(f)
 {
     textBox1.Text = rName;
     textBox2.Text = reasoning;
 }
Beispiel #5
0
 public frmAddRule(frmRules f)
 {
     InitializeComponent();
     this.f = f;
 }