public MainWindow() { InitializeComponent(); MainBoardModel = new BoardModel(); MainBoardViewModel = new BoardViewModel(MainBoardModel); MainBoardViewModel.SizeX = SizeX; MainBoardViewModel.SizeY = SizeY; MainBoardView.DataContext = MainBoardViewModel; MainBoardViewModel.Board = MainBoardModel.CreateBoard(SizeX, SizeY); MainPieceDisplayModel = new PieceDisplayModel(); MainPieceDisplayViewModel = new PieceDisplayViewModel(MainPieceDisplayModel); }
public PieceDisplayViewModel(PieceDisplayModel modelIn) { model = modelIn; }