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); } }
private void ResetButton_Click(object sender, RoutedEventArgs e) { SpecializationsList = SpecializationsForScheduleTab.GetRepresentation(); MedicalWorkersList = MedicalWorkerForScheduleTab.GetRepresentation(); AvailabilitiesList = AvailabilitiesForScheduleTab.GetRepresentation(); }
private void VisitDatePicker_SelectedDateChanged(object sender, SelectionChangedEventArgs e) { dayOfWeek = VisitDatePicker.SelectedDate.Value.DayOfWeek; AvailabilitiesList = AvailabilitiesForScheduleTab.GetRepresentation(dayOfWeek.Value); }