void OnEditUsers(object sender, EventArgs e) { if (editUsersForm != null) { editUsersForm.Activate(); } else { editUsersForm = new EditUsersForm(gitUserManager); editUsersForm.Closed += OnCloseEditUsersForm; editUsersForm.Show(); } }
void OnCloseEditUsersForm(object sender, EventArgs e) { editUsersForm = null; }