示例#1
0
 private void DataGridListOfCalendarDoctor_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     try
     {
         ClassCalendar       calendar          = GetCalendarForSelectedCalendarInComboboxFromDataBase();
         ClassCalendarDoctor calendarDoctor    = GetCalendarDoctorForSelectedCalendarDoctorInDataGridFromDataBase(calendar.CalendarId);
         WindowDoctorTerms   windowDoctorTerms = new WindowDoctorTerms(sql.TermLisTSelectedDoctor(calendar.CalendarId, calendarDoctor.Doctor.Doctor_id), calendar.Year, calendar.Month);
         windowDoctorTerms.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error");
     }
 }