Пример #1
0
        public override async Task Initialize()
        {
            await base.Initialize();

            var selectedOption = await userPreferences.CalendarNotificationsSettings().FirstAsync();

            AvailableOptions.ForEach(opt => opt.Selected = opt.Option == selectedOption);
        }
Пример #2
0
 /// <summary>
 /// Updates the collection of available handlers
 /// </summary>
 private void _updateAvailableHandlers()
 {
     AvailableOptions.ForEach(x => x.AvailableHandlers.Clear());
     foreach (LoadedHandler handler in _factory.LoadedHandlers)
     {
         ResultsHandlerViewModel vm = new ResultsHandlerViewModel(handler);
         _registerHandlerVM(vm);
     }
 }