Exemplo n.º 1
0
        private void 公式编辑ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var win = new PrewarningAddForm(this.Formula);

            win.ShowDialog();
            this.Text = this.Formula.计算方法;
        }
Exemplo n.º 2
0
        private void 新增ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frm = new PrewarningAddForm();

            frm.ShowDialog();

            this.bindingSourceSettings.DataSource = Program.WarningFormulas.ToList <Model.IWarningFormula>();
        }
Exemplo n.º 3
0
        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>();
        }