Esempio n. 1
0
 public MsnConversation(MSNPSharp.Messenger messenger, IMCommands imCommands, Contact contact)
     : base(imCommands)
 {
     _messenger = messenger;
     _contact = contact;
 }
Esempio n. 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;
        }
 public MsnConversations(MSNPSharp.Messenger messenger, IMCommands imCommands)
 {
     _messenger = messenger;
     _imCommands = imCommands;
 }
Esempio n. 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;
        }