public override void AddNew() { GoodsEditForm goods = new GoodsEditForm(); if (goods.ShowDialog() == DialogResult.OK) { Query(); } }
public override void Modify() { if (gridView1.FocusedRowHandle >= 0) { Guid Id = Guid.Parse(gridView1.GetFocusedRowCellValue("Id").ToString()); var model = manager.GetOneModel(Id); GoodsEditForm sub = new GoodsEditForm(model); if (sub.ShowDialog() == DialogResult.OK) { Query(); } } }