示例#1
0
 private void GameBoard_OnColumnSelectPressed(int col)
 {
     if (OnColumnSelectPressed != null)
     {
         OnColumnSelectPressed.Invoke(col);
     }
 }
示例#2
0
        private void fallingPiece_MotionFinished(object sender, EventArgs e)
        {
            FallingPiece piece = sender as FallingPiece;

            piece.MotionFinished -= fallingPiece_MotionFinished;
            Controls.Remove(piece);

            if (OnColumnSelectPressed != null)
            {
                OnColumnSelectPressed.Invoke(m_ColumnSelected);
            }
        }