Example #1
0
 virtual protected void OnFileReceived(IMReceivedEventArgs e)
 {
     if (FileReceived != null)
     {
         FileReceived(this, e);
     }
 }
Example #2
0
 virtual protected void OnMessageReceived(IMReceivedEventArgs e)
 {
     if (MessageReceived != null)
     {
         MessageReceived(this, e);
     }
 }
Example #3
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);
         }
     }));
 }
Example #4
0
        virtual protected void OnMessageReceived(IMReceivedEventArgs e)
        {
            //if (MessageReceived != null)
            //{
            if (main.talks.ContainsKey(e.From))
            {
                MessageReceived(this, e);
            }
            else
            {
                TalkForm tf = new TalkForm(this, e.From);
                main.talks.Add(e.From, tf);
                tf.Show();
                OnUserAvail(new IMAvailEventArgs(e.From, true));
                OnMessageReceived(new IMReceivedEventArgs(e.From, e.Message));
                //MessageReceived(this, e);
            }

            //}
        }