ChessBoardVisualLib.ViewModel.ChessBoardViewModel.ChessBoardViewModel C# (CSharp) Method

ChessBoardViewModel() public method

public ChessBoardViewModel ( GameProvider gameProvider ) : System
gameProvider Queem.Core.ChessBoard.GameProvider
return System
        public ChessBoardViewModel(GameProvider gameProvider)
        {
            this.provider = gameProvider;
            this.squareItems = new ObservableCollection<SquareItem>();

            this.InitItems();
            this.lastHighlightedSquares = new List<HighlightedSquare>();

            // TODO remove this in future
            this.CurrentPlayerColor = Color.White;

            this.promotionViewModel = new PawnPromotionViewModel();
            this.showOverlayState = Enums.ShowOverlayState.Nothing;

            this.dispatcher = Dispatcher.CurrentDispatcher;
        }