public OverlayBlockDefinitionItemModel(OverlayBlockDefinitionItemModel o, IdeCollection <IdeBaseItem> source) : base(source) { _def = new BlockDefinition { src = o.Asset.RelativePath, type = "overlay" }; Name = o.Name; }
public OverlayBlockDefinitionItemModel(OverlayBlockDefinitionItemModel o, IdeCollection <IdeBaseItem> source) : base(source) //copy { _def = new BlockDefinition { type = "overlay" }; Asset = new AssetController(AssetType.Image); Asset.Register(o._def.src); Asset.PropertyChanged += AssetUpdated; _def.src = Asset.SelectedAsset.FullPath; Name = o.Name; }