admin管理员组

文章数量:1533920

2024年6月17日发(作者:)

资源管理器主要代码(由于格式的原因,会有乱

码)

using System;

using c;

using entModel;

using ;

using g;

using ;

using ;

using ;

using ing;

using stics;

using tions;

using ;

using ;

namespace songchao

{

public partial class Form1 : Form

{

private ListViewItem lv = new ListViewItem();

private string ss = "";

private string bf;

private string af;

private string[] Path2 = new string[100];

private int x;

private int y;

private int i = 0;

public Form1()

{

InitializeComponent();

}

private void load_cipan()

{

DriveInfo[] alldrive = ves();

foreach (DriveInfo de in alldrive)

{

if (y == false)

{

TreeNode rootNode = new TreeNode();

= "(" + + ")";

= new DirectoryInfo().FullName;

ndex = 2;

(rootNode);

}

if (y == true)

{

TreeNode rootNode = new TreeNode();

= Label + "(" + + ")";

= new DirectoryInfo().FullName;

ndex = 1;

(rootNode);

addchildren(rootNode);

}

}

}

private void addchildren(TreeNode parentNode)

{

DirectoryInfo dirInfo = new DirectoryInfo((string));

try

{

foreach (DirectoryInfo dir in ectories())

{

TreeNode node = new TreeNode();

= ;

= me;

(node);

ndex = 0;

if ( == 0)

{

addchildren(node);

}

}

}

catch (Exception) { }

}

private void Form1_Load(object sender, EventArgs e)

{

本文标签: 资源管理代码格式编程