コード例 #1
0
        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);
                }
            });
        }
コード例 #2
0
ファイル: FSExplorer.cs プロジェクト: lujinlong/Apq
		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);
				}
			});
		}