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

📄 fs_reg.cs

📁 本人编写的一款测试正则表达式的工具 功能简单,但非常实用
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Text.RegularExpressions;

namespace FS_Regulator
{
	/// <summary>
	/// Form1 的摘要说明。
	/// </summary>
	public class FS_Reg : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Panel FS_TopPanel;
		private System.Windows.Forms.Panel FS_BottomPanel;
		private System.Windows.Forms.Panel panel1;
		private System.Windows.Forms.TreeView FS_tree;
		private System.Windows.Forms.Splitter splitter1;
		private System.Windows.Forms.RichTextBox FS_input;
		private System.Windows.Forms.Label FS_title;
		private System.Windows.Forms.CheckBox FS_isIgnore;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox FS_regx;
		private System.Windows.Forms.Button FS_Execute;
		private System.Windows.Forms.ImageList FS_image;
		private System.Windows.Forms.Label FS_total;
		private System.Windows.Forms.ContextMenu FS_Menu;
		private System.Windows.Forms.MenuItem FS_menu_copy;
		private System.Windows.Forms.MenuItem FS_menu_paste;
		private System.Windows.Forms.MenuItem menuItem3;
		private System.Windows.Forms.MenuItem menuItem4;
		private System.Windows.Forms.MenuItem FS_menu_recall;
		private System.Windows.Forms.MenuItem FS_menu_cut;
		private System.Windows.Forms.MenuItem FS_menu_selectall;
		private System.Windows.Forms.MenuItem FS_menu_redo;
		private System.ComponentModel.IContainer components;

