private void chessboardControl_MoveAnimationFinished(object sender, EventArgs e) { if (needsOneMoreCancel) { this.CancelLastMove(); this.needsOneMoreCancel = false; } else { this.buttonsPanel.IsEnabled = true; this.StartSolver(); } }