/// <summary>
        /// Initializes a new instance of the PatientsListViewModel class.
        /// </summary>
        public PatientSheetViewModel()
        {
            ViewModelLocator vml = new ViewModelLocator();

            WindowContent             = vml.PatientSheetView;
            WindowContent.DataContext = this;

            Selected    = false;
            BackCommand = new RelayCommand(() =>
            {
                ViewModelLocator vm   = new ViewModelLocator();
                Selected              = false;
                SelectedObservation   = null;
                vm.Window.DataContext = vm.PatientList;
            });

            AddCommand = new RelayCommand(() => {
                CanViewAdd = true;
            });

            TrashPatientCommand = new RelayCommand(() =>
            {
                ViewModelLocator vm = new ViewModelLocator();
                bool delete         = BusinessManagement.Patient.DeletePatient(PatientId);
                vm.PatientList.PatientListUpdate();
                Selected              = false;
                SelectedObservation   = null;
                vm.Window.DataContext = vm.PatientList;
            });

            PatientBloodPressureSerie = new ObservableCollection <Serie>
            {
                new LineSerie
                {
                    Name          = "BloodPressure",
                    PrimaryValues = new ObservableCollection <double> {
                        0
                    }
                }
            };

            PatientTemperatureSerie = new ObservableCollection <Serie>
            {
                new LineSerie
                {
                    Name          = "Temperature",
                    PrimaryValues = new ObservableCollection <double> {
                        38
                    },
                    Color = Color.FromArgb(255, 255, 0, 0)
                }
            };

            CanViewAdd = false;

            View.AddObservationView addObservationView = new View.AddObservationView();
            AddObservationContent          = addObservationView;
            addObservationView.DataContext = vml.AddObservation;
            s = new ServiceLiveManager(this);
        }
        /// <summary>
        /// Initializes a new instance of the PatientsListViewModel class.
        /// </summary>
        public PatientSheetViewModel()
        {
            ViewModelLocator vml = new ViewModelLocator();
             WindowContent = vml.PatientSheetView;
             WindowContent.DataContext = this;

            Selected = false;
            BackCommand = new RelayCommand(() =>
            {
                ViewModelLocator vm = new ViewModelLocator();
                Selected = false;
                SelectedObservation = null;
                vm.Window.DataContext = vm.PatientList;
            });

            AddCommand = new RelayCommand(() => {
                CanViewAdd = true;
            });

            TrashPatientCommand = new RelayCommand(() =>
            {
                ViewModelLocator vm = new ViewModelLocator();
                bool delete = BusinessManagement.Patient.DeletePatient(PatientId);
                vm.PatientList.PatientListUpdate();
                Selected = false;
                SelectedObservation = null;
                vm.Window.DataContext = vm.PatientList;
            });

            PatientBloodPressureSerie = new ObservableCollection<Serie>
            {
                new LineSerie
                {
                    Name = "BloodPressure",
                    PrimaryValues = new ObservableCollection<double> { 0}
                }
            };

            PatientTemperatureSerie = new ObservableCollection<Serie>
            {
                new LineSerie
                {
                    Name = "Temperature",
                    PrimaryValues = new ObservableCollection<double> { 38},
                    Color=Color.FromArgb(255,255,0,0)
                }
            };

            CanViewAdd = false;

            View.AddObservationView addObservationView = new View.AddObservationView();
            AddObservationContent = addObservationView;
            addObservationView.DataContext = vml.AddObservation;
            s = new ServiceLiveManager(this);
        }