private void OnConsoleWrite(string text) { if (ConsoleWrite != null) { ConsoleWriteEventArgs args = new ConsoleWriteEventArgs(text); ConsoleWrite(this, args); } }
protected void OnConsoleWrite(EvaluationContext context, string text) { if (ConsoleWrite != null) { ConsoleWriteEventArgs args = new ConsoleWriteEventArgs(text); ConsoleWrite(this, args); } context.Write(text); }