private void GameBoard_OnColumnSelectPressed(int col) { if (OnColumnSelectPressed != null) { OnColumnSelectPressed.Invoke(col); } }
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); } }