public SizeItemModel(SizeItemModel s, IdeCollection <IdeBaseItem> source) : base(source) // copy item { CanBeDefault = true; _size = new CardSize { Front = s.Front.FullPath, Height = s.Height, Width = s.Width, CornerRadius = s.CornerRadius, Back = s.Back.FullPath, BackHeight = s.Height, BackWidth = s.BackWidth, BackCornerRadius = s.BackCornerRadius }; Name = s.Name; }
public SizeItemModel(SizeItemModel s, IdeCollection <IdeBaseItem> source) : base(source) // copy item { CanBeDefault = true; _size = new CardSize { Height = s.Height, Width = s.Width, CornerRadius = s.CornerRadius, BackHeight = s.Height, BackWidth = s.BackWidth, BackCornerRadius = s.BackCornerRadius }; BackAsset = new AssetController(AssetType.Image); BackAsset.Register(s._size.Back); _size.Back = BackAsset.FullPath; BackAsset.PropertyChanged += BackAssetUpdated; FrontAsset = new AssetController(AssetType.Image); FrontAsset.Register(s._size.Front); _size.Front = FrontAsset.FullPath; FrontAsset.PropertyChanged += FrontAssetUpdated; Name = s.Name; }