Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
        /// <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);
        }
Esempio n. 3
0
        /// <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;
            }));
        }
Esempio n. 4
0
 protected override void processInterface_OnProcessError(object sender, ProcessInterface.ProcessEventArgs args)
 {
     base.processInterface_OnProcessError(sender, args);
     ErrorStringBuilder.Append(args.Content);
 }
Esempio n. 5
0
 protected override void processInterface_OnProcessExit(object sender, ProcessInterface.ProcessEventArgs args)
 {
 }
Esempio n. 6
0
 /// <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();
 }
Esempio n. 7
0
 protected virtual void processInterface_OnProcessExit(object sender, ProcessInterface.ProcessEventArgs args)
 {
 }