Beispiel #1
0
        public void OnGoToSelectTermCommand()
        {
            _app.TempAppointement = new Appointement()
            {
                Doctor = SelectedDoctor, Patient = _patientController.GetPatientByEmail(PatientEmailText)
            };
            _app.TempDateTime = AppointementDate;

            mainWindowDataContext.OnNav("schedule_apointement_term");
        }
        private void OnPatientEmailChanged()
        {
            ErrorText = "";
            AllFlag   = false;
            var o = _patientController.GetPatientByEmail(PatientEmailText);

            if (o is null)
            {
                ErrorText = "Patient with that email doesn't exist.";
            }
            AddAppointements();
            FilteredAppointements = new ObservableCollection <Appointement>(from a in FilteredAppointements where a.Patient.Email.Value == PatientEmailText select a);
            AllFlag = true;
            NextPageCommand.RaiseCanExecuteChanged();
        }