private void NewMessage(object sender, NewMessageEventArgs e) { Console.WriteLine(e.message); if (OnNewMessage != null) OnNewMessage(null, e); }
// This delegate enables asynchronous calls for setting // the text property on a consoleOutput1 control. private void NewLigniteMessageReceived(object sender, NewMessageEventArgs e) { BroadcastMessage(e.message); }