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

📄 frmsearchfile.cs

📁 银行家算法 具有详细的说明文档 可供学生朋友使用和学习
💻 CS
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace FileSystem
{
	/// <summary>
	/// FrmSearchFile 的摘要说明。
	/// </summary>
	public class FrmSearchFile : System.Windows.Forms.Form
	{
		public System.Windows.Forms.CheckBox cbOnly;
		public System.Windows.Forms.RadioButton rdbHere;
		private System.Windows.Forms.Button btnOK;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Button btnCancel;
		public System.Windows.Forms.RadioButton rdbRoot;
		private System.Windows.Forms.Label label2;
		public System.Windows.Forms.TextBox tbFileName;
		public System.Windows.Forms.TextBox tbFileType;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public FrmSearchFile()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.cbOnly = new System.Windows.Forms.CheckBox();
			this.rdbHere = new System.Windows.Forms.RadioButton();
			this.btnOK = new System.Windows.Forms.Button();
			this.tbFileName = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.btnCancel = new System.Windows.Forms.Button();
			this.rdbRoot = new System.Windows.Forms.RadioButton();
			this.tbFileType = new System.Windows.Forms.TextBox();
			this.label2 = new System.Windows.Forms.Label();
			this.SuspendLayout();
			// 
			// cbOnly
			// 
			this.cbOnly.Location = new System.Drawing.Point(8, 168);
			this.cbOnly.Name = "cbOnly";
			this.cbOnly.TabIndex = 11;
			this.cbOnly.Text = "不搜索子目录";
			// 
			// rdbHere
			// 
			this.rdbHere.Location = new System.Drawing.Point(8, 88);
			this.rdbHere.Name = "rdbHere";
			this.rdbHere.Size = new System.Drawing.Size(136, 24);
			this.rdbHere.TabIndex = 10;
			this.rdbHere.Text = "从当前位置开始搜索";
			// 
			// btnOK
			// 
			this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.btnOK.Location = new System.Drawing.Point(40, 216);
			this.btnOK.Name = "btnOK";
			this.btnOK.TabIndex = 8;
			this.btnOK.Text = "搜索";
			// 
			// tbFileName
			// 
			this.tbFileName.Location = new System.Drawing.Point(120, 8);
			this.tbFileName.Name = "tbFileName";
			this.tbFileName.Size = new System.Drawing.Size(144, 21);
			this.tbFileName.TabIndex = 6;
			this.tbFileName.Text = "";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(8, 8);
			this.label1.Name = "label1";
			this.label1.TabIndex = 5;
			this.label1.Text = "文件夹名称:";
			// 
			// btnCancel
			// 
			this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btnCancel.Location = new System.Drawing.Point(144, 216);
			this.btnCancel.Name = "btnCancel";
			this.btnCancel.TabIndex = 7;
			this.btnCancel.Text = "取消";
			// 
			// rdbRoot
			// 
			this.rdbRoot.Location = new System.Drawing.Point(8, 128);
			this.rdbRoot.Name = "rdbRoot";
			this.rdbRoot.Size = new System.Drawing.Size(128, 24);
			this.rdbRoot.TabIndex = 9;
			this.rdbRoot.Text = "从根目录开始搜索";
			// 
			// tbFileType
			// 
			this.tbFileType.Location = new System.Drawing.Point(120, 48);
			this.tbFileType.Name = "tbFileType";
			this.tbFileType.Size = new System.Drawing.Size(144, 21);
			this.tbFileType.TabIndex = 6;
			this.tbFileType.Text = "";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(8, 48);
			this.label2.Name = "label2";
			this.label2.TabIndex = 5;
			this.label2.Text = "文件夹名称:";
			// 
			// FrmSearchFile
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(290, 263);
			this.Controls.Add(this.cbOnly);
			this.Controls.Add(this.rdbHere);
			this.Controls.Add(this.btnOK);
			this.Controls.Add(this.tbFileName);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.btnCancel);
			this.Controls.Add(this.rdbRoot);
			this.Controls.Add(this.tbFileType);
			this.Controls.Add(this.label2);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "FrmSearchFile";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
			this.Text = "搜索文件";
			this.Load += new System.EventHandler(this.FrmSearchFile_Load);
			this.ResumeLayout(false);

		}
		#endregion

		private void FrmSearchFile_Load(object sender, System.EventArgs e)
		{
			rdbHere.Checked=true;
		}
	}
}

⌨️ 快捷键说明

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