示例#1
0
 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;
     }
 }
示例#2
0
 private void OpenShutDownBox(object sender, RoutedEventArgs e)
 {
     Cairo.ShowShutdownConfirmation();
 }