namespace explorer_Interface
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
// private void listView1_SelectedIndexChanged(object sender, EventArgs e)
//{
//}
private void Form1_Load(object sender, EventArgs e)
{
// this.treeView1.Nodes.Clear();
// this.listView1.Items.Clear();
this.label1.Text = "Path: ";
// LoadDrives();
}
//private void LoadDrives()
//{
// DriveInfo[] drives = DriveInfo.GetDrives();
// foreach (var drive in drives)
// {
// if (drive.IsReady)
// {
// // TreeNode trenode = this.treeView1.Nodes.Add(drive.Name);
// DirectoryInfo[] dirs = new
DirectoryInfo(drive.Name).GetDirectories();
// foreach (var dir in dirs) {
// // trenode.Nodes.Add(drive.Name);
// }
// }
// }
//}
// private void treeView1_NodeMouseClick(object sender, TreeViewEventArgs e)
//{
// string path=e.Node.FullPath + @"\" ;
// this.label1.Text=string.Format("Path: {0}",path);
// FileInfo[] files=new DirectoryInfo(path).GetFiles();
// foreach (var file in files) {
// ListViewItem item = this.listView1.Items.Add(file.Name);
// }
}
// }
}