-
大小: 0.13M文件類型: .zip金幣: 1下載: 0 次發(fā)布日期: 2021-02-24
- 語(yǔ)言: C#
- 標(biāo)簽:
資源簡(jiǎn)介
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?System.IO;
namespace?GetAllFileByLINQ
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????if?(folderBrowserDialog1.ShowDialog()?==?DialogResult.OK)
????????????{
????????????????listView1.Items.Clear();
????????????????textBox1.Text?=?folderBrowserDialog1.SelectedPath;
????????????????List?myFiles?=?new?List();
????????????????foreach?(string?strFile?in?Directory.GetFiles(textBox1.Text))
????????????????{
????????????????????myFiles.Add(new?FileInfo(strFile));
????????????????}
????????????????var?values?=?from?strFile?in?myFiles
?????????????????????????????group?strFile?by?strFile.Extension?
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件?????????938??2009-02-12?10:25??sj\01\GetAllFileByLINQ\GetAllFileByLINQ.sln
?????文件???????23040??2009-02-12?10:28??sj\01\GetAllFileByLINQ\GetAllFileByLINQ.suo
?????文件????????1336??2009-02-12?10:27??sj\01\GetAllFileByLINQ\GetAllFileByLINQ\Form1.cs
?????文件????????5250??2009-02-12?10:27??sj\01\GetAllFileByLINQ\GetAllFileByLINQ\Form1.designer.cs
?????文件????????6022??2009-02-12?10:26??sj\01\GetAllFileByLINQ\GetAllFileByLINQ\Form1.resx
?????文件????????3778??2009-02-12?10:26??sj\01\GetAllFileByLINQ\GetAllFileByLINQ\GetAllFileByLINQ.csproj
?????文件?????????497??2009-02-12?10:25??sj\01\GetAllFileByLINQ\GetAllFileByLINQ\Program.cs
?????文件???????11264??2009-02-12?10:27??sj\01\GetAllFileByLINQ\GetAllFileByLINQ\bin\Debug\GetAllFileByLINQ.exe
?????文件???????22016??2009-02-12?10:27??sj\01\GetAllFileByLINQ\GetAllFileByLINQ\bin\Debug\GetAllFileByLINQ.pdb
?????文件???????14328??2009-02-12?10:27??sj\01\GetAllFileByLINQ\GetAllFileByLINQ\bin\Debug\GetAllFileByLINQ.vshost.exe
?????文件?????????907??2009-02-12?10:27??sj\01\GetAllFileByLINQ\GetAllFileByLINQ\obj\Debug\GetAllFileByLINQ.csproj.FileListAbsolute.txt
?????文件?????????847??2009-02-12?10:27??sj\01\GetAllFileByLINQ\GetAllFileByLINQ\obj\Debug\GetAllFileByLINQ.csproj.GenerateResource.Cache
?????文件???????11264??2009-02-12?10:27??sj\01\GetAllFileByLINQ\GetAllFileByLINQ\obj\Debug\GetAllFileByLINQ.exe
?????文件?????????180??2009-02-12?10:27??sj\01\GetAllFileByLINQ\GetAllFileByLINQ\obj\Debug\GetAllFileByLINQ.Form1.resources
?????文件???????22016??2009-02-12?10:27??sj\01\GetAllFileByLINQ\GetAllFileByLINQ\obj\Debug\GetAllFileByLINQ.pdb
?????文件?????????180??2009-02-12?10:27??sj\01\GetAllFileByLINQ\GetAllFileByLINQ\obj\Debug\GetAllFileByLINQ.Properties.Resources.resources
?????文件????????1388??2009-02-12?10:25??sj\01\GetAllFileByLINQ\GetAllFileByLINQ\Properties\AssemblyInfo.cs
?????文件????????2882??2009-02-12?10:25??sj\01\GetAllFileByLINQ\GetAllFileByLINQ\Properties\Resources.Designer.cs
?????文件????????5612??2009-02-12?10:25??sj\01\GetAllFileByLINQ\GetAllFileByLINQ\Properties\Resources.resx
?????文件????????1101??2009-02-12?10:25??sj\01\GetAllFileByLINQ\GetAllFileByLINQ\Properties\Settings.Designer.cs
?????文件?????????249??2009-02-12?10:25??sj\01\GetAllFileByLINQ\GetAllFileByLINQ\Properties\Settings.settings
?????文件?????????941??2009-02-12?10:28??sj\02\GetFileInfoByLINQ\GetFileInfoByLINQ.sln
?????文件???????22528??2009-02-12?10:34??sj\02\GetFileInfoByLINQ\GetFileInfoByLINQ.suo
?????文件????????2402??2009-02-12?10:32??sj\02\GetFileInfoByLINQ\GetFileInfoByLINQ\Form1.cs
?????文件???????10384??2009-02-12?10:32??sj\02\GetFileInfoByLINQ\GetFileInfoByLINQ\Form1.designer.cs
?????文件????????5814??2009-02-12?10:32??sj\02\GetFileInfoByLINQ\GetFileInfoByLINQ\Form1.resx
?????文件????????3780??2009-02-12?10:32??sj\02\GetFileInfoByLINQ\GetFileInfoByLINQ\GetFileInfoByLINQ.csproj
?????文件?????????498??2009-02-12?10:28??sj\02\GetFileInfoByLINQ\GetFileInfoByLINQ\Program.cs
?????文件???????16384??2009-02-12?10:32??sj\02\GetFileInfoByLINQ\GetFileInfoByLINQ\bin\Debug\GetFileInfoByLINQ.exe
?????文件???????26112??2009-02-12?10:32??sj\02\GetFileInfoByLINQ\GetFileInfoByLINQ\bin\Debug\GetFileInfoByLINQ.pdb
?????文件???????14328??2009-02-12?10:33??sj\02\GetFileInfoByLINQ\GetFileInfoByLINQ\bin\Debug\GetFileInfoByLINQ.vshost.exe
............此處省略33個(gè)文件信息
- 上一篇:窗體的浮動(dòng)及隱藏
- 下一篇:使用ID卡識(shí)別員工編號(hào)
評(píng)論
共有 條評(píng)論