资源管理器是对IO流的应用
简易的效果图
代码入下
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
namespace 资源管理
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
string path = @"E:\Courseware";
private void Form1_Load(object sender, EventArgs e)
{
this.Left = Screen.PrimaryScreen.WorkingArea.Width / 2 - this.Width / 2;
this.Top = Screen.PrimaryScreen.WorkingArea.Height / 2 - this.Height / 2;
ShowTreeView(path, treeView1.Nodes);
}
private void ShowTreeView(string path, TreeN