public PriorityTimePage(StartPatientWindow pp, PatientMakesAppointmentByPriorityPage pzppp) { parent = pp; parentp = pzppp; listStart = new List <string>(); listEnd = new List <string>(); InitializeComponent(); DataContext = this;; BlackOutDates(); submit.IsEnabled = false; date.IsEnabled = false; slobodniTerminiLabela.Visibility = Visibility.Hidden; PrikazSlobodnihTermina.Visibility = Visibility.Hidden; InitializeStartTimes(); endTime.IsEnabled = false; }
public PriorityDoctorPage(StartPatientWindow pp, PatientMakesAppointmentByPriorityPage pzppp) { parent = pp; parentp = pzppp; termini = new List <Appointment>(); InitializeComponent(); ljekariLista = new List <global::Doctor>(); foreach (Doctor l in _doctorControler.GetAll()) { if (l.doctorType == DoctorType.generalPractitioner) { ljekariLista.Add(l); } } ljekari.ItemsSource = ljekariLista; submit.IsEnabled = false; BlackOutDates(); date.IsEnabled = false; timeLabel.Visibility = Visibility.Hidden; times.Visibility = Visibility.Hidden; availableTimes = new List <string>(); }