Esempio n. 1
0
        private void onSelectOption(SelectableCalendarNotificationsOptionViewModel selectableOption)
        {
            var enabled = selectableOption.Option != CalendarNotificationsOption.Disabled;

            userPreferences.SetCalendarNotificationsEnabled(enabled);

            if (enabled)
            {
                userPreferences.SetTimeSpanBeforeCalendarNotifications(selectableOption.Option.Duration());
            }

            Close();
        }
        private void onSelectOption(CalendarNotificationsOption option)
        {
            var enabled = option != CalendarNotificationsOption.Disabled;

            userPreferences.SetCalendarNotificationsEnabled(enabled);

            if (enabled)
            {
                userPreferences.SetTimeSpanBeforeCalendarNotifications(option.Duration());
            }

            navigationService.Close(this, Unit.Default);
        }