コード例 #1
0
ファイル: TestDicomFileForm.cs プロジェクト: bangush/server-1
        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));
        }
コード例 #2
0
ファイル: TestDicomFileForm.cs プロジェクト: nhannd/Xian
		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));
		}