Beispiel #1
0
        private async Task UpdateBackgroundService()
        {
            await ServiceLink.SetEnabledAsync(Settings.Default.BackgroundEnabled);

            await ServiceLink.SetInitialDelayAsync((uint)Settings.Default.InitialBackgroundMailCheckInterval);

            await ServiceLink.SetIntervalDelayAsync((uint)Settings.Default.BackgroundMailCheckInterval);

            await ServiceLink.SetSupressFullscreenAsync(!Settings.Default.SupressNotificationsFullscreen);

            Settings.Default.UpdateBackgroundSettings = 0;
            Settings.Default.Save();
        }