private void butEditGroup_Click(object sender, EventArgs e) { if (listUserGroupTabUserGroups.SelectedIndex == -1) { MsgBox.Show(this, "Please select a User Group to edit."); return; } //Call an event that bubbles back up to the calling Form. EditUserGroupClick?.Invoke(this, new SecurityEventArgs(SelectedUserGroup)); }
private void listUserGroupTabUserGroups_DoubleClick(object sender, EventArgs e) { //Call an event that bubbles back up to the calling Form. EditUserGroupClick?.Invoke(this, new SecurityEventArgs(SelectedUserGroup)); }