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; }
public PillboxPageModel(ICompartmentsService compartmentsService) { this.compartmentsService = compartmentsService; }