private void 公式编辑ToolStripMenuItem_Click(object sender, EventArgs e) { var win = new PrewarningAddForm(this.Formula); win.ShowDialog(); this.Text = this.Formula.计算方法; }
private void 新增ToolStripMenuItem_Click(object sender, EventArgs e) { var frm = new PrewarningAddForm(); frm.ShowDialog(); this.bindingSourceSettings.DataSource = Program.WarningFormulas.ToList <Model.IWarningFormula>(); }
private void FormulaEdit() { var item = this.bindingSourceSettings.Current as Model.WarningFormulaOne; var frm = new PrewarningAddForm(item); frm.ShowDialog(); this.bindingSourceSettings.DataSource = Program.WarningFormulas.ToList <Model.IWarningFormula>(); }