/// <summary> /// 新增方法 /// </summary> public override void AddNew() { UserEditForm sub = new UserEditForm(); sub.ShowDialog(); Query(); }
/// <summary> /// 修改方法 /// </summary> public override void Modify() { object obj_ID = gvData.GetFocusedRowCellValue("Id"); if (obj_ID != null) { UserEditForm sub = new UserEditForm((Guid)obj_ID); if (sub.ShowDialog() == DialogResult.OK) { Query(); } } }