private void boardPicture_MouseDown(object sender, MouseEventArgs e) { m_movingFrom = m_graphicHandler.CoordinateToSquare(e.X, e.Y); m_graphicHandler.SwipeBoard(); for (Square square = Square.A1; square <= Square.H8; ++square) { m_graphicHandler.DrawPiece(square, m_chessFacade.PieceAt(square)); } Square[] squares = m_chessFacade.GetValidSquaresForPiece(m_movingFrom); foreach (Square square in squares) { m_graphicHandler.HighlightSquare(square); } m_graphicHandler.Refresh(); }