Пример #1
0
 /// <summary>Formats and writes the text on an Chat Event to the GUI</summary>
 /// <param name="message"></param>
 public void OnChatTopicChanged(MessageEventArgs_341 message)
 {
     var guiMessage = new GuiMessageItem(message);
     ChangeTopic(guiMessage);
 }
Пример #2
0
        // 341
        private void OnChatTopicEvent(object sender, int messageId, string messageName, string message)
        {
            if (ChatTopicEvent != null) {
                var words = SplitMessage(message);
                int chatId = Convert.ToInt16(words[0]);
                var nick = words[1];
                var login = words[2];
                var ip = IPAddress.Parse(words[3]);
                var time = DateTime.Parse(words[4]);
                var topic = words[5];

                var m = new MessageEventArgs_341(messageId, messageName, chatId, nick, login, ip, time, topic);

                ChatTopicEvent(m);
            }
        }
Пример #3
0
        public void OnTopicChanged(MessageEventArgs_341 message)
        {
            if (message.ChatId == chatId) {
                topic = message;

                if (ChatTopicChangedEvent != null) {
                    ChatTopicChangedEvent(message);
                }
            }
        }
Пример #4
0
 /// <summary>Creates a HTML writable object from a ChatTopicItem</summary>
 /// <param name="messageArgs"></param>
 public GuiMessageItem(MessageEventArgs_341 messageArgs)
 {
     timeStamp = messageArgs.Time;
     nickName = messageArgs.Nick;
     message = messageArgs.Topic;
 }