Beispiel #1
0
 private static void SystemEvents_SessionEnding(object sender, Microsoft.Win32.SessionEndingEventArgs e)
 {
     if (applicationContext != null)
     {
         applicationContext.ExitThread();
     }
 }
Beispiel #2
0
 static void SystemEvents_SessionEnding(object sender, Microsoft.Win32.SessionEndingEventArgs e)
 {
     try
     {
         SavePlaylists();
     }
     catch (Exception ex)
     {
         ErrorLogger.Log(ex);
     }
 }
Beispiel #3
0
// Melden wenn Windows beendet wird
        private void WinShutdown(object sender, Microsoft.Win32.SessionEndingEventArgs e)
        {
            foreach (BackupSetInfo bs in backup.ListOfBackupSetInfo)
            {
                if (bs.BackupWend == "true")
                {
                    e.Cancel = true;
                    NotiText("Meldung", "suche Änderungen                 ");
                    btnBackup_Click(button1, null);
                }
            }
        }
Beispiel #4
0
        private void SystemEvents_SessionEnding(object sender, Microsoft.Win32.SessionEndingEventArgs e)
        {
            switch (e.Reason)
            {
            case Microsoft.Win32.SessionEndReasons.Logoff:
                EventHelper.FireEventIfNotNull(SessionLogoff, this, EventArgs.Empty, _logger);
                break;

            case Microsoft.Win32.SessionEndReasons.SystemShutdown:
                EventHelper.FireEventIfNotNull(SystemShutdown, this, EventArgs.Empty, _logger);
                break;
            }
        }
Beispiel #5
0
 private void SystemEvents_SessionEnding(object sender, Microsoft.Win32.SessionEndingEventArgs e)
 {
     Shutdown();
 }
Beispiel #6
0
 private void SystemEvents_SessionEnding(object sender, Microsoft.Win32.SessionEndingEventArgs e)
 {
     Debug.WriteLine("SystemEvents_SessionEnding");
     SVDMain_FormClosing(this, new FormClosingEventArgs(CloseReason.WindowsShutDown, false));
 }
Beispiel #7
0
 void OnOut(object sender, Microsoft.Win32.SessionEndingEventArgs e)
 {
     controller.OnOut();
 }
Beispiel #8
0
 static void TurnOff(object o, Microsoft.Win32.SessionEndingEventArgs e)
 {
     sendEmail("Session ended", "", null);
 }
Beispiel #9
0
 private static void HandleSessionEnding(object sender, Microsoft.Win32.SessionEndingEventArgs e)
 {
     DebugOutput("Session ending: " + e.Reason);
     HandlePowerModeChanged(sender, new Microsoft.Win32.PowerModeChangedEventArgs(Microsoft.Win32.PowerModes.Suspend));
 }
Beispiel #10
0
 void SessionEndingHandler(object sender, Microsoft.Win32.SessionEndingEventArgs args)
 {
     FileLogger.Warn($"ProxySetter: restore proxy setting due to power off");
     Libs.Sys.ProxySetter.UpdateProxySettingOnDemand(orgSysProxySetting);
 }
 private void SystemEvents_SessionEnding(object sender, Microsoft.Win32.SessionEndingEventArgs e)
 {
     tb_main.Text += $"SystemEvents_SessionEnding:{e.Reason}\r\n";
 }
 private void SystemEvents_SessionEnding(object sender, Microsoft.Win32.SessionEndingEventArgs e)
 {
     Miner.EmergencyExit = true;
     Miner.StopMiner();
     Application.Current.Shutdown();
 }
Beispiel #13
0
 private static void SystemEvents_SessionEnding(object sender, Microsoft.Win32.SessionEndingEventArgs e)
 {
     L4Logger.Info("SystemEvents_SessionEnding");
     XFS_DevicesCollection.Instance.GetAll().ForEach(c => c.Close());
 }
 private static void SystemEvents_SessionEnding(object sender, Microsoft.Win32.SessionEndingEventArgs e)
 {
     throw new NotImplementedException();
 }
Beispiel #15
0
 void SystemEvents_SessionEnding(object sender, Microsoft.Win32.SessionEndingEventArgs e)
 {
     Dispose(true);
 }
Beispiel #16
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void SystemEvents_SessionEnding(object sender, Microsoft.Win32.SessionEndingEventArgs e)
 {
     config.Save();
 }