private void DisplaySelectUsersDialogAndUpdateUserList() { using (EditUsersDialog selectUserDialog = new EditUsersDialog(Users)) { DialogResult dr = selectUserDialog.ShowDialog(); if (dr == DialogResult.OK) { Users = selectUserDialog.Users; SaveUserList(); } } }
private void button_SelectUsers_Click(object sender, EventArgs e) { using (EditUsersDialog selectUserDialog = new EditUsersDialog(Users)) { DialogResult dr = selectUserDialog.ShowDialog(); if (dr == DialogResult.OK) { Users = selectUserDialog.Users; SaveUserList(); } } }