Esempio n. 1
0
 /// <summary>
 /// Go to the next priority unread message.
 /// </summary>
 private void GoToNextPriorityUnread(InboxConversation conversation)
 {
     if (conversation != null && conversation.UnreadCount > 0)
     {
         conversation.MarkRead();
     }
     FoldersTree.NextUnread(FolderOptions.NextUnread | FolderOptions.Priority);
 }
Esempio n. 2
0
        /// <summary>
        /// Action the specified ID.
        /// </summary>
        /// <param name="id">An action ID</param>
        public override void Action(ActionID id)
        {
            switch (id)
            {
            case ActionID.Refresh:
                if (_thisForum != null)
                {
                    _thisForum.Refresh();
                }
                foreach (Folder topic in _currentFolder.Folder.Children)
                {
                    topic.Refresh();
                }
                break;

            case ActionID.Participants:
                FoldersTree.DisplayParticipants(_thisForum.Name);
                break;

            case ActionID.ManageForum:
                FoldersTree.ManageForum(_thisForum);
                break;

            case ActionID.NextUnread:
                FoldersTree.NextUnread(FolderOptions.NextUnread);
                break;

            case ActionID.NextPriorityUnread:
                FoldersTree.NextUnread(FolderOptions.NextUnread | FolderOptions.Priority);
                break;

            case ActionID.PageMessage:
                FoldersTree.NextUnread(FolderOptions.NextUnread);
                break;
            }
        }