Example #1
0
 /// <summary>
 /// Cancels a pending shutdown or reboot, if one exists
 /// </summary>
 public static void CancelShutdown()
 {
     try
     {
         ShutdownManager.CancelShutdown();
         NetworkUtils.LogNetwork("Shutdown/reboot canceled", MessageType.Warning);
     }
     catch
     {
         NetworkUtils.LogNetwork("Failed to cancel shutdown/reboot: no command exists", MessageType.Warning);
     }
 }
Example #2
0
 private void btn_Cancel_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
 {
     ShutdownManager.CancelShutdown();
 }