⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 searchform.cs

📁 初学Csharp
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.OleDb;   
using System.IO; 
namespace SourceManager
{
	/// <summary>
	/// Summary description for Form2.
	/// </summary>
	public class SearchForm : System.Windows.Forms.Form
	{
		
	
		private System.Diagnostics.Process process1;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.Button button2;
		private System.Windows.Forms.Button button3;
		private System.Windows.Forms.Button button_search;
		private System.Windows.Forms.GroupBox groupBox3;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.CheckBox checkBox_lan;
		private System.Windows.Forms.CheckBox checkBox_plat;
		private System.Windows.Forms.CheckBox checkBox_class;
		private System.Windows.Forms.CheckBox checkBox_form;
		private System.Windows.Forms.CheckBox checkBox_keyword;
		private System.Windows.Forms.CheckBox checkBox_func;
		private System.Windows.Forms.TextBox textBox_keyword;
		private System.Windows.Forms.TextBox textBox_func;
		private System.Windows.Forms.ComboBox comboBox_lan;
		private System.Windows.Forms.ComboBox comboBox_plat;
		private System.Windows.Forms.ComboBox comboBox_class;
		private System.Windows.Forms.ComboBox comboBox_form;
		private System.Windows.Forms.ComboBox comboBox5_k;
		private System.Windows.Forms.ComboBox comboBox4_f;
		private System.Windows.Forms.ComboBox comboBox3_c;
		private System.Windows.Forms.ComboBox comboBox2_p;
		private System.Windows.Forms.ComboBox comboBox1_l;
		private System.Windows.Forms.ComboBox comboBox6_f;
		private System.Windows.Forms.DataGrid dg_result;
		private System.Windows.Forms.ContextMenu contextMenu1;
		private System.Windows.Forms.MenuItem menuItem1;
		private System.Windows.Forms.MenuItem menuItem2;
		private OleDbConnection connection;
		
