예제 #1
0
        private void AddFilesFromFolder()
        {
            SearchOption opt;

            if (ApplicationInfo.settings.SubFolders)
            {
                opt = SearchOption.AllDirectories;
            }
            else
            {
                opt = SearchOption.TopDirectoryOnly;
            }

            fileList.AddFilesFromFolder(
                folderBrowserDialog.SelectedPath, opt);

            fileList.SaveToFile();
        }