Пример #1
0
 private void OnNews(MessageEventArgs_320322 message)
 {
     var n = new NewsMessageItem(message);
     if (!newsList.Contains(n)) {
         newsList.Add(n);
     }
 }
Пример #2
0
 public NewsMessageItem(MessageEventArgs_320322 messageEventArgs)
 {
     nick = messageEventArgs.Nick;
     postTime = messageEventArgs.PostTime;
     post = messageEventArgs.Post;
 }
Пример #3
0
 private void OnNewsPosted(MessageEventArgs_320322 message)
 {
     var n = new NewsMessageItem(message);
     if (!newsList.Contains(n)) {
         newsList.Add(n);
         if (NewsPostedEvent != null) {
             NewsPostedEvent(n);
         }
     }
 }
Пример #4
0
        // 322
        private void OnNewsPostedEvent(object sender, int messageId, string messageName, string message)
        {
            if (NewsPostedEvent != null) {
                var w = SplitMessage(message);
                var nick = w[0];
                var postTime = DateTime.Parse(w[1]);
                var post = w[2];

                var m = new MessageEventArgs_320322(messageId, messageName, nick, postTime, post);

                NewsPostedEvent(m);
            }
        }