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