Exemple #1
0
 private void btnNewUser_Click(object sender, EventArgs e)
 {
     Usr.UserAddForm frm = new Usr.UserAddForm();
     frm.IsAdd = true;
     frm.ShowDialog();
     LoadUser();
 }
Exemple #2
0
 private void btnUpdateUser_Click(object sender, EventArgs e)
 {
     try
     {
         if (lstUers.Count < 0)
         {
             return;
         }
         if (dgvUser.SelectedRows.Count <= 0)
         {
             Dialogs.Show("请选择需要修改的人员!");
             return;
         }
         string          usrId = dgvUser.SelectedRows[0].Cells[0].Value.ToString();
         Usr.UserAddForm frm   = new Usr.UserAddForm();
         frm.IsAdd    = false;
         frm.UpUserId = usrId;
         frm.ShowDialog();
         LoadUser();
     }catch (Exception ex)
     {
         LogHelper.AppLoger.Error(ex);
     }
 }