Пример #1
0
 private async Task InstallPip_ExecutedAsync(object sender, ExecutedRoutedEventArgs e)
 {
     try {
         await _provider.InstallPip();
     } catch (OperationCanceledException) {
     } catch (Exception ex) when(!ex.IsCriticalException())
     {
         ToolWindow.SendUnhandledException(this, ExceptionDispatchInfo.Capture(ex));
     }
 }
Пример #2
0
 private async void InstallPip_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     try {
         await _provider.InstallPip();
     } catch (OperationCanceledException) {
     } catch (Exception ex) {
         if (ErrorHandler.IsCriticalException(ex))
         {
             throw;
         }
         ToolWindow.SendUnhandledException(this, ExceptionDispatchInfo.Capture(ex));
     }
 }