private void button2_Click(object sender, EventArgs e) { var fbd = new FolderBrowserDialog(); if (fbd.ShowDialog() == System.Windows.Forms.DialogResult.Cancel) return; var foldername = fbd.SelectedPath; foreach (string f in Directory.EnumerateFiles(foldername, "*.*", SearchOption.AllDirectories)) { OpenFile(@"" + f); var m = DicomFile.Open(@""+f); listBox2.Items.Add( m.Dataset.Get<string>(DicomTag.SeriesInstanceUID)); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)