예제 #1
0
 public ConditionWin(ref CTriggerDataCondition ctdc, MainForm f, ConditionWin cw)
 {
     this.ctdc = ctdc;
     this.f    = f;
     this.cw   = cw;
     InitializeComponent();
     rootcondition_center.DropDownStyle = ComboBoxStyle.DropDownList;
     rootcondition_left.DropDownStyle   = ComboBoxStyle.DropDownList;
     rootcondition_right.DropDownStyle  = ComboBoxStyle.DropDownList;
     for (int i = 0; i < 27; ++i)
     {
         rootcondition_center.Items.Add(Lang.Translate(Conditions.GetInfo(i).Name));
     }
     for (int i = 0; i < Conditions.Non_central().Length; ++i)
     {
         string name = Lang.Translate(Conditions.GetInfo(Conditions.Non_central()[i]).Name);
         rootcondition_right.Items.Add(name);
         rootcondition_left.Items.Add(name);
     }
     rootcondition_right.Items.Add(Lang.Translate("cond_subcondition"));
     rootcondition_left.Items.Add(Lang.Translate("cond_subcondition"));
     foreach (Control c in Controls)
     {
         string ui = Lang.Translate(c.Name);
         if (!string.IsNullOrEmpty(ui))
         {
             c.Text = ui;
         }
     }
     LoadCondition();
 }
예제 #2
0
        private void SubConditionRight_Click(object sender, EventArgs e)
        {
            ConditionWin cw = new ConditionWin(ref ai.controllers[triggers_list.SelectedIndex].CTD[controllers_list.SelectedIndex].rootConditon.ConditionRight, this, null);

            cw.Show();
        }
예제 #3
0
        private void SubConditionRight_Click(object sender, EventArgs e)
        {
            ConditionWin cw = new ConditionWin(ref ctdc.ConditionRight, null, this);

            cw.Show();
        }