Пример #1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            frmAddEditUser frm = new frmAddEditUser(MethodType.Add, new Users());

            frm.ShowDialog();
            Init();
        }
Пример #2
0
 private void btnEditUserRepo_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (UserGridView.GetFocusedRow() is Users item)
     {
         frmAddEditUser frm = new frmAddEditUser(MethodType.Edit, item);
         frm.ShowDialog();
         Init();
     }
 }