public ConfirmDeleteUserForm(SelectedUserForm selectedUserForm, string userID) { _selectedUserForm = selectedUserForm; _selectedUserForm.ShowInTaskbar = false; _userId = userID; InitializeComponent(); }
private void registeredUsersTable_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0) { string dataValue = registeredUsersTable.Rows[e.RowIndex].Cells[0].Value.ToString(); _selectedUserForm = new SelectedUserForm(dataValue, this); this.Enabled = false; _selectedUserForm.Show(); } }