public void AppendOutput(string text, bool newLine = false) { EventHandler <OutputAvailableEventArgs> handler = OnOutput; if (handler != null) { OutputAvailableEventArgs args = new OutputAvailableEventArgs(text + (newLine ? Environment.NewLine : string.Empty)); handler(this, args); } }
public bool AppendData(string text, bool newLine = false) { EventHandler <OutputAvailableEventArgs> handler = OnData; if (handler != null) { OutputAvailableEventArgs args = new OutputAvailableEventArgs(text + (newLine ? Environment.NewLine : string.Empty)); handler(this, args); return(true); } return(false); }
static void Print(object sender, OutputAvailableEventArgs e) { Console.Write(e.Output); s_PrintingCompleted = true; }
static void Print(object sender, OutputAvailableEventArgs e) { Console.Write(e.Output); }