public void WriteOutputText(OutputTextEventArgs outEventArgs)
 {
     if (OnOutputTextReceived != null && outEventArgs != null)
     {
         OnOutputTextReceived(this, outEventArgs);
     }
 }
        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);
     }
 }
 private void TextRelayer_OnOutputTextReceived(object sender, OutputTextEventArgs e)
 {
     WriteOutputText(e);
 }