Esempio n. 1
0
        public AddMedicinePageModel(ICompartmentsService medicinesService)
        {
            this.medicinesService = medicinesService;

            //get first medicine
            currentMedicine = medicinesService.GetMedicineById(2).Result;
            //bind medicine to the Page's ItemSource
            // MedName = 0;    //Important! ensure the list is empty first to force refresh!
            MedName = currentMedicine.Name;
        }
Esempio n. 2
0
 public PillboxPageModel(ICompartmentsService compartmentsService)
 {
     this.compartmentsService = compartmentsService;
 }