Beispiel #1
0
 public void ProcessEndedEventCaught(string result)
 {
     // test if this process was started by us - we are assuming that FD can
     // only run one process at a time.
     if (runningProcessName != null)
     {
         bool success = result.EndsWith("(0)");
         if (processEndedHandler != null)
         {
             processEndedHandler.DynamicInvoke(new object[] { success });
         }
         // restore current directory
         Environment.CurrentDirectory = savedDirectory;
         processEndedHandler          = null;
         runningProcessName           = null;
     }
 }