Example #1
0
 private void Update()
 {
     _bgService.GenerateLiveTile();
     _bgService.UpdateBadge();
     if (AppSettings.OpenGet("Showtoast") != null)
     {
         if (AppSettings.Get <bool>("Showtoast") == true)
         {
             _bgService.GenerateQuickAction();
         }
     }
 }
Example #2
0
        void swicher_Toggled(object sender, RoutedEventArgs e)
        {
            var toggleSwitch = sender as ToggleSwitch;

            if (toggleSwitch != null)
            {
                if (toggleSwitch.IsOn == true)
                {
                    AppSettings.Set("Showtoast", true);
                    _service.GenerateQuickAction();
                }
                else
                {
                    AppSettings.Set("Showtoast", false);
                }
            }
        }
Example #3
0
 public void Run(IBackgroundTaskInstance taskInstance)
 {
     deferal = taskInstance.GetDeferral();
     taskInstance.Canceled       += TaskInstance_Canceled;
     taskInstance.Task.Completed += Task_Completed;
     System.Diagnostics.Debug.WriteLine("Hello From Live bg");
     try
     {
         _bgService.GenerateLiveTile();
         _bgService.UpdateBadge();
         if (AppSettings.OpenGet("Showtoast") != null)
         {
             if (AppSettings.Get <bool>("Showtoast") == true)
             {
                 _bgService.GenerateQuickAction();
             }
         }
     }
     catch { }
 }