Example #1
0
 /// <summary>
 /// Add variable
 /// </summary>
 /// <param name="sender">sender</param>
 /// <param name="e">arg</param>
 private void varsAddItem_Click(object sender, EventArgs e)
 {
     if (FunLab.AddNewVariable(vars, po))
     {
         this.AddUndo();
         txtSource.Text = po.ToString();
         this.Text      = "Editor - " + this.fileName + " *";
     }
 }
Example #2
0
 /// <summary>
 /// When add button clicked
 /// </summary>
 /// <param name="sender">object</param>
 /// <param name="e">arg</param>
 private void btnAdd_Click(object sender, EventArgs e)
 {
     this.Hide();
     FunLab.AddNewVariable(vars, pv);
     this.Show();
 }