コード例 #1
0
 public MsnConversation(MSNPSharp.Messenger messenger, IMCommands imCommands, Contact contact)
     : base(imCommands)
 {
     _messenger = messenger;
     _contact = contact;
 }
コード例 #2
0
        private MsnChatWindow CreateConversationWindow(Conversation conversation, MSNPSharp.Contact remote)
        {
            foreach (MsnChatWindow cwindow in ConversationWindows)
            {
                if (cwindow.CanAttach(conversation))
                {
                    cwindow.AttachConversation(conversation);
                    return cwindow;
                }
            }

            MsnChatWindow chatWindow = new MsnChatWindow(conversation, this, remote);
            ConversationWindows.Add(chatWindow);
            return chatWindow;
        }
コード例 #3
0
 public MsnConversations(MSNPSharp.Messenger messenger, IMCommands imCommands)
 {
     _messenger = messenger;
     _imCommands = imCommands;
 }
コード例 #4
0
        private String ContactToMsnName(MSNPSharp.Contact contact)
        {
            String name = contact.Name;
            if (contact.PersonalMessage != null && !String.IsNullOrEmpty(contact.PersonalMessage.Message))
            {
                name += " - " + contact.PersonalMessage.Message;
            }
            if (contact.Name != contact.Mail)
            {
                name += " (" + contact.Mail + ")";
            }

            return name;
        }