private void checkHasCarIn() { if (Visibility != Visibility.Visible) { checkTP.stop(); return; } bool hasCarIn = MS2.IfHasCarIn(); if (Visibility != Visibility.Visible) { checkTP.stop(); return; } if (hasCarIn == false) { if (nextStep == null) { TH.addOnceUI(BackExit.Exit); } else { TH.addOnceUI(nextStep); } checkTP.stop(); } }