diff --git a/Test/TestEvaCommand.cs b/Test/TestEvaCommand.cs index 8d0d1a3..f316d37 100644 --- a/Test/TestEvaCommand.cs +++ b/Test/TestEvaCommand.cs @@ -13,9 +13,9 @@ public class TestEvaCommand : IExternalCommand public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements) { MessageBox.Show("TestEvaCommand"); - double plus = DependLib.Plus(); - Console.WriteLine(plus); - MessageBox.Show(plus.ToString()); + // string? value = DependLib.ShowDialogFolder(); + // Console.WriteLine(value); + // MessageBox.Show(value.ToString()); return Result.Succeeded; } } \ No newline at end of file diff --git a/Test2/DependLib.cs b/Test2/DependLib.cs index c35de48..72c2a69 100644 --- a/Test2/DependLib.cs +++ b/Test2/DependLib.cs @@ -4,7 +4,21 @@ public static class DependLib { public static double Plus() { - return 2 + 6; + return 2 + 10; + } + + public static string? ShowDialogFolder() + { + //ookii-dialogs-wpf + var dialog = new Ookii.Dialogs.Wpf.VistaFolderBrowserDialog(); + dialog.Description = "Select a folder"; + dialog.UseDescriptionForTitle = true; + dialog.ShowNewFolderButton = true; + if (dialog.ShowDialog() == true) + { + return dialog.SelectedPath; + } + return null; } } } \ No newline at end of file diff --git a/Test2/Test2.csproj b/Test2/Test2.csproj index bd31f52..e83341c 100644 --- a/Test2/Test2.csproj +++ b/Test2/Test2.csproj @@ -30,6 +30,7 @@ +