public void WriteOutputText(string line) { OutputTextEventArgs outEventArgs = new OutputTextEventArgs(); outEventArgs.AddTextToOutput(line); if (OnOutputTextReceived != null) { OnOutputTextReceived(this, outEventArgs); } }
public void RelayTextOutput(List <string> output) { if (OnOutputTextReceived != null && output != null) { OutputTextEventArgs args = new OutputTextEventArgs(); foreach (string s in output) { args.AddTextToOutput(s); } OnOutputTextReceived(this, args); } }