private void OnConsoleOutput(string text, TextType textType) { var args = new ConsoleEventArgs() { Text = text, TextType = textType }; OnConsoleOutput(args); }
private void ScriptingEngineOnConsoleOutput(object sender, ConsoleEventArgs eventArgs) { if(ShowConsoleOutput) Execute.OnUIThread(() => Write(eventArgs.Text, TextType.Output)); }
private void OnConsoleOutput(ConsoleEventArgs e) { EventHandler<ConsoleEventArgs> handler = ConsoleOutput; if (handler != null) handler(this, e); }