-
C# 按照扩展名分组文件
C# 按照扩展名分组文件,按照文件类型的不同,对文件进行归类显示,分类清淅便于查看,主要是使用MyFile中的对象和方法实现,核心的功能代码如下:
private void ShowGroupFile(IEnumerable> MyQueryGroup)
{
this.listBox1.Items.Clear();
foreach (var MyFileGroup in MyQueryGroup)
{
this.listBox1.Items.Add("包含" + MyFileGroup.Key + "扩展名的文件如下:");
foreach (var MyFileInfo in MyFileGroup)
{
this.listBox1.Items.Add(MyFileInfo.Name);
}
this.listBox1.Items.Add("");
}
}
static IEnumerable GetFiles(string MyDir)
{
if (!System.IO.Directory.Exists(MyDir))
throw new System.IO.DirectoryNotFoundException();
string[] MyFileNames = null;
List MyFiles = new List();
//查找指定目录下的所有子目录中的所有文件
//MyFileNames = System.IO.Directory.GetFiles(MyDir, "*.*", System.IO.SearchOption.AllDirectories);
MyFileNames = System.IO.Directory.GetFiles(MyDir);
foreach (string MyName in MyFileNames)
{
MyFiles.Add(new System.IO.FileInfo(MyName));
}
return MyFiles;
}
- 2022-12-28 08:15:04下载
- 积分:1
-
DS18B20_CN
DS18B20中文资料格式pdf,翻译较好的一份pdf文档,奉献给不喜欢读英文文档的。(DS18B20 Chinese data format pdf, pdf documents in a good translation, dedicated to not like to read English documents.)
- 2010-10-09 20:47:59下载
- 积分:1
-
6050角度控制速度5110显示速度
有做平衡车的可以看看,我通过6050测倾角经过低通滤波,pwm和pid控制电机速度,并用5110输出电机速度,显示600是电机速度为零。如果想电机速度为零时让5110显示0可自行改程序。
- 2022-02-02 14:38:12下载
- 积分:1
-
TCP多线程服务器
VC++编写的TCP通讯的多线程服务器程序,可接收多个客户端连接,然后分配到各自的线程中进行通讯处理。程序自动监控每个通讯连接的状态,断开后自动等待重新连接。
- 2023-06-16 17:20:05下载
- 积分:1
-
netspeedspyer
Windows的网络流量速度检测。使用MFC作为开发平台。(A net speed spyer using MFC platform .)
- 2012-02-21 15:20:48下载
- 积分:1
-
Dining-information-by-wcf
.net平台下 wcf框架开发的cs餐饮信息管理系统(Food and beverage information management system developed by WCF framework)
- 2015-08-03 03:58:55下载
- 积分:1
-
TMS320LF2407-FFT
基于TMS320LF2407的FFT算法的实现及应用(TMS320LF2407 of the FFT algorithm based on Implementation and Application of)
- 2009-11-27 12:39:04下载
- 积分:1
-
OPCDA
说明: 一个使用OPC通讯协议的demo,包含的OPCDA的大部分内容,程序基于C#开发,使用OPCDA.dll库。程序比较适合初学OPC的朋友使用。(A demo using OPC communication protocol contains most of the content of OPCDA. The program is developed based on C# and uses the OPCDA. DLL library. The program is more suitable for beginners of OPC friends to use.)
- 2019-07-01 11:24:16下载
- 积分:1
-
directional wireless static routing
无线多路径静态路由静态路由模拟。此修补程序是数万 1.2 这是最近的一次
- 2022-03-12 18:47:52下载
- 积分:1
-
stuctures
本系统采用C语言编写,利用邻接链表实现最短路径问题,关键路径问题等(The system uses the C language, using adjacency list realize the shortest path problem, critical path issues)
- 2008-05-29 21:11:26下载
- 积分:1