private void BtnAddFee_Click(object sender, EventArgs e) { FmTransFeeInfo fm = new FmTransFeeInfo(); fm.SelectValue += (obj) => { Model.Info_place_fee info = obj as Model.Info_place_fee; mDataGridFee.AddItem <Model.Info_place_fee>(info); }; fm.ShowDialog(); }
private void BtnEditFee_Click(object sender, EventArgs e) { if (mDataGridFee.CurrentRow == null) { return; } Model.Info_place_fee old = mDataGridFee.GetCurrentEntity() as Model.Info_place_fee; FmTransFeeInfo fm = new FmTransFeeInfo(old); fm.SelectValue += (obj) => { Model.Info_place_fee info = obj as Model.Info_place_fee; mDataGridFee.EditCurrentItem <Model.Info_place_fee>(info); }; fm.ShowDialog(); }