示例#1
0
 /// <summary>
 /// 新增规则
 /// </summary>
 public override void AddNew()
 {
     FBlackIP_User sub = new FBlackIP_User();
     if (sub.ShowDialog() == DialogResult.OK)
     {
         Query();
     }
 }
示例#2
0
        /// <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();
                }
            }
        }