private async void Initialize(int scheduleEntryId)
        {
            var schedules = await CoreViewModel.GetCurrentTasksAsync();

            ScheduleEntry = schedules.First(i => i.Id == scheduleEntryId);

            DeleteCommand.SetCanExecute(true);
        }
Пример #2
0
 public BaseScheduleEntryPageViewModel(CoreViewModel coreViewModel, int scheduleEntryId) : base(coreViewModel)
 {
     ScheduleEntryId = scheduleEntryId;
 }
Пример #3
0
 public BasePageViewModel(CoreViewModel coreViewModel)
 {
     CoreViewModel = coreViewModel;
 }
        public ViewScheduleEntryPageViewModel(CoreViewModel coreViewModel, int scheduleEntryId) : base(coreViewModel, scheduleEntryId)
        {
            DeleteCommand = new BasicCommand(Delete, defaultCanExecute: false);

            Initialize(scheduleEntryId);
        }
 private async void Initialize()
 {
     Schedules = await CoreViewModel.GetCurrentTasksAsync();
 }
 public MainPageViewModel(CoreViewModel coreViewModel) : base(coreViewModel)
 {
     Initialize();
 }