Ejemplo n.º 1
0
        private void ExecuteRecentPatientSelectedCommand(PatientScheduleItem psri)
        {
            //var localSettings = Windows.Storage.ApplicationData.Current.LocalSettings;

            //localSettings.Values["CurrentPatientID"] = psri.ID;
            PageNavigationService pns = new PageNavigationService();
            pns.PatientID = psri.ID;
            ShowViewModel<PatientOverviewViewModel>();
        }
Ejemplo n.º 2
0
        public async void InitializePatientOverview()
        {
            //this.DefaultViewModel["CanGoBack"] = this._previousContent != null;

         //   var localSettings = Windows.Storage.ApplicationData.Current.LocalSettings;
           // Object value = localSettings.Values["CurrentPatientID"];

           // if (value != null)
           // {
            PageNavigationService pns = new PageNavigationService();

            string currentPatientID = pns.PatientID;
                Patient = await PatientDataService.GetPatient(UnityDataService.UnityAppUser, currentPatientID);
           // }

            Patients = new ObservableCollection<PatientItem>();
            Patients.Add(Patient);

            try
            {
                GetPatientData(Patient.ID, ""); //"426"
            }
            catch (Exception ex)
            {
                ErrorHandler eh = new ErrorHandler(ex, "Patient Overview GetData");
                eh.ShowErrorDialog();
                return;
            }

            List<PatientItem> lstRecentPatients = await PatientDataService.GetRecentPatients(UnityDataService.UnityAppUser);
            RecentPatients = new ObservableCollection<PatientItem>(lstRecentPatients);
        }