public NewFlowerpotPageViewModel(INavigationService navigationService, IPageDialogService pageDialogService, IFlowerpotRepository flowerpotRepository) : base(navigationService) { this.navigationService = navigationService; this.pageDialogService = pageDialogService; this.flowerpotRepository = flowerpotRepository; CloseModalCommand = new Command(async() => await CloseModalAsync()); SaveCommand = new Command(async() => await SaveCommandAsync()); DaysOfTheWeek = new List <string>(CustomHelpers.GetWeekdays(DayOfWeek.Monday)); }
public SchedulePageViewModel(INavigationService navigationService, IPageDialogService dialogService, IFlowerpotRepository flowerpotRepository) : base(navigationService) { this.navigationService = navigationService; this.dialogService = dialogService; this.flowerpotRepository = flowerpotRepository; AddNewCommand = new Command(async() => await ShowAddModalAsync()); RefreshCommand = new Command(async() => await RefreshCommandAsync()); ItemTappedCommand = new Command(async(obj) => await ItemTappedCommandAsync(obj)); Flowerpots = new List <FlowerpotGroup>(); RefreshCommand.Execute(null); }