public ApplicationPage(Logic l, DataLogic.Patient p = null)
 {
     InitializeComponent();
     AppLogic = l;
     patient  = p;
     SpecializationCombo.ItemsSource   = Enum.GetValues(typeof(Specialization)).Cast <Specialization>();
     SpecializationCombo.SelectedIndex = 0;
     SurnameTextBox_Search.Focus();
     VisitDatePicker.DisplayDateStart = DateTime.Today;
 }
 public SearchDoctorPage(Logic l)
 {
     InitializeComponent();
     AppLogic = l;
     Page     = 1;
     SpecializationCombo.ItemsSource   = Enum.GetValues(typeof(SpecializationPL)).Cast <SpecializationPL>();
     SpecializationCombo.SelectedIndex = 0;
     SurnameTextBox_Search.Focus();
     DisableNext();
     DataContext = this;
 }