internal FavoriteTreeListLoader(FavoritesTreeView treeListToFill, IPersistence persistence) { this.treeList = treeListToFill; this.treeList.AfterExpand += new TreeViewEventHandler(this.OnTreeViewExpand); this.persistedGroups = persistence.Groups; this.favorites = persistence.Favorites; this.dispatcher = persistence.Dispatcher; this.dispatcher.GroupsChanged += new GroupsChangedEventHandler(this.OnGroupsCollectionChanged); this.dispatcher.FavoritesChanged += new FavoritesChangedEventHandler(this.OnFavoritesCollectionChanged); }
internal FavoriteTreeListLoader(FavoritesTreeView treeListToFill, IPersistence persistence, FavoriteIcons favoriteIcons) { this.treeList = treeListToFill; this.favoriteIcons = favoriteIcons; this.treeList.AfterExpand += new TreeViewEventHandler(this.OnTreeViewExpand); this.toolTipBuilder = new ToolTipBuilder(persistence.Security); this.persistedGroups = persistence.Groups; this.favorites = persistence.Favorites; this.dispatcher = persistence.Dispatcher; this.dispatcher.GroupsChanged += new GroupsChangedEventHandler(this.OnGroupsCollectionChanged); this.dispatcher.FavoritesChanged += new FavoritesChangedEventHandler(this.OnFavoritesCollectionChanged); }