How to use Timer to exit LoopA,then run LoopB?