Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove WindowsAPICodePack #84

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion DicomGrep/DicomGrep.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
<PackageReference Include="fo-dicom" Version="5.1.2" />
<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.122" />
<PackageReference Include="NLog" Version="5.3.2" />
<PackageReference Include="WinCopies.WindowsAPICodePack.Shell" Version="2.12.0.2" />
</ItemGroup>

<ItemGroup>
Expand Down
14 changes: 6 additions & 8 deletions DicomGrep/Services/FolderPickupService.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.WindowsAPICodePack.Dialogs;
using System;
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Win32;

namespace DicomGrep.Services
{
Expand All @@ -12,16 +12,14 @@ public class FolderPickupService
{
public bool SelectFolder(ref string folderPath)
{
CommonOpenFileDialog openFileDialog = new CommonOpenFileDialog
var openFileDialog = new OpenFolderDialog
{
IsFolderPicker = true,
DefaultDirectory = folderPath
DefaultDirectory = folderPath,
};

// note: may slow to stop debugging when running from Visual Studio
if (CommonFileDialogResult.Ok == openFileDialog.ShowDialog())
if (true == openFileDialog.ShowDialog())
{
folderPath = openFileDialog.FileName;
folderPath = openFileDialog.FolderName;
return true;
}
else
Expand Down
Loading