示例#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);
            }
        }
示例#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);
            }
        }
示例#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();
        }
示例#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);
         }
     }
 }
示例#5
0
 public PatientSelectedCommand(PatientDetails SelectedRecord)
 {
     selectedRecord = SelectedRecord;
 }