Beispiel #1
0
        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();
        }
Beispiel #2
0
 public DirectoryScanner(string basePath, Database database)
 {
     this.basePath = basePath;
     this.database = database;
 }