示例#1
0
 void im_MessageReceived(object sender, IMReceivedEventArgs e)
 {
     this.BeginInvoke(new MethodInvoker(delegate
     {
         if (e.From == sendTo)
         {
             talkText.Text += String.Format("[{0}] {1}\r\n", e.From, e.Message);
         }
     }));
 }
示例#2
0
 protected virtual void OnMessageReceived(IMReceivedEventArgs e)
 {
     if (MessageReceived != null)
         MessageReceived(this, e);
 }