private void buttonSearchForStudies_Click(object sender, EventArgs e) { folderBrowserDialog.Description = "Select Source Directory to Search"; DialogResult result = folderBrowserDialog.ShowDialog(); if (result != System.Windows.Forms.DialogResult.OK) { return; } DicomFileCleanup cleanup = new DicomFileCleanup(); cleanup.SourceDirectory = folderBrowserDialog.SelectedPath; folderBrowserDialog.Description = "Select Destination Directory to Copy Found Files"; result = folderBrowserDialog.ShowDialog(); if (result != System.Windows.Forms.DialogResult.OK) { return; } cleanup.DestinationDirectory = folderBrowserDialog.SelectedPath; cleanup.SearchDirectories(new DirectoryInfo(cleanup.SourceDirectory)); }
private void buttonSearchForStudies_Click(object sender, EventArgs e) { folderBrowserDialog.Description = "Select Source Directory to Search"; DialogResult result = folderBrowserDialog.ShowDialog(); if (result != System.Windows.Forms.DialogResult.OK) return; DicomFileCleanup cleanup = new DicomFileCleanup(); cleanup.SourceDirectory = folderBrowserDialog.SelectedPath; folderBrowserDialog.Description = "Select Destination Directory to Copy Found Files"; result = folderBrowserDialog.ShowDialog(); if (result != System.Windows.Forms.DialogResult.OK) return; cleanup.DestinationDirectory = folderBrowserDialog.SelectedPath; cleanup.SearchDirectories(new DirectoryInfo(cleanup.SourceDirectory)); }