Beispiel #1
0
 public BoardItemModel(BoardItemModel b, IdeCollection <IdeBaseItem> source) : base(source) // copy item
 {
     CanBeDefault = true;
     _board       = new GameBoard
     {
         Height = b.Height,
         Width  = b.Width,
         XPos   = b.XPos,
         YPos   = b.YPos,
         Source = b.Asset.FullPath
     };
     Name = b.Name;
 }
Beispiel #2
0
 public BoardItemModel(BoardItemModel b, IdeCollection <IdeBaseItem> source) : base(source) // copy item
 {
     CanBeDefault = true;
     _board       = new GameBoard
     {
         Height = b.Height,
         Width  = b.Width,
         XPos   = b.XPos,
         YPos   = b.YPos
     };
     Asset = new AssetController(AssetType.Image);
     Asset.Register(b._board.Source);
     _board.Source          = Asset.FullPath;
     Asset.PropertyChanged += AssetUpdated;
     Name = b.Name;
 }