Пример #1
0
 private void StartIntenseMode()
 {
     if (App.IntenseModeEnabled)
     {
         App.IntenseModeEnabled = false;
         BackAgent.RemoveAgent("SmartGuardPeriodicAgent");
         MessageBox.Show(AppResources.IntenseModeOFF, AppResources.ApplicationTitle, MessageBoxButton.OK);
     }
     else
     {
         if (staticObjects.Address != null)
         {
             BackAgent.StartIntenseMode();
         }
         else
         {
             MessageBox.Show(AppResources.IntenseModeCantStart, AppResources.SettingsView_IntenseMode, MessageBoxButton.OK);
         }
     }
 }
Пример #2
0
 void tglIntenseMode_Unchecked(object sender, RoutedEventArgs e)
 {
     App.IntenseModeEnabled = false;
     tglIntenseMode.Content = AppResources.General_Stopped;
     BackAgent.RemoveAgent("SmartGuardPeriodicAgent");
 }