public void LoadDrives() { Apq.Windows.Delegates.Action_UI <FSExplorer>(this, this, delegate(FSExplorer ctrl) { // 为TreeView添加根结点 Items.Clear(); DriveInfo[] fsDrives = DriveInfo.GetDrives(); foreach (DriveInfo fsDrive in fsDrives) { string strExt = fsDrive.Name; FolderNode ndRoot = new FolderNode(fsDrive.Name.Substring(0, 2)); Items.Add(ndRoot); } }); }
public void LoadDrives() { Apq.Windows.Delegates.Action_UI<FSExplorer>(this, this, delegate(FSExplorer ctrl) { // 为TreeView添加根结点 Items.Clear(); DriveInfo[] fsDrives = DriveInfo.GetDrives(); foreach (DriveInfo fsDrive in fsDrives) { string strExt = fsDrive.Name; FolderNode ndRoot = new FolderNode(fsDrive.Name.Substring(0, 2)); Items.Add(ndRoot); } }); }