Example #1
0
 private void showInfo_comboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (showInfo_comboBox.SelectedIndex == 0)
     {
         id_label.Visible    = true;
         ID_comboBox.Visible = true;
     }
     else if (showInfo_comboBox.SelectedIndex == 1)
     {
         ShowBloodGroup sbp = new ShowBloodGroup();
         sbp.Show();
         this.Hide();
     }
     else if (showInfo_comboBox.SelectedIndex == 2)
     {
         UnivInfo ui = new UnivInfo();
         ui.Show();
         this.Hide();
     }
     else if (showInfo_comboBox.SelectedIndex == 3)
     {
         StudentNumberInUniv ob = new StudentNumberInUniv();
         ob.Show();
         this.Hide();
     }
 }
 private void showInfo_comboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (showInfo_comboBox.SelectedIndex == 0)
     {
         id_label.Visible = true;
         ID_comboBox.Visible = true;
      }
     else if (showInfo_comboBox.SelectedIndex == 1) {
         ShowBloodGroup sbp = new ShowBloodGroup();
         sbp.Show();
         this.Hide();
         }
     else if (showInfo_comboBox.SelectedIndex == 2) {
         UnivInfo ui = new UnivInfo();
         ui.Show();
         this.Hide();
     }
     else if (showInfo_comboBox.SelectedIndex == 3) {
         StudentNumberInUniv ob = new StudentNumberInUniv();
         ob.Show();
         this.Hide();
     }
 }