		public SearchForm()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.process1 = new System.Diagnostics.Process();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.dg_result = new System.Windows.Forms.DataGrid();
			this.button_search = new System.Windows.Forms.Button();
			this.button2 = new System.Windows.Forms.Button();
			this.button3 = new System.Windows.Forms.Button();
			this.groupBox3 = new System.Windows.Forms.GroupBox();
			this.comboBox6_f = new System.Windows.Forms.ComboBox();
			this.comboBox_form = new System.Windows.Forms.ComboBox();
			this.comboBox_class = new System.Windows.Forms.ComboBox();
			this.comboBox_plat = new System.Windows.Forms.ComboBox();
			this.comboBox_lan = new System.Windows.Forms.ComboBox();
			this.comboBox5_k = new System.Windows.Forms.ComboBox();
			this.comboBox4_f = new System.Windows.Forms.ComboBox();
			this.comboBox3_c = new System.Windows.Forms.ComboBox();
			this.comboBox2_p = new System.Windows.Forms.ComboBox();
			this.comboBox1_l = new System.Windows.Forms.ComboBox();
			this.textBox_func = new System.Windows.Forms.TextBox();
			this.textBox_keyword = new System.Windows.Forms.TextBox();
			this.checkBox_func = new System.Windows.Forms.CheckBox();
			this.checkBox_keyword = new System.Windows.Forms.CheckBox();
			this.checkBox_form = new System.Windows.Forms.CheckBox();
			this.checkBox_class = new System.Windows.Forms.CheckBox();
			this.checkBox_plat = new System.Windows.Forms.CheckBox();
			this.checkBox_lan = new System.Windows.Forms.CheckBox();
			this.label1 = new System.Windows.Forms.Label();
			this.contextMenu1 = new System.Windows.Forms.ContextMenu();
			this.menuItem1 = new System.Windows.Forms.MenuItem();
			this.menuItem2 = new System.Windows.Forms.MenuItem();
			this.groupBox2.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dg_result)).BeginInit();
			this.groupBox3.SuspendLayout();
			this.SuspendLayout();
			// 
			// process1
			// 
			this.process1.StartInfo.FileName = "notepad.exe";
			this.process1.SynchronizingObject = this;
			this.process1.Exited += new System.EventHandler(this.process1_Exited);
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.Add(this.dg_result);
			this.groupBox2.Location = new System.Drawing.Point(8, 224);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(760, 232);
			this.groupBox2.TabIndex = 1;
			this.groupBox2.TabStop = false;
			this.groupBox2.Text = "结果";
			// 
			// dg_result
			// 
			this.dg_result.DataMember = "";
			this.dg_result.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			this.dg_result.Location = new System.Drawing.Point(8, 24);
			this.dg_result.Name = "dg_result";
			this.dg_result.ReadOnly = true;
			this.dg_result.Size = new System.Drawing.Size(744, 192);
			this.dg_result.TabIndex = 0;
			this.dg_result.MouseDown += new System.Windows.Forms.MouseEventHandler(this.myDataGrid_MouseDown);
			this.dg_result.Navigate += new System.Windows.Forms.NavigateEventHandler(this.dg_result_Navigate);
			// 
			// button_search
			// 
			this.button_search.Location = new System.Drawing.Point(472, 24);
			this.button_search.Name = "button_search";
			this.button_search.Size = new System.Drawing.Size(96, 24);
			this.button_search.TabIndex = 2;
			this.button_search.Text = "开始检索";
			this.button_search.Click += new System.EventHandler(this.button_search_Click);
			// 
			// button2
			// 
			this.button2.Location = new System.Drawing.Point(472, 72);
			this.button2.Name = "button2";
			this.button2.Size = new System.Drawing.Size(96, 24);
			this.button2.TabIndex = 3;
			this.button2.Text = "启动查看";
			this.button2.Click += new System.EventHandler(this.button2_Click);
			// 
			// button3
			// 
			this.button3.Location = new System.Drawing.Point(472, 120);
			this.button3.Name = "button3";
			this.button3.Size = new System.Drawing.Size(96, 24);
			this.button3.TabIndex = 4;
			this.button3.Text = "关闭";
			this.button3.Click += new System.EventHandler(this.button3_Click);
			// 
			// groupBox3
			// 
			this.groupBox3.Controls.Add(this.comboBox6_f);
			this.groupBox3.Controls.Add(this.comboBox_form);
			this.groupBox3.Controls.Add(this.comboBox_class);
			this.groupBox3.Controls.Add(this.comboBox_plat);
			this.groupBox3.Controls.Add(this.comboBox_lan);
			this.groupBox3.Controls.Add(this.comboBox5_k);
			this.groupBox3.Controls.Add(this.comboBox4_f);
			this.groupBox3.Controls.Add(this.comboBox3_c);
			this.groupBox3.Controls.Add(this.comboBox2_p);
			this.groupBox3.Controls.Add(this.comboBox1_l);
			this.groupBox3.Controls.Add(this.textBox_func);
			this.groupBox3.Controls.Add(this.textBox_keyword);
			this.groupBox3.Controls.Add(this.checkBox_func);
			this.groupBox3.Controls.Add(this.checkBox_keyword);
			this.groupBox3.Controls.Add(this.checkBox_form);
			this.groupBox3.Controls.Add(this.checkBox_class);
			this.groupBox3.Controls.Add(this.checkBox_plat);
			this.groupBox3.Controls.Add(this.checkBox_lan);
			this.groupBox3.Location = new System.Drawing.Point(8, 8);
			this.groupBox3.Name = "groupBox3";
			this.groupBox3.Size = new System.Drawing.Size(384, 184);
			this.groupBox3.TabIndex = 5;
			this.groupBox3.TabStop = false;
			this.groupBox3.Text = "检索词";
			this.groupBox3.Enter += new System.EventHandler(this.groupBox3_Enter);
			// 
			// comboBox6_f
			// 
			this.comboBox6_f.Enabled = false;
			this.comboBox6_f.Items.AddRange(new object[] {
															 "AND",
															 "OR"});
			this.comboBox6_f.Location = new System.Drawing.Point(16, 146);
			this.comboBox6_f.Name = "comboBox6_f";
			this.comboBox6_f.Size = new System.Drawing.Size(56, 20);
			this.comboBox6_f.TabIndex = 21;
			// 
			// comboBox_form
			// 
			this.comboBox_form.Enabled = false;
			this.comboBox_form.Location = new System.Drawing.Point(192, 97);
			this.comboBox_form.Name = "comboBox_form";
			this.comboBox_form.Size = new System.Drawing.Size(176, 20);
			this.comboBox_form.TabIndex = 20;
			// 
			// comboBox_class
			// 
			this.comboBox_class.Enabled = false;
			this.comboBox_class.Location = new System.Drawing.Point(192, 75);
			this.comboBox_class.Name = "comboBox_class";
			this.comboBox_class.Size = new System.Drawing.Size(176, 20);
			this.comboBox_class.TabIndex = 19;
			// 
			// comboBox_plat
			// 
			this.comboBox_plat.Enabled = false;
			this.comboBox_plat.Location = new System.Drawing.Point(192, 52);
			this.comboBox_plat.Name = "comboBox_plat";
			this.comboBox_plat.Size = new System.Drawing.Size(176, 20);
			this.comboBox_plat.TabIndex = 18;
			// 
			// comboBox_lan
			// 
			this.comboBox_lan.Enabled = false;
			this.comboBox_lan.Location = new System.Drawing.Point(192, 28);
			this.comboBox_lan.Name = "comboBox_lan";
			this.comboBox_lan.Size = new System.Drawing.Size(176, 20);
			this.comboBox_lan.TabIndex = 17;
			// 
			// comboBox5_k
			// 
			this.comboBox5_k.Enabled = false;
			this.comboBox5_k.Items.AddRange(new object[] {
															 "AND",
															 "OR"});
			this.comboBox5_k.Location = new System.Drawing.Point(16, 123);
			this.comboBox5_k.Name = "comboBox5_k";
			this.comboBox5_k.Size = new System.Drawing.Size(56, 20);
			this.comboBox5_k.TabIndex = 16;
			// 
			// comboBox4_f
			// 
			this.comboBox4_f.Enabled = false;
			this.comboBox4_f.Items.AddRange(new object[] {
															 "AND",
															 "OR"});
			this.comboBox4_f.Location = new System.Drawing.Point(16, 99);
			this.comboBox4_f.Name = "comboBox4_f";
			this.comboBox4_f.Size = new System.Drawing.Size(56, 20);
			this.comboBox4_f.TabIndex = 15;
			// 
			// comboBox3_c
			// 
			this.comboBox3_c.Enabled = false;
			this.comboBox3_c.Items.AddRange(new object[] {
															 "AND",
															 "OR"});
			this.comboBox3_c.Location = new System.Drawing.Point(16, 75);
			this.comboBox3_c.Name = "comboBox3_c";
			this.comboBox3_c.Size = new System.Drawing.Size(56, 20);
			this.comboBox3_c.TabIndex = 14;
			// 
			// comboBox2_p
			// 
			this.comboBox2_p.Enabled = false;
			this.comboBox2_p.Items.AddRange(new object[] {
															 "AND",
															 "OR"});
			this.comboBox2_p.Location = new System.Drawing.Point(16, 51);
			this.comboBox2_p.Name = "comboBox2_p";
			this.comboBox2_p.Size = new System.Drawing.Size(56, 20);
			this.comboBox2_p.TabIndex = 13;
			// 
			// comboBox1_l
			// 
			this.comboBox1_l.Enabled = false;
			this.comboBox1_l.Items.AddRange(new object[] {
															 "AND",
															 "OR"});
			this.comboBox1_l.Location = new System.Drawing.Point(16, 27);
			this.comboBox1_l.Name = "comboBox1_l";
			this.comboBox1_l.Size = new System.Drawing.Size(56, 20);
			this.comboBox1_l.TabIndex = 12;
			// 
			// textBox_func
			// 
			this.textBox_func.Enabled = false;
			this.textBox_func.Location = new System.Drawing.Point(192, 145);
			this.textBox_func.Name = "textBox_func";
			this.textBox_func.Size = new System.Drawing.Size(176, 21);
			this.textBox_func.TabIndex = 11;
			this.textBox_func.Text = "";
			// 
			// textBox_keyword
			// 
			this.textBox_keyword.Enabled = false;
			this.textBox_keyword.Location = new System.Drawing.Point(192, 121);
			this.textBox_keyword.Name = "textBox_keyword";
			this.textBox_keyword.Size = new System.Drawing.Size(176, 21);
			this.textBox_keyword.TabIndex = 10;
			this.textBox_keyword.Text = "";
			// 
			// checkBox_func
			// 
			this.checkBox_func.Location = new System.Drawing.Point(88, 144);
			this.checkBox_func.Name = "checkBox_func";
			this.checkBox_func.Size = new System.Drawing.Size(96, 24);
			this.checkBox_func.TabIndex = 5;
			this.checkBox_func.Text = "功能描述";
			this.checkBox_func.CheckedChanged += new System.EventHandler(this.checkBox_func_CheckedChanged);
			// 
			// checkBox_keyword
			// 
			this.checkBox_keyword.Location = new System.Drawing.Point(88, 121);
			this.checkBox_keyword.Name = "checkBox_keyword";
			this.checkBox_keyword.Size = new System.Drawing.Size(96, 24);
			this.checkBox_keyword.TabIndex = 4;
			this.checkBox_keyword.Text = "关键词";
			this.checkBox_keyword.CheckedChanged += new System.EventHandler(this.checkBox_keyword_CheckedChanged);
			// 
			// checkBox_form
			// 
			this.checkBox_form.Location = new System.Drawing.Point(88, 97);
			this.checkBox_form.Name = "checkBox_form";
			this.checkBox_form.Size = new System.Drawing.Size(96, 24);
			this.checkBox_form.TabIndex = 3;
			this.checkBox_form.Text = "类别";
			this.checkBox_form.CheckedChanged += new System.EventHandler(this.checkBox_form_CheckedChanged);
			// 
			// checkBox_class
			// 
			this.checkBox_class.Location = new System.Drawing.Point(88, 73);
			this.checkBox_class.Name = "checkBox_class";
			this.checkBox_class.Size = new System.Drawing.Size(96, 24);
			this.checkBox_class.TabIndex = 2;
			this.checkBox_class.Text = "领域";
			this.checkBox_class.CheckedChanged += new System.EventHandler(this.checkBox_class_CheckedChanged);
			// 
			// checkBox_plat
			// 
			this.checkBox_plat.Location = new System.Drawing.Point(88, 49);
			this.checkBox_plat.Name = "checkBox_plat";
			this.checkBox_plat.Size = new System.Drawing.Size(96, 24);
			this.checkBox_plat.TabIndex = 1;
			this.checkBox_plat.Text = "平台";
			this.checkBox_plat.CheckedChanged += new System.EventHandler(this.checkBox_plat_CheckedChanged);
			// 
			// checkBox_lan
			// 
			this.checkBox_lan.Location = new System.Drawing.Point(88, 25);
			this.checkBox_lan.Name = "checkBox_lan";
			this.checkBox_lan.Size = new System.Drawing.Size(96, 24);
			this.checkBox_lan.TabIndex = 0;
			this.checkBox_lan.Text = "语言";
			this.checkBox_lan.CheckedChanged += new System.EventHandler(this.checkBox_lan_CheckedChanged);
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(8, 200);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(384, 24);
			this.label1.TabIndex = 6;
			// 
			// contextMenu1
			// 
			this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																						 this.menuItem1,
																						 this.menuItem2});
			// 
			// menuItem1
			// 
			this.menuItem1.Index = 0;
			this.menuItem1.Text = "删除";
			this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
			// 
			// menuItem2
			// 
			this.menuItem2.Index = 1;
			this.menuItem2.Text = "修改";
			this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
			// 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -