A class the wraps a process, allowing programmatic input and output.
Ejemplo n.º 1
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="ProcessEventArgs" /> instance containing the event data.
		/// </param>
		private void processInterace_OnProcessInput(object sender, ProcessInterface.ProcessEventArgs args) {
			throw new NotImplementedException();
		}
Ejemplo n.º 2
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="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;
			}));
		}
Ejemplo n.º 3
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="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);
		}