91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 44KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-03
  • 語言: 其他
  • 標簽: C#??

資源簡介

簡單本地檢索系統,用vs2008實現的。

資源截圖

代碼片段和文件信息

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;
using?System.Text.Regularexpressions;

namespace?本地檢索系統
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}

????????ListBox?li_box?=?new?ListBox();
????????ListBox?li_keyword?=?new?ListBox();

????????private?void?btn_From_file_Click(object?sender?EventArgs?e)
????????{
????????????FolderBrowserDialog?Fdialog?=?new?FolderBrowserDialog();
????????????if?(Fdialog.ShowDialog()?==?DialogResult.Cancel)
????????????????return;

????????????txt_Firl.Text?=?Fdialog.SelectedPath;

????????}

????????private?void?btn_begin_Click(object?sender?EventArgs?e)
????????{
????????????try
????????????{
????????????????if?(txt_Firl.Text.Length?==?0)
????????????????{
????????????????????return;
????????????????}


????????????????//*********************************
????????????????listBox1.Items.Clear();
????????????????richTextBox1.Text?=?““;

????????????????//**********ComboBox的處理***********************
????????????????string?com_text?=?““;
????????????????switch?(comboBox1.SelectedIndex)
????????????????{
????????????????????case?0:?com_text?=?“*.txt“;
????????????????????????break;
????????????????????case?1:?com_text?=?“*.cs“;
????????????????????????break;
????????????????????default:?com_text?=?“*.txt“;
????????????????????????break;
????????????????}

????????????????DirectoryInfo?dit?=?new?DirectoryInfo(txt_Firl.Text.Trim());
????????????????FileInfo[]?many?=?dit.GetFiles(com_text?SearchOption.AllDirectories);

????????????????foreach?(FileInfo?eveyone?in?many)
????????????????{
????????????????????this.li_box.Items.Add(eveyone.FullName);
????????????????}
????????????????//**********************關鍵詞的處理************************

????????????????//slipt_keyword();

????????????????//********************沒有關鍵詞的情況**********************
????????????????if?(txt_KeyWord.Text.Length?>?0)
????????????????{
????????????????????search_keyword();
????????????????}
????????????????else
????????????????{
????????????????????listBox1.Items.AddRange(li_box.Items);
????????????????}

????????????????//釋放
????????????????li_box.Items.Clear();
????????????}
????????????catch?{?}



????????}

????????private?void?search_keyword()
????????{
????????????for?(int?i?=?0;?i?????????????{
????????????????StreamReader?thereader?=?new?StreamReader(li_box.Items[i].ToString()?Encoding.Default);
????????????????string?file_text?=?thereader.ReadToEnd();





????????????????if?(file_text.IndexOf(txt_KeyWord.Text.Trim())?>=?0)
????????????????{
????????????????????try
????????????????????{
????????????????????????file_text?=?file_text.Replace(“\r\n““?“);
????????????????????????int?Pos

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????12800??2011-06-29?19:21??本地檢索系統\本地檢索系統\bin\Debug\本地檢索系統.exe

?????文件??????28160??2011-06-29?19:21??本地檢索系統\本地檢索系統\bin\Debug\本地檢索系統.pdb

?????文件??????14328??2011-06-29?19:22??本地檢索系統\本地檢索系統\bin\Debug\本地檢索系統.vshost.exe

?????文件????????490??2007-07-21?01:33??本地檢索系統\本地檢索系統\bin\Debug\本地檢索系統.vshost.exe.manifest

?????文件???????5868??2011-06-29?19:21??本地檢索系統\本地檢索系統\Form1.cs

?????文件???????7240??2011-06-29?19:21??本地檢索系統\本地檢索系統\Form1.Designer.cs

?????文件???????5814??2011-06-29?19:21??本地檢索系統\本地檢索系統\Form1.resx

?????文件????????697??2011-06-29?22:33??本地檢索系統\本地檢索系統\obj\Debug\本地檢索系統.csproj.FileListAbsolute.txt

?????文件????????847??2011-06-29?19:21??本地檢索系統\本地檢索系統\obj\Debug\本地檢索系統.csproj.GenerateResource.Cache

?????文件??????12800??2011-06-29?19:21??本地檢索系統\本地檢索系統\obj\Debug\本地檢索系統.exe

?????文件????????180??2011-06-29?19:21??本地檢索系統\本地檢索系統\obj\Debug\本地檢索系統.Form1.resources

?????文件??????28160??2011-06-29?19:21??本地檢索系統\本地檢索系統\obj\Debug\本地檢索系統.pdb

?????文件????????180??2011-06-29?16:05??本地檢索系統\本地檢索系統\obj\Debug\本地檢索系統.Properties.Resources.resources

?????文件????????499??2011-06-29?12:23??本地檢索系統\本地檢索系統\Program.cs

?????文件???????1392??2011-06-29?12:23??本地檢索系統\本地檢索系統\Properties\AssemblyInfo.cs

?????文件???????2886??2011-06-29?12:23??本地檢索系統\本地檢索系統\Properties\Resources.Designer.cs

?????文件???????5612??2011-06-29?12:23??本地檢索系統\本地檢索系統\Properties\Resources.resx

?????文件???????1103??2011-06-29?12:23??本地檢索系統\本地檢索系統\Properties\Settings.Designer.cs

?????文件????????249??2011-06-29?12:23??本地檢索系統\本地檢索系統\Properties\Settings.settings

?????文件???????3782??2011-06-29?12:49??本地檢索系統\本地檢索系統\本地檢索系統.csproj

?????文件????????944??2011-06-29?12:24??本地檢索系統\本地檢索系統.sln

????..A..H.?????13312??2011-06-29?22:34??本地檢索系統\本地檢索系統.suo

?????目錄??????????0??2011-06-29?12:46??本地檢索系統\本地檢索系統\obj\Debug\Refactor

?????目錄??????????0??2011-06-29?12:23??本地檢索系統\本地檢索系統\obj\Debug\TempPE

?????目錄??????????0??2011-06-29?16:05??本地檢索系統\本地檢索系統\bin\Debug

?????目錄??????????0??2011-06-29?19:21??本地檢索系統\本地檢索系統\obj\Debug

?????目錄??????????0??2011-06-29?12:23??本地檢索系統\本地檢索系統\bin

?????目錄??????????0??2011-06-29?12:23??本地檢索系統\本地檢索系統\obj

?????目錄??????????0??2011-06-29?12:23??本地檢索系統\本地檢索系統\Properties

?????目錄??????????0??2011-06-29?19:21??本地檢索系統\本地檢索系統

............此處省略4個文件信息

評論

共有 條評論