Пример #1
0
        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();
        }
        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();
        }