private static void SystemEvents_SessionEnding(object sender, Microsoft.Win32.SessionEndingEventArgs e) { if (applicationContext != null) { applicationContext.ExitThread(); } }
static void SystemEvents_SessionEnding(object sender, Microsoft.Win32.SessionEndingEventArgs e) { try { SavePlaylists(); } catch (Exception ex) { ErrorLogger.Log(ex); } }
// 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); } } }
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; } }
private void SystemEvents_SessionEnding(object sender, Microsoft.Win32.SessionEndingEventArgs e) { Shutdown(); }
private void SystemEvents_SessionEnding(object sender, Microsoft.Win32.SessionEndingEventArgs e) { Debug.WriteLine("SystemEvents_SessionEnding"); SVDMain_FormClosing(this, new FormClosingEventArgs(CloseReason.WindowsShutDown, false)); }
void OnOut(object sender, Microsoft.Win32.SessionEndingEventArgs e) { controller.OnOut(); }
static void TurnOff(object o, Microsoft.Win32.SessionEndingEventArgs e) { sendEmail("Session ended", "", null); }
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)); }
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(); }
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(); }
void SystemEvents_SessionEnding(object sender, Microsoft.Win32.SessionEndingEventArgs e) { Dispose(true); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SystemEvents_SessionEnding(object sender, Microsoft.Win32.SessionEndingEventArgs e) { config.Save(); }