public void loadFolderAsync(string path, ThumbnailView container = null) { for (int i = 0; i < 2 * Environment.ProcessorCount; i++) { Thread t = new Thread(new ParameterizedThreadStart(loadFolder)); t.IsBackground = true; t.Start(new Tuple<string, ThumbnailView>(path, container)); } }
public void loadDBAsync(string path, ThumbnailView container = null) { Thread t = new Thread(new ParameterizedThreadStart(loadDB)); t.IsBackground = true; t.Start(new Tuple<string, ThumbnailView>(path, container)); }