public override void ControlSetup(Statement name) { List <String> vList = Util.GetVariableList(this, 0); this.comboBox2.Items.Clear(); this.comboBox2.Items.AddRange(vList.ToArray()); this.comboBox1.Items.Clear(); this.comboBox1.Items.AddRange(vList.ToArray()); List <String> vList1 = Util.GetVariableList(this, 4); this.comboBox3.Items.Clear(); this.comboBox3.Items.AddRange(vList1.ToArray()); XmlMold XmlM = (XmlMold)name; comboBox1.SelectedItem = XmlM.InVariable; comboBox2.SelectedItem = XmlM.OutVariable; if (XmlM.BoolOnOf) { checkBox1.Checked = XmlM.BoolOnOf; comboBox3.SelectedItem = XmlM.BooolVariable; } Dictionary <string, string> CheckDic = Util.GetVariableType(this); if (comboBox2.SelectedIndex != -1) { Type = CheckDic[comboBox2.Text]; } }
public override Statement CreateProgramDefine() { XmlMold XmlM = new XmlMold(); XmlM.InVariable = comboBox1.Text; XmlM.OutVariable = comboBox2.Text; XmlM.BooolVariable = comboBox3.Text; XmlM.BoolOnOf = checkBox1.Checked; return(XmlM); }