Exemplo n.º 1
0
 private void MainWindow_OnClosing(object sender, CancelEventArgs e)
 {
     if (!MainProcess.HasExited)
     {
         MainProcess.Kill();
         string output = MainProcess.StandardOutput.ReadToEnd();
         string Error  = MainProcess.StandardError.ReadToEnd();
     }
 }