Пример #1
0
        private void App_EnteredBackground(object sender, EnteredBackgroundEventArgs e)
        {
            var deferral = e.GetDeferral();

            BLogger.Logger.Info("App has entered background...");
            CoreWindowLogic.SaveSettings();
            CoreWindowLogic.UpdateSmtc();
            deferral.Complete();
        }
Пример #2
0
        private async void App_EnteredBackground(object sender, EnteredBackgroundEventArgs e)
        {
            var deferral = e.GetDeferral();

            CoreWindowLogic.SaveSettings();
            CoreWindowLogic.UpdateSmtc(true);
            CoreWindowLogic.EnableDisableSmtc();
            await Task.Delay(200);

            CoreWindowLogic.isBackground = true;
            deferral.Complete();
        }
Пример #3
0
        private async void App_EnteredBackground(object sender, EnteredBackgroundEventArgs e)
        {
            var deferral = e.GetDeferral();

            CoreWindowLogic.SaveSettings();
            CoreWindowLogic.UpdateSmtc(true);
            if (!firsttime)
            {
                CoreWindowLogic.EnableDisableSmtc();
            }
            else
            {
                firsttime = false;
            }
            await Task.Delay(200);

            CoreWindowLogic.isBackground = true;
            BLogger.Logger.Info("App has entered background...");
            deferral.Complete();
        }