Пример #1
0
        public void SwitchForms(int s)
        {
            switch (selectedForm)
            {
            case 0:
                Employee.Hide();
                selectedForm = s;
                break;

            case 1:
                Manager.Hide();
                selectedForm = s;
                break;

            case 2:
                Department.Hide();
                selectedForm = s;
                break;

            case 3:
                SalaryGrade.Hide();
                selectedForm = s;
                break;

            case 4:
                Admins.Hide();
                selectedForm = s;
                break;
            }
        }
Пример #2
0
 public void HideForms()
 {
     Employee.Hide();
     Manager.Hide();
     Department.Hide();
     SalaryGrade.Hide();
     Admins.Hide();
 }