Esempio n. 1
0
 private void SearchButton_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         AvailabilitiesList = AvailabilitiesForScheduleTab.GetRepresentation(dayOfWeek.Value)
                              .Where(x => x.MedicalWorkerId == MedicalWorkersList[MedicalWorkerSearchComboBox.SelectedIndex].Id)
                              .Where(x => x.SpecializationId == SpecializationsList[SpecializationSearchComboBox.SelectedIndex].SpecializationId)
                              .ToList();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Esempio n. 2
0
 private void ResetButton_Click(object sender, RoutedEventArgs e)
 {
     SpecializationsList = SpecializationsForScheduleTab.GetRepresentation();
     MedicalWorkersList  = MedicalWorkerForScheduleTab.GetRepresentation();
     AvailabilitiesList  = AvailabilitiesForScheduleTab.GetRepresentation();
 }
Esempio n. 3
0
 private void VisitDatePicker_SelectedDateChanged(object sender, SelectionChangedEventArgs e)
 {
     dayOfWeek          = VisitDatePicker.SelectedDate.Value.DayOfWeek;
     AvailabilitiesList = AvailabilitiesForScheduleTab.GetRepresentation(dayOfWeek.Value);
 }