Пример #1
0
 protected virtual void OnMoveEnterd(MoveEnterdEventArgs me)
 {
     if (MoveEnterd != null)
     {
         MoveEnterd(this, me);
     }
 }
Пример #2
0
        private void m_FormGame_MoveEnterd(object sender, EventArgs e)
        {
            MoveEnterdEventArgs me = e as MoveEnterdEventArgs;
            Move   newMove         = new Move(me.From, me.To);
            string errorMessage;
            bool   isLegalMove;

            isLegalMove = m_AmericanCheckers.ImplementMove(newMove, out errorMessage);
            if (!isLegalMove)
            {
                m_FormGame.ErrorMessageBox(errorMessage);
            }
        }
Пример #3
0
        private MoveEnterdEventArgs createMoveEnterdEventArgs(Point i_From, Point i_To)
        {
            MoveEnterdEventArgs result = new MoveEnterdEventArgs(i_From, i_To);

            return(result);
        }