public DocumentItemModel(DocumentItemModel d, IdeCollection <IdeBaseItem> source) : base(source) // copy item { _document = new Document() { Source = d.DocumentAsset.FullPath, Icon = d.IconAsset.FullPath }; Name = d.Name; }
public DocumentItemModel(DocumentItemModel d, IdeCollection <IdeBaseItem> source) : base(source) // copy item { _document = new Document(); DocumentAsset = new AssetController(AssetType.Document); DocumentAsset.Register(d._document.Source); _document.Source = DocumentAsset.FullPath; DocumentAsset.PropertyChanged += DocumentAssetUpdated; IconAsset = new AssetController(AssetType.Image); IconAsset.Register(d._document.Icon); _document.Icon = IconAsset.FullPath; IconAsset.PropertyChanged += IconAssetUpdated; Name = d.Name; }