/// <summary> /// Remove variable /// </summary> /// <param name="sender">sender</param> /// <param name="e">arg</param> private void varsRemoveItem_Click(object sender, EventArgs e) { if (FunLab.DeleteVariables(vars, po)) { this.AddUndo(); txtSource.Text = po.ToString(); this.Text = "Editor - " + this.fileName + " *"; } }
/// <summary> /// When delete button clicked /// </summary> /// <param name="sender">object</param> /// <param name="e">arg</param> private void btnDelete_Click(object sender, EventArgs e) { this.Hide(); FunLab.DeleteVariables(vars, pv); this.Show(); }