並前往https://coderedirect.com/questions/308490/progressbar-in-a-thread-does-not-update-its-ui-until-the-work-was-done-in-the-ma