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)
{
版权声明:本文标题:基于C#编程的资源管理器主要代码 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1718636881a705005.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论