示例#1
0
 private void OnNewMessage(string message)
 {
     UCONMessageEventArgs e = new UCONMessageEventArgs(message);
     EventArgExtensions.Raise<UCONMessageEventArgs>(e, this, ref NewMessage);
 }
示例#2
0
        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();
                    }
                ));
            }
        }