public void AddVar(string nm) { Variab temp = new Variab(); temp.name = nm; dt.vars.Add(temp); }
public VarEd(Variab vr) { // // The InitializeComponent() call is required for Windows Forms designer support. // InitializeComponent(); this.vr = vr; textBox1.Text = vr.name; if (vr.getVal() != null) { textBox2.Text = vr.getVal().ToString(); } if (vr.getTp() == "text") { radioButton2.Checked = true; } else { radioButton1.Checked = true; } // // TODO: Add constructor code after the InitializeComponent() call. // }