示例#1
0
 private void OnContactOnline(Messenger sender, ContactEventArgs e)
 {
     Console.Text = e.Contact.Name + " went online\r\n";
     //messenger.SynchronizeList();
     //messenger.SetStatus(MSNStatus.Online);
     messenger.RequestConversation(e.Contact.Mail);
 }
示例#2
0
 private void OnContactOffline(Messenger sender, ContactEventArgs e)
 {
     Console.Text = e.Contact.Name + " went offline\r\n";
 }
示例#3
0
        private void ContactJoined(Conversation sender, ContactEventArgs e)
        {
            // someone joined our conversation! remember that this also occurs when you are
            // only talking to 1 other person. Log this event.
            Console.Text = e.Contact.Name + " joined the conversation.\r\n";

            // now say something back. You can send messages using the Conversation object.
            sender.SendMessage("Hello world!");
        }
示例#4
0
 private void ContactTyping(Conversation sender, ContactEventArgs e)
 {
     //Console.WriteLine(e.Contact.Name + " is typing");
 }
示例#5
0
 private void OnContactOffline(Messenger sender, ContactEventArgs e)
 {
     Console.WriteLine(e.Contact.Name + " went offline\r\n");
 }