コード例 #1
0
        /// <summary>
        /// 新增方法
        /// </summary>
        public override void AddNew()
        {
            UserEditForm sub = new UserEditForm();

            sub.ShowDialog();
            Query();
        }
コード例 #2
0
        /// <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();
                }
            }
        }