Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 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();
     }
 }