public override void AddNew() { SystemEditForm sub = new SystemEditForm(); sub.Text = "新增-" + sub.Text; sub.ShowDialog(); Query(); }
public override void Modify() { if (gvData.FocusedRowHandle >= 0) { Guid Id = Guid.Parse(gvData.GetFocusedRowCellValue("Id").ToString()); SystemEditForm sub = new SystemEditForm(Id); sub.Text = "修改-" + sub.Text; if (sub.ShowDialog() == DialogResult.OK) { Query(); } } }