private static void LoadDirectory(Uri path, IDisplayInterfaceControl control, bool handleHistory) { Thread thread = new Thread(delegate() { XeFileInfo[] files = FileSystem.DirectoryListing(ref path); if(files == null || path == null) return; if(handleHistory) { if(control.CurrentLocation != null) control.HistoryBack.Push(control.CurrentLocation); control.CurrentLocation = path; } control.SetContent(files, path); }); thread.Start(); }