Esempio n. 1
0
 private void HandleBoardChangedEvent(object sender, BoardChangedEventArgs e)
 {
     UpdateInterface();
 }
Esempio n. 2
0
        private void HandleBoardChangedEvent(object sender, BoardChangedEventArgs e)
        {
            m_graphicHandler.SwipeBoard();
              for (Square square = Square.A1; square <= Square.H8; ++square)
            m_graphicHandler.DrawPiece(square, m_chessFacade.PieceAt(square));
              m_graphicHandler.HighlightSquare(e.From);
              m_graphicHandler.HighlightSquare(e.To);
              m_graphicHandler.Refresh();

              prevGameBtn.Enabled = (m_chessFacade.PreviousGameCount > 0);
              prevMoveBtn.Enabled = (m_chessFacade.UndoCount > 0);
              nextMoveBtn.Enabled = (m_chessFacade.RedoCount > 0);
              nextGameBtn.Enabled = (m_chessFacade.SubsequentGameCount > 0);
        }