private void Window_Closing(object sender, CancelEventArgs e) { if (Startup.IsShuttingDown) // show the windows desktop { Shell.ToggleDesktopIcons(true); } else if (altF4Pressed) // Show the Shutdown Confirmation Window { Cairo.ShowShutdownConfirmation(); e.Cancel = true; } else // Eat it !!! { e.Cancel = true; } }
private void OpenShutDownBox(object sender, RoutedEventArgs e) { Cairo.ShowShutdownConfirmation(); }