This log is quite useful. If you cannot think of it, you can flip it over and record it in the future. C # simple multithreading has been used before, but now it feels strange... I checked it again today and kept a record.
Private void layoutroot_sizechanged (Object sender, sizechangedeventargs e) {// use object to pass the parameter thread loadmap = new thread (New parameterizedthreadstart (loadmapasync); loadmap. start (17); // Asynchronous Method without parameters thread loadmap2 = new thread (New threadstart (loadmapasync2); loadmap. start () ;}// convert the void loadmapasync (Object PARAM) {int level = (INT) Param; while (mapserverhelper. getstartpos (level )! = NULL) loadmap (mapserverhelper. getstartpos (level);} // directly execute the code void loadmapasync2 () {While (mapserverhelper. getstartpos (0 )! = NULL) loadmap (mapserverhelper. getstartpos (0 ));}