private void OnNewMessage(string message) { UCONMessageEventArgs e = new UCONMessageEventArgs(message); EventArgExtensions.Raise<UCONMessageEventArgs>(e, this, ref NewMessage); }
private void NewMessage(Object sender, UCONMessageEventArgs e) { PBUCONServer server = sender as PBUCONServer; if (rtb.InvokeRequired) { rtb.Invoke(new MethodInvoker( delegate { rtb.AppendText(e.Message + "\n"); ScrollRTB(); } )); } }