using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.IO;
namespace txttest2
{
/// <summary>
/// PathDlgSelect 的摘要说明。
/// </summary>
public class PathDlgSelect : System.Windows.Forms.Form
{
private static string driveLetters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
// 用于列举驱动器盘符
private DirectoryInfo folder;
private DevExpress.XtraEditors.SimpleButton simpleButton1;
private DevExpress.XtraEditors.SimpleButton simpleButton2;
private DevExpress.XtraEditors.TextEdit textEdit1;
private System.Windows.Forms.TreeView treeView1;
private DevExpress.XtraTreeList.TreeList treeList1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.ImageList imageList1;
private System.Windows.Forms.TextBox textBox1;
private System.ComponentModel.IContainer components;
public PathDlgSelect()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
InitPathDlg();// 该函数调用完成目录选择对话框的初始设置
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(PathDlgSelect));
this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton();
this.simpleButton2 = new DevExpress.X