/// <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="ProcessInterface.ProcessEventArgs"/> instance containing the event data.</param> void processInterace_OnProcessOutput(object sender, ProcessInterface.ProcessEventArgs args) { // Write the output, in white WriteOutput(args.Content, Color.Black); // Fire the output event. FireConsoleOutputEvent(args.Content); }
/// <summary> /// Handles the OnProcessError event of the processInterace control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="args">The <see cref="ProcessInterface.ProcessEventArgs"/> instance containing the event data.</param> void processInterace_OnProcessError(object sender, ProcessInterface.ProcessEventArgs args) { // Write the output, in red WriteOutput(args.Content, Color.Red); // Fire the output event. FireConsoleOutputEvent(args.Content); }
/// <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="ProcessInterface.ProcessEventArgs"/> instance containing the event data.</param> 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; })); }
protected override void processInterface_OnProcessError(object sender, ProcessInterface.ProcessEventArgs args) { base.processInterface_OnProcessError(sender, args); ErrorStringBuilder.Append(args.Content); }
protected override void processInterface_OnProcessExit(object sender, ProcessInterface.ProcessEventArgs args) { }
/// <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="ProcessInterface.ProcessEventArgs"/> instance containing the event data.</param> void processInterace_OnProcessInput(object sender, ProcessInterface.ProcessEventArgs args) { throw new NotImplementedException(); }
protected virtual void processInterface_OnProcessExit(object sender, ProcessInterface.ProcessEventArgs args) { }