예제 #1
0
        private void init()
        {
            string[] patients = dbconn.selectFromWhereTwo("PolicyNumber", "Appointments", "DoctorIdentity", identity, "AppointmentDate", date);
            foreach (string patient in patients)
            {
                cb_policyNumber.Items.Add(patient);
            }
            cb_hospital.Items.Add("Да");
            cb_hospital.Items.Add("Нет");

            string[] speciality = dbconn.selectFrom("Speciality", "Specialties");
            foreach (string s in speciality)
            {
                cb_directions.Items.Add(s);
            }
        }
예제 #2
0
 public void init()
 {
     try
     {
         string[] posts = dbconn.selectFrom("Speciality", "Specialties");
         foreach (string post in posts)
         {
             cb_specialist.Items.Add(post);
         }
     }
     catch
     {
         MessageBox.Show("Проверьте интернет подключение", "Ошибка!", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }