示例#1
0
        private void FileManager_Load(object sender, EventArgs e)
        {
            string allDriver = hostInstance.GetDrives();

            string[] drivers = allDriver.Split(new string[] { Environment.NewLine }, StringSplitOptions.None);
            foreach (string driver in drivers)
            {
                if (driver != string.Empty)
                {
                    treeView1.Nodes.Add(driver);
                }
            }
        }