/// <summary> /// Handle changes to the forum directory by rebuilding the /// directory tree. /// </summary> private void OnDirectoryChanged(object sender, DirectoryEventArgs args) { Platform.UIThread(this, delegate { _directoryTree.Nodes.Clear(); LoadDirectoryTree(_directoryTree); }); }
/// <summary> /// Callback from the directory task update when new directory data has been loaded /// from the server. In this case we're just interested in updating the progress bar until /// we get to 100% at which point we stop and update the UI. /// </summary> private void OnDirectoryChanged(object sender, DirectoryEventArgs args) { Platform.UIThread(this, delegate { if (args.CategoryName != null && args.CategoryName == _currentCategory.Name) { _items = new List<DirForum>(CIX.DirectoryCollection.AllForumsInCategory(_currentCategory.Name)); SortItems(); } }); }