Пример #1
0
 void AddUser()
 {
     using (var dodaj = new UserDodaj())
     {
         var result = dodaj.ShowDialog();
         if (result == DialogResult.OK)
         {
             activeUser = dodaj.returnUser;
             LoadTasks(0);
             SetActiveName();
         }
     }
 }
Пример #2
0
 private void AddUserBtn_Click(object sender, EventArgs e)
 {
     using (var dodaj = new UserDodaj())
     {
         var result = dodaj.ShowDialog();
         if (result == DialogResult.OK)
         {
             LoadData();
         }
         if (DGV_UserList.Rows.Count != 0)
         {
             this.ControlBox = true;
         }
     }
 }