Example #1
0
        protected ShellTreeItem(ShellObject shellObj, ShellTreeContainerItem parent, IShellItemsOperation shellItemsOperation)
        {
            _shellObj            = shellObj;
            _shellContainer      = shellObj as ShellContainer;
            _parent              = parent;
            _shellItemsOperation = shellItemsOperation;
            _childrenView        =
                new LiveListCollectionView(_children)
            {
                Filter = o => shellItemsOperation.Filter((ShellTreeItem)o)
            }; // {FilterDescriptions = shellItemsOperation.FilterDescriptionCollection};
            if (_shellObj != null)
            {
                _name = _shellObj.Name;
            }

            if (_shellContainer != null)
            {
                _children.Add(DummyChild);
                PreloadThumbnails();
            }
        }
Example #2
0
 public ShellTreeContainerItem(ShellObject shellObj, ShellTreeContainerItem parent, IShellItemsOperation shellItemsOperation) : base(shellObj, parent, shellItemsOperation)
 {
 }