예제 #1
0
 public PatientStatusView(Patient p)
 {
     if (p == Patient.A)
     {
         status = (Application.Current as App).StatService.Patient1;
     }
     else
     {
         status = (Application.Current as App).StatService.Patient2;
     }
     MaxVol   = 0.25F;
     MaxPress = 111200;
     MinPress = 110999;
     VolPaint = new SKPaint {
         Color = SKColors.Blue
     };
     PressPaint = new SKPaint {
         Color = SKColors.Green
     };
     InitializeComponent();
 }
 public PatientStatusService()
 {
     Patient1 = new PatientStatus(Patient.A);
     Patient2 = new PatientStatus(Patient.B);
     CurrTest = TestStatus.Stopped;
 }