Esempio n. 1
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            PatientDetails patient = value as PatientDetails;

            if (patient != null)
            {
                var val = patient.Saturation + "%";
                //var BP2 = patient.BloodPressure2.ToString();
                return(val);
            }
            else
            {
                return(null);
            }
        }
Esempio n. 2
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            PatientDetails patient = value as PatientDetails;

            if (patient != null)
            {
                var BP1 = patient.BloodPressure.ToString();
                var BP2 = patient.BloodPressure2.ToString();
                return(BP1 + "/" + BP2);
            }
            else
            {
                return(null);
            }
        }
Esempio n. 3
0
        public CurrentDetailsViewModel()
        {
            randomData     = new ObservableCollection <ChartPoint>();
            randomData2    = new ObservableCollection <ChartPoint>();
            randomData3    = new ObservableCollection <ChartPoint>();
            rdModel        = new PatientDataRandomModel();
            timer          = new DispatcherTimer();
            timer.Interval = TimeSpan.FromMilliseconds(50);
            timer.Tick    += timer_Tick;
            timer.Start();

            randomData     = rdModel.randomData;
            randomData2    = rdModel.randomData2;
            randomData3    = rdModel.randomData3;
            patientDetails = new PatientDetails();
        }
Esempio n. 4
0
 public LayoutViewModel()
 {
     this.Model_BlockA    = new List <PatientDetails>();
     this.Model_BlockB    = new List <PatientDetails>();
     this.Model_BlockC    = new List <PatientDetails>();
     this.TotalList       = new List <PatientDetails>();
     this.TotalList       = PatientDetails.GetPatientDetails();
     this.SelectedPatient = this.TotalList[3];
     foreach (PatientDetails Patient in TotalList)
     {
         if (Patient.Block == "A")
         {
             this.Model_BlockA.Add(Patient);
         }
         if (Patient.Block == "B")
         {
             this.Model_BlockB.Add(Patient);
         }
         if (Patient.Block == "C")
         {
             this.Model_BlockC.Add(Patient);
         }
     }
 }
Esempio n. 5
0
 public PatientSelectedCommand(PatientDetails SelectedRecord)
 {
     selectedRecord = SelectedRecord;
 }