forked from sqzhuyi/ExportBlog
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFolderDialog.cs
More file actions
35 lines (32 loc) · 828 Bytes
/
FolderDialog.cs
File metadata and controls
35 lines (32 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Windows.Forms.Design;
namespace ExportBlog
{
public class FolderDialog : FolderNameEditor
{
FolderBrowser fDialog = new FolderBrowser();
public FolderDialog()
{
}
public DialogResult DisplayDialog()
{
return DisplayDialog("请选择一个文件夹");
}
public DialogResult DisplayDialog(string description)
{
fDialog.Description = description;
return fDialog.ShowDialog();
}
public string Path
{
get { return fDialog.DirectoryPath; }
}
~FolderDialog()
{
fDialog.Dispose();
}
}
}