private void PerformFavoritesUpdate(FavoritesChangedEventArgs args) { GroupTreeNode selectedGroup = this.treeList.FindSelectedGroupNode(); IFavorite selectedFavorite = this.treeList.SelectedFavorite; var updater = new FavoritesLevelUpdate(this.favoriteIcons, this.RootNodes, args, this.toolTipBuilder); updater.Run(); this.treeList.RestoreSelectedFavorite(selectedGroup, selectedFavorite); }
private void UpdateGroupNodeChilds() { // take only expanded nodes, for better performance and to protect the lazy loading foreach (var groupNode in this.LoadedGroupNodes) { var levelUpdate = new FavoritesLevelUpdate(this.FavoriteIcons, groupNode.Nodes, this.Changes, groupNode, this.ToolTipBuilder); levelUpdate.Run(); } }