Ejemplo n.º 1
0
        private void CheckForNewChat(IReadOnlyCollection<IWebElement> elemChatWindows)
        {
            for (int i = 0; i < elemChatWindows.Count; i++) {
                string sID = GetProfileLink(elemChatWindows.ElementAt(i));

                if (sID == null) {
                    continue;
                }
                if (!windows.ContainsKey(sID)) {
                    CWindow window = new CWindow(this, replier.Whitelist, elemChatWindows.ElementAt(i));
                    window.SetReplyMode(new CInherit());
                    window.ChatMsgReceived += window_ChatMsgReceived;

                    CDebug.Print("Added a new chat: " + window.ChatName, ConsoleColor.Green);
                    windows.Add(sID, window);
                    if (ChatAdded != null) {
                        ChatAdded(window);
                    }
                    this.replier.ChatAdded_(window);
                }
            }
        }
Ejemplo n.º 2
0
 public void SyncReplyMode(CWindow window)
 {
     window.SetReplyMode(chatMaster.ParentReplyMode);
 }