Exemplo n.º 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;
            }
        }
Exemplo n.º 2
0
 public void HideForms()
 {
     Employee.Hide();
     Manager.Hide();
     Department.Hide();
     SalaryGrade.Hide();
     Admins.Hide();
 }
Exemplo n.º 3
0
 private void grade_Click(object sender, EventArgs e)
 {
     navsele((Button)sender);
     SwitchForms(3);
     SalaryGrade.Show();
     SalaryGrade.filtergrade.Focus();
     SalaryGrade.DisplayGrade();
 }