예제 #1
0
 private void comboBox3_SelectedIndexChanged(object sender, EventArgs e)
 {
     textBox20.Clear();
     textBox14.Clear();
     textBox2.Clear();
     if (comboBox3.Text != "Select Doctor")
     {
         PlaceAppointmentmysql doctorinfo = new PlaceAppointmentmysql();
         List <string>         doctor     = doctorinfo.findDoctorInformation(comboBox3.Text);
         try
         {
             textBox20.Text = doctor[0];
             textBox14.Text = doctor[1];
             textBox2.Text  = doctor[2];
         }
         catch (Exception)
         {
             textBox20.Clear();
             textBox14.Clear();
             textBox2.Clear();
         }
     }
 }