Пример #1
0
 private void cmbBxEditField_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (cmbBxEditField.SelectedIndex == 0)
     {
         panelAddDesignation.Visible   = false;
         panelChangeSalaryCode.Visible = false;
         Leave.Visible           = false;
         panelAddFaculty.Visible = true;
         panelAddFaculty.BringToFront();
     }
     else if (cmbBxEditField.SelectedIndex == 1)
     {
         panelChangeSalaryCode.Visible = false;
         panelAddFaculty.Visible       = false;
         Leave.Visible = false;
         panelAddDesignation.Visible = true;
         panelAddDesignation.BringToFront();
     }
     else if (cmbBxEditField.SelectedIndex == 2)
     {
         panelChangeSalaryCode.Visible = true;
         panelChangeSalaryCode.BringToFront();
     }
     else if (cmbBxEditField.SelectedIndex == 3)
     {
         panelAddDesignation.Visible   = false;
         panelChangeSalaryCode.Visible = false;
         panelAddFaculty.Visible       = false;
         Leave.Visible = true;
         Leave.BringToFront();
     }
 }