Ejemplo n.º 1
0
        public void LoadMessageList(IEnumerable <YamsterMessage> messagesToLoad)
        {
            this.threadToLoad = null;

            this.messagesToLoad     = messagesToLoad.OrderBy(x => x.MessageId).ToList();
            this.messageToHighlight = null;

            rebuildViewLagger.RequestAction();
            UpdateUI();
        }
Ejemplo n.º 2
0
        public void AddThread(YamsterThread thread)
        {
            Threads.Add(thread);

            var latestMessageInThread = thread.Messages.Last();

            if (this.LatestMessage == null ||
                latestMessageInThread.MessageId > this.LatestMessage.MessageId)
            {
                this.LatestMessage = latestMessageInThread;
            }
        }
Ejemplo n.º 3
0
 public void ReplyToThread(YamsterThread threadBeingRepliedTo)
 {
     if (threadBeingRepliedTo == null)
     {
         throw new ArgumentNullException("threadBeingRepliedTo");
     }
     this.ComposerMode          = MessageComposerMode.ReplyToThread;
     this.GroupContext          = threadBeingRepliedTo.Group;
     this.ThreadContext         = threadBeingRepliedTo;
     this.MessageBeingRepliedTo = null;
     UpdateUI();
 }
Ejemplo n.º 4
0
        public void LoadThread(YamsterThread thread, YamsterMessage messageToHighlight = null)
        {
            if (messageToHighlight != null && messageToHighlight.Thread != thread)
            {
                throw new ArgumentException("messageToHighlight must belong to the specified thread");
            }

            this.threadToLoad       = thread;
            this.messagesToLoad     = threadToLoad.Messages;
            this.messageToHighlight = messageToHighlight;

            rebuildViewLagger.RequestAction();
            UpdateUI();
        }
Ejemplo n.º 5
0
 public void AddThreadAtEnd(YamsterThread thread)
 {
     ctlGrid.AddItem(thread);
     ctlGrid.QueueDraw();
 }