Example #1
0
 private void _HideBalloon()
 {
     Taskbar.Show();
     _allowExit             = true;
     notifyIconMain.Visible = false;
     Hide();
 }
Example #2
0
 private static void Run()
 {
     AppDomain.CurrentDomain.ProcessExit += OnProcessExit;
     Taskbar.Show();
     Debug.WriteLine(Setting.Instance);
     SystemEvents.PowerModeChanged += SystemEvents_PowerModeChanged;
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     CheckBattery();
     GlobalConfiguration.Configuration.UseMemoryStorage();
     //FormMain.Instance.ShowBalloon(Setting.Instance.MinBatteryAlertTitle, Setting.Instance.MinBatteryAlertMessage,false);
     using (new BackgroundJobServer())
     {
         RecurringJob.AddOrUpdate("Main", () => CheckBattery(), Cron.Minutely);
         Application.Run();
     }
 }
Example #3
0
 private static void OnProcessExit(object sender, EventArgs e)
 {
     Taskbar.Show();
 }