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