Ejemplo n.º 1
0
        /// <summary>
        /// Display the UI for when a topic update has completed.
        /// </summary>
        private void OnTopicUpdateCompleted(object sender, FolderEventArgs args)
        {
            Platform.UIThread(this, delegate
            {
                StopProgressBar();

                // If a message was requested but not selected because the topic wasn't filled
                // at the time then select it now.
                if (IsTopicFolder())
                {
                    TopicFolder topicFolder = (TopicFolder) _currentFolder;
                    if (args.Folder == topicFolder.Folder)
                    {
                        ReloadList();

                        if (_lastIndex != 0)
                        {
                            GoToMessage(_lastIndex);
                            _lastIndex = 0;
                        }
                    }
                }
            });
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Handle the folder refresh event to redraw the folder's node in the tree
 /// and then update the counts on the shortcut bar.
 /// </summary>
 private void OnFolderRefreshed(object sender, FolderEventArgs args)
 {
     Platform.UIThread(this, delegate
     {
         UpdateFolder(args.Folder);
         MainForm.UpdateTotalUnreadCount();
     });
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Handle folder being refreshed.
 /// </summary>
 private void OnFolderRefreshed(object sender, FolderEventArgs args)
 {
     Platform.UIThread(this, delegate
     {
         if (_currentFolder.ID == args.Folder.ID)
         {
             _suspendFixup = args.Fixup;
             ReloadList();
             _suspendFixup = false;
             if (_messages.Count == 0)
             {
                 ShowEmptyMessage();
             }
             if (SelectedRow == -1)
             {
                 SetInitialSelection();
             }
         }
     });
 }