コード例 #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();
            }
        }
コード例 #2
0
 public ShellTreeContainerItem(ShellObject shellObj, ShellTreeContainerItem parent, IShellItemsOperation shellItemsOperation) : base(shellObj, parent, shellItemsOperation)
 {
 }