void AddUser() { using (var dodaj = new UserDodaj()) { var result = dodaj.ShowDialog(); if (result == DialogResult.OK) { activeUser = dodaj.returnUser; LoadTasks(0); SetActiveName(); } } }
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; } } }