private void AddFilesFromFolder() { SearchOption opt; if (ApplicationInfo.settings.SubFolders) { opt = SearchOption.AllDirectories; } else { opt = SearchOption.TopDirectoryOnly; } fileList.AddFilesFromFolder( folderBrowserDialog.SelectedPath, opt); fileList.SaveToFile(); }