/// <summary> Handles the OnProcessInput event of the processInterace control. </summary> /// <param name="sender"> The source of the event. </param> /// <param name="args"> /// The <see cref="ProcessEventArgs" /> instance containing the event data. /// </param> private void processInterace_OnProcessInput(object sender, ProcessInterface.ProcessEventArgs args) { throw new NotImplementedException(); }
/// <summary> Handles the OnProcessExit event of the processInterace control. </summary> /// <param name="sender"> The source of the event. </param> /// <param name="args"> /// The <see cref="ProcessEventArgs" /> instance containing the event data. /// </param> private void processInterace_OnProcessExit(object sender, ProcessInterface.ProcessEventArgs args) { // Are we showing diagnostics? if (ShowDiagnostics) { WriteOutput(System.Environment.NewLine + processInterace.ProcessFileName + " exited.", Color.FromArgb(255, 0, 255, 0)); } // Read only again. Invoke((Action)(() => { richTextBoxConsole.ReadOnly = true; })); }
/// <summary> Handles the OnProcessOutput event of the processInterace control. </summary> /// <param name="sender"> The source of the event. </param> /// <param name="args"> /// The <see cref="ProcessEventArgs" /> instance containing the event data. /// </param> private void processInterace_OnProcessOutput(object sender, ProcessInterface.ProcessEventArgs args) { // Write the output, in white WriteOutput(args.Content, Color.White); // Fire the output event. FireConsoleOutputEvent(args.Content); }