private void TrackMessage(IWebElement msg) { string id = msg.GetAttribute("id"); if (ChatExists(id)) { return; } CChat chat = new CChat(chrome, msg); chat.MessagesReceived += Chat_MessagesReceived; chats.Add(chat); }
private void Chat_MessagesReceived(CChat chat, List <IWebElement> messages) { replies.MessageReceived(this, chat, messages); }