Exemple #1
0
        private void _chessboard_CellStatusChanged(object sender, CellStatusChangedEventArgs e)
        {
            // XXX: You probably have to implent this first to see any pieces. Handle the cell status
            // changed event. What do you have to do? Notify the CellStatusViewModel that the piece changed.
            //

            var cell = GetCell(e.Identifier);

            cell.SetPiece(e.NewPiece, e.NewColor);
        }
Exemple #2
0
 private void _chessboard_CellStatusChanged(object sender, CellStatusChangedEventArgs e)
 {
     CellStatusChanged(this, e);
 }
 private void _chessboard_CellStatusChanged(object sender, CellStatusChangedEventArgs e)
 {
     fetchCell(e.Identifier).SetPiece(e.NewPiece, e.NewColor);
 }