public MainPage() { Instance = this; this.InitializeComponent(); ViewModel = new BoardViewModel(); }
public TileViewModel(BoardViewModel board, int id) { Board = board; Coordinate = new TileCoordinate(id); Piece = board.Position.Pieces[id]; }