private void Target_AcObjectOutdated(object sender, EventArgs e) { if (_solvingInProgress) { _needsToBeClosed = true; } else { Close(); } }