Skip to content

Commit

Permalink
Move FolderEditor to a separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
mere-human committed Jul 4, 2021
1 parent 1fce738 commit b9bd8b8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
1 change: 1 addition & 0 deletions CopyRelativePath.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
<ItemGroup>
<Compile Include="BaseCopyCommand.cs" />
<Compile Include="CopyIncludeCommand.cs" />
<Compile Include="FolderEditor.cs" />
<Compile Include="OptionPageGrid.cs">
<SubType>Component</SubType>
</Compile>
Expand Down
17 changes: 17 additions & 0 deletions FolderEditor.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright (c) mere-human. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

using System.Windows.Forms.Design;

namespace CopyRelativePath
{
// Note: A better alternative could be CommonOpenFileDialog
class FolderEditor : FolderNameEditor
{
protected override void InitializeDialog(FolderBrowser folderBrowser)
{
base.InitializeDialog(folderBrowser);
folderBrowser.Description = "Base Directory for Relative Path";
}
}
}
10 changes: 0 additions & 10 deletions OptionPageGrid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,6 @@

namespace CopyRelativePath
{
// Note: A better alternative could be CommonOpenFileDialog
internal class FolderEditor : FolderNameEditor
{
protected override void InitializeDialog(FolderBrowser folderBrowser)
{
base.InitializeDialog(folderBrowser);
folderBrowser.Description = "Base Directory for Relative Path";
}
}

public class OptionPageGrid : DialogPage
{
public const string ExtensionName = "Copy Path Extension";
Expand Down

0 comments on commit b9bd8b8

Please sign in to comment.