public void ShowWorkSpecialistForm(UserAccount user, LoginForm loginForm) { foreach (Form form in Application.OpenForms) { if (String.Compare(form.Name, "WorkSpecialistForm") == 0) { form.Show(); return; } } workSpecialistForm = new WorkSpecialistForm(user, loginForm); workSpecialistForm.Show(); }