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