Exemple #1
0
        public override void AddNew()
        {
            UserEditForm sub = new UserEditForm();

            sub.ShowDialog();
            Query();
        }
Exemple #2
0
        public override void Modify()
        {
            object obj_ID = gvUser.GetFocusedRowCellValue("Id");

            if (obj_ID != null)
            {
                UserEditForm sub = new UserEditForm((Guid)obj_ID);
                if (sub.ShowDialog() == DialogResult.OK)
                {
                    Query();
                }
            }
        }