Exemple #1
0
        private void OnEvent(object sender, ProcessEventArgs eventArgs)
        {
            switch (eventArgs.EventType)
            {
            case ProcessEventType.Started:
                OnEvent(Started, eventArgs);
                break;

            case ProcessEventType.StandardOutputRead:
                OnEvent(StandardOutputRead, eventArgs);
                break;

            case ProcessEventType.StandardErrorRead:
                OnEvent(StandardErrorRead, eventArgs);
                break;
            }
        }
Exemple #2
0
 private void process_StandardErrorRead(object sender, ProcessEventArgs e)
 {
     StandardErrorList.Add(e.Line);
     AllOutputList.Add(e.Line);
 }