コード例 #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();
 }
コード例 #3
0
 private void OpenRebootBox(object sender, RoutedEventArgs e)
 {
     Cairo.ShowRebootConfirmation();
 }
コード例 #4
0
 private void OpenLogoffBox(object sender, RoutedEventArgs e)
 {
     Cairo.ShowLogOffConfirmation();
 }