Пример #1
0
        private void OnNews(MessageEventArgs_320322 message)
        {
            var n = new NewsMessageItem(message);

            if (!newsList.Contains(n))
            {
                newsList.Add(n);
            }
        }
Пример #2
0
        private void OnNewsPosted(MessageEventArgs_320322 message)
        {
            var n = new NewsMessageItem(message);

            if (!newsList.Contains(n))
            {
                newsList.Add(n);
                if (NewsPostedEvent != null)
                {
                    NewsPostedEvent(n);
                }
            }
        }
Пример #3
0
 public NewsMessage(NewsMessageItem post)
 {
     this.post = post;
 }
Пример #4
0
 private void OnNews(MessageEventArgs_320322 message)
 {
     var n = new NewsMessageItem(message);
     if (!newsList.Contains(n)) {
         newsList.Add(n);
     }
 }
Пример #5
0
 private void OnNewsPosted(MessageEventArgs_320322 message)
 {
     var n = new NewsMessageItem(message);
     if (!newsList.Contains(n)) {
         newsList.Add(n);
         if (NewsPostedEvent != null) {
             NewsPostedEvent(n);
         }
     }
 }
Пример #6
0
 private void OnNewsPostReceived(NewsMessageItem newPost)
 {
     var m = new NewsMessage(newPost);
     AppendHTMLToWebBrowser(newsWebBrowser, m);
 }
Пример #7
0
 /// <summary>Constructor for news post</summary>
 /// <param name="newPost"></param>
 public GuiMessageItem(NewsMessageItem newPost)
 {
     timeStamp = newPost.Time;
     nickName = newPost.Nick;
     message = newPost.Post;
 }