public App() { /* System.Windows.Forms.FolderBrowserDialog dialog = new System.Windows.Forms.FolderBrowserDialog(); if (dialog.ShowDialog() != System.Windows.Forms.DialogResult.OK) { Application.Current.Shutdown(); return; } string path = dialog.SelectedPath; */ // Verzeichnispfad string path = "S:"; // Datenbank relativ zum Verzeichnis anlegen/laden Database database = new Database(path + "\\.smart"); // Sämtliche Verzeichnisse in neuem Thread durchlaufen new Thread(new DirectoryScanner(path, database).scan).Start(); }
public DirectoryScanner(string basePath, Database database) { this.basePath = basePath; this.database = database; }