private void btnAddUser_Click(object sender, EventArgs e) { AddUserForm addUserForm = new AddUserForm(); addUserForm.SetParent(this); addUserForm.ShowDialog(); }
private void btnAddUser_Click(object sender, EventArgs e) { AddUserForm addUserForm = new AddUserForm(); if (addUserForm.ShowDialog() == DialogResult.OK) { addUserForm.SetParent(this); addUserForm.ShowDialog(); } updateDataGridView(); }