protected override void Done()
        {
            if (!calendarListVisible)
            {
                SelectedCalendarIds.Clear();
            }

            UserPreferences.SetEnabledCalendars(SelectedCalendarIds.ToArray());
            base.Done();
        }
Example #2
0
        protected override async Task OnDone()
        {
            if (!calendarListVisible)
            {
                SelectedCalendarIds.Clear();
            }

            UserPreferences.SetEnabledCalendars(SelectedCalendarIds.ToArray());
            await base.OnDone();
        }
 private void onCalendarSelected()
 {
     userPreferences.SetEnabledCalendars(SelectedCalendarIds.ToArray());
 }
 private Task done()
 => navigationService.Close(this, SelectedCalendarIds.ToArray());
 private IObservable <Unit> done()
 => Observable
 .FromAsync(async() => await navigationService.Close(this, SelectedCalendarIds.ToArray()))
 .SelectUnit();