		public FS_Reg()
		{
			//
			// 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.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FS_Reg));
			this.FS_TopPanel = new System.Windows.Forms.Panel();
			this.FS_input = new System.Windows.Forms.RichTextBox();
			this.FS_Menu = new System.Windows.Forms.ContextMenu();
			this.FS_menu_copy = new System.Windows.Forms.MenuItem();
			this.splitter1 = new System.Windows.Forms.Splitter();
			this.FS_tree = new System.Windows.Forms.TreeView();
			this.FS_image = new System.Windows.Forms.ImageList(this.components);
			this.panel1 = new System.Windows.Forms.Panel();
			this.FS_total = new System.Windows.Forms.Label();
			this.FS_title = new System.Windows.Forms.Label();
			this.FS_BottomPanel = new System.Windows.Forms.Panel();
			this.FS_Execute = new System.Windows.Forms.Button();
			this.FS_regx = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.FS_isIgnore = new System.Windows.Forms.CheckBox();
			this.FS_menu_paste = new System.Windows.Forms.MenuItem();
			this.FS_menu_recall = new System.Windows.Forms.MenuItem();
			this.FS_menu_cut = new System.Windows.Forms.MenuItem();
			this.menuItem3 = new System.Windows.Forms.MenuItem();
			this.menuItem4 = new System.Windows.Forms.MenuItem();
			this.FS_menu_selectall = new System.Windows.Forms.MenuItem();
			this.FS_menu_redo = new System.Windows.Forms.MenuItem();
			this.FS_TopPanel.SuspendLayout();
			this.panel1.SuspendLayout();
			this.FS_BottomPanel.SuspendLayout();
			this.SuspendLayout();
			// 
			// FS_TopPanel
			// 
			this.FS_TopPanel.Controls.Add(this.FS_input);
			this.FS_TopPanel.Controls.Add(this.splitter1);
			this.FS_TopPanel.Controls.Add(this.FS_tree);
			this.FS_TopPanel.Controls.Add(this.panel1);
			this.FS_TopPanel.Dock = System.Windows.Forms.DockStyle.Fill;
			this.FS_TopPanel.DockPadding.Bottom = 56;
			this.FS_TopPanel.Location = new System.Drawing.Point(0, 0);
			this.FS_TopPanel.Name = "FS_TopPanel";
			this.FS_TopPanel.Size = new System.Drawing.Size(692, 393);
			this.FS_TopPanel.TabIndex = 0;
			// 
			// FS_input
			// 
			this.FS_input.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.FS_input.ContextMenu = this.FS_Menu;
			this.FS_input.DetectUrls = false;
			this.FS_input.Dock = System.Windows.Forms.DockStyle.Fill;
			this.FS_input.HideSelection = false;
			this.FS_input.Location = new System.Drawing.Point(251, 32);
			this.FS_input.Name = "FS_input";
			this.FS_input.Size = new System.Drawing.Size(441, 305);
			this.FS_input.TabIndex = 0;
			this.FS_input.Text = "";
			// 
			// FS_Menu
			// 
			this.FS_Menu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					this.FS_menu_recall,
																					this.FS_menu_redo,
																					this.menuItem3,
																					this.FS_menu_cut,
																					this.FS_menu_copy,
																					this.FS_menu_paste,
																					this.menuItem4,
																					this.FS_menu_selectall});
			this.FS_Menu.Popup += new System.EventHandler(this.FS_Menu_Popup);
			// 
			// FS_menu_copy
			// 
			this.FS_menu_copy.Index = 4;
			this.FS_menu_copy.Text = "复制(&C)  Ctrl+C";
			this.FS_menu_copy.Click += new System.EventHandler(this.FS_menu_copy_Click);
			// 
			// splitter1
			// 
			this.splitter1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(173)), ((System.Byte)(202)), ((System.Byte)(247)));
			this.splitter1.Location = new System.Drawing.Point(248, 32);
			this.splitter1.Name = "splitter1";
			this.splitter1.Size = new System.Drawing.Size(3, 305);
			this.splitter1.TabIndex = 2;
			this.splitter1.TabStop = false;
			// 
			// FS_tree
			// 
			this.FS_tree.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.FS_tree.Dock = System.Windows.Forms.DockStyle.Left;
			this.FS_tree.ImageList = this.FS_image;
			this.FS_tree.Location = new System.Drawing.Point(0, 32);
			this.FS_tree.Name = "FS_tree";
			this.FS_tree.Size = new System.Drawing.Size(248, 305);
			this.FS_tree.TabIndex = 4;
			this.FS_tree.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.FS_tree_AfterSelect);
			// 
			// FS_image
			// 
			this.FS_image.ImageSize = new System.Drawing.Size(16, 16);
			this.FS_image.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("FS_image.ImageStream")));
			this.FS_image.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// panel1
			// 
			this.panel1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel1.BackgroundImage")));
			this.panel1.Controls.Add(this.FS_total);
			this.panel1.Controls.Add(this.FS_title);
			this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
			this.panel1.Location = new System.Drawing.Point(0, 0);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(692, 32);
			this.panel1.TabIndex = 0;
			// 
			// FS_total
			// 
			this.FS_total.BackColor = System.Drawing.Color.Transparent;
			this.FS_total.ForeColor = System.Drawing.Color.Green;
			this.FS_total.Location = new System.Drawing.Point(368, 10);
			this.FS_total.Name = "FS_total";
			this.FS_total.Size = new System.Drawing.Size(256, 16);
			this.FS_total.TabIndex = 1;
			// 
			// FS_title
			// 
			this.FS_title.BackColor = System.Drawing.Color.Transparent;
			this.FS_title.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.FS_title.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(0)), ((System.Byte)(192)));
			this.FS_title.Location = new System.Drawing.Point(0, 10);
			this.FS_title.Name = "FS_title";
			this.FS_title.Size = new System.Drawing.Size(320, 16);
			this.FS_title.TabIndex = 0;
			this.FS_title.Text = "匹配结果(双击可以查看内容)  /  输入您要匹配的内容";
			// 
			// FS_BottomPanel
			// 
			this.FS_BottomPanel.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(173)), ((System.Byte)(202)), ((System.Byte)(247)));
			this.FS_BottomPanel.Controls.Add(this.FS_Execute);
			this.FS_BottomPanel.Controls.Add(this.FS_regx);
			this.FS_BottomPanel.Controls.Add(this.label1);
			this.FS_BottomPanel.Controls.Add(this.FS_isIgnore);
			this.FS_BottomPanel.Dock = System.Windows.Forms.DockStyle.Bottom;
			this.FS_BottomPanel.Location = new System.Drawing.Point(0, 337);
			this.FS_BottomPanel.Name = "FS_BottomPanel";
			this.FS_BottomPanel.Size = new System.Drawing.Size(692, 56);
			this.FS_BottomPanel.TabIndex = 2;
			// 
			// FS_Execute
			// 
			this.FS_Execute.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.FS_Execute.Location = new System.Drawing.Point(600, 24);
			this.FS_Execute.Name = "FS_Execute";
			this.FS_Execute.Size = new System.Drawing.Size(80, 24);
			this.FS_Execute.TabIndex = 3;
			this.FS_Execute.Text = " 执  行 ";
			this.FS_Execute.Click += new System.EventHandler(this.FS_Execute_Click);
			// 
			// FS_regx
			// 
			this.FS_regx.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.FS_regx.Location = new System.Drawing.Point(120, 26);
			this.FS_regx.Name = "FS_regx";
			this.FS_regx.Size = new System.Drawing.Size(464, 21);
			this.FS_regx.TabIndex = 2;
			this.FS_regx.Text = "";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(8, 32);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(112, 16);
			this.label1.TabIndex = 5;
			this.label1.Text = "请输入正则表达式:";
			// 
			// FS_isIgnore
			// 
			this.FS_isIgnore.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.FS_isIgnore.Location = new System.Drawing.Point(8, 8);
			this.FS_isIgnore.Name = "FS_isIgnore";
			this.FS_isIgnore.Size = new System.Drawing.Size(88, 18);
			this.FS_isIgnore.TabIndex = 1;
			this.FS_isIgnore.Text = "忽略大小写";
			// 
			// FS_menu_paste
			// 
			this.FS_menu_paste.Index = 5;
			this.FS_menu_paste.Text = "粘贴(&P)  Ctrl+V";
			this.FS_menu_paste.Click += new System.EventHandler(this.FS_menu_paste_Click);

⌨️ 快捷键说明

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