private void BtnAddGt_Click(object sender, EventArgs e) { FmSzcFormula fm = new FmSzcFormula(); fm.SelectValue += (obj) => { RanageFormula info = obj as RanageFormula; mDataGridGt.AddItem <RanageFormula>(info); }; fm.ShowDialog(); }
private void BtnEditGt_Click(object sender, EventArgs e) { if (mDataGridGt.CurrentRow == null) { return; } RanageFormula old = mDataGridGt.GetCurrentEntity() as RanageFormula; FmSzcFormula fm = new FmSzcFormula(old); fm.SelectValue += (obj) => { RanageFormula info = obj as RanageFormula; mDataGridGt.EditCurrentItem <RanageFormula>(info); }; fm.ShowDialog(); }