コード例 #1
0
 public OverlayBlockDefinitionItemModel(OverlayBlockDefinitionItemModel o, IdeCollection <IdeBaseItem> source) : base(source)
 {
     _def = new BlockDefinition
     {
         src  = o.Asset.RelativePath,
         type = "overlay"
     };
     Name = o.Name;
 }
コード例 #2
0
 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;
 }