/// <summary> /// 新增规则 /// </summary> public override void AddNew() { FBlackIP_User sub = new FBlackIP_User(); if (sub.ShowDialog() == DialogResult.OK) { Query(); } }
/// <summary> /// 修改规则 /// </summary> public override void Modify() { object id = gvData.GetFocusedRowCellValue("Id"); if (id != null) { var BlackIPId = clsPublic.GetObjGUID(id); Models.ACL_BlackIP md = lsSource.FirstOrDefault(a => a.Id == BlackIPId); FBlackIP_User sub = new FBlackIP_User(md); if (sub.ShowDialog() == DialogResult.OK) { Query(); } } }