Beispiel #1
0
        public TherapyEditViewModel(DailyTherapy therapy)
        {
            this.therapy = therapy ?? default;

            Date    = therapy.Date;
            Dose    = therapy.Dose;
            IsTaken = therapy.IsTaken;

            DatabaseManager = DatabaseManager.Instance;
        }
 public GeneralWindowViewModel()
 {
     LastDoctorAppointment = dbManager.GetLastDoctorAppointment();
     NextDoctorAppointment = dbManager.GetNextDoctorAppointment();
     DailyTherapy          = dbManager.GetDailyTherapy();
 }