亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? searchform.cs

?? C#實現DHTML編輯器功能!
?? CS
字號:
// DINAMIC XML Editor
//
// Copyright (c) 2002-2003 Dusan Hlavaty
// mailto: duddo@atlas.cz
//
// This software is licensed under the terms of
// GNU General Public license
//
using System;
using System.Windows.Forms;

namespace XML_editor.MyForms
{
	/// <summary>
	/// Zobrazuje formular, v ktorom sa da vyhladavat
	/// </summary>
	public class SearchForm : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox textBoxFind;
		private System.Windows.Forms.Button buttonFind;
		private System.Windows.Forms.Button buttonClose;
		
		
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.CheckBox checkCaseSensitive;
		
		private System.Windows.Forms.CheckBox checkSearchUp;
		private System.Windows.Forms.GroupBox groupBox3;
		private System.Windows.Forms.RadioButton radioFromCursor;
		private System.Windows.Forms.RadioButton radioFromTop;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		/// <summary>
		/// odkaz na hlavny formular aplikacie
		/// </summary>
		private MainForm mainForm = null;

		// -------------------------------------------------------------------------
		/// <summary>
		/// odkaz na hlavny formular aplikacie
		/// </summary>
		public MainForm MainForm
		{
			get 
			{
				return this.mainForm;
			}
		}

		// -------------------------------------------------------------------------
		/// <summary>
		/// Inicializuje instanciu <see cref="SearchForm"/>
		/// </summary>
		public SearchForm(MainForm mainForm)
		{
			this.mainForm = mainForm;
			this.MyInitializeComponent();
		}

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

		// -------------------------------------------------------------------------
		/// <summary>
		/// Moj Designer support
		/// </summary>
		private void MyInitializeComponent()
		{
			this.label1 = new System.Windows.Forms.Label();
			this.buttonFind = new System.Windows.Forms.Button();
			this.buttonClose = new System.Windows.Forms.Button();
			this.textBoxFind = new System.Windows.Forms.TextBox();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.checkCaseSensitive = new System.Windows.Forms.CheckBox();
			this.checkSearchUp = new System.Windows.Forms.CheckBox();
			this.groupBox3 = new System.Windows.Forms.GroupBox();
			this.radioFromCursor = new System.Windows.Forms.RadioButton();
			this.radioFromTop = new System.Windows.Forms.RadioButton();
			this.groupBox2.SuspendLayout();
			this.groupBox3.SuspendLayout();
			this.SuspendLayout();
			// 
			// label1
			// 
			this.label1.AutoSize = true;
			this.label1.CausesValidation = false;
			this.label1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.label1.Location = new System.Drawing.Point(16, 20);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(56, 13);
			this.label1.TabIndex = 4;
			this.label1.Text = "Find what:";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// buttonFind
			// 
			this.buttonFind.CausesValidation = false;
			this.buttonFind.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.buttonFind.Location = new System.Drawing.Point(72, 144);
			this.buttonFind.Name = "buttonFind";
			this.buttonFind.TabIndex = 1;
			this.buttonFind.Text = "Find";
			this.buttonFind.Click += new System.EventHandler(this.Clicked_buttonFind);
			// 
			// buttonClose
			// 
			this.buttonClose.CausesValidation = false;
			this.buttonClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.buttonClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.buttonClose.Location = new System.Drawing.Point(160, 144);
			this.buttonClose.Name = "buttonClose";
			this.buttonClose.TabIndex = 2;
			this.buttonClose.Text = "Close";
			this.buttonClose.Click += new System.EventHandler(this.Clicked_buttonClose);

			// 
			// textBoxFind
			// 
			this.textBoxFind.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.textBoxFind.Location = new System.Drawing.Point(72, 16);
			this.textBoxFind.Name = "textBoxFind";
			this.textBoxFind.Size = new System.Drawing.Size(224, 20);
			this.textBoxFind.TabIndex = 0;
			this.textBoxFind.Text = "";
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.AddRange(new System.Windows.Forms.Control[] {
																																						this.checkSearchUp,
																																						this.checkCaseSensitive});
			this.groupBox2.Location = new System.Drawing.Point(160, 56);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(136, 80);
			this.groupBox2.TabIndex = 5;
			this.groupBox2.TabStop = false;
			this.groupBox2.Text = "Options";
			// 
			// checkCaseSensitive
			// 
			this.checkCaseSensitive.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.checkCaseSensitive.Location = new System.Drawing.Point(16, 24);
			this.checkCaseSensitive.Name = "checkCaseSensitive";
			this.checkCaseSensitive.TabIndex = 7;
			this.checkCaseSensitive.Text = "Case &sensitive";
			// 
			// checkSearchUp
			// 
			this.checkSearchUp.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.checkSearchUp.Location = new System.Drawing.Point(16, 48);
			this.checkSearchUp.Name = "checkSearchUp";
			this.checkSearchUp.TabIndex = 8;
			this.checkSearchUp.Text = "S&earch up";
			// 
			// groupBox3
			// 
			this.groupBox3.Controls.AddRange(new System.Windows.Forms.Control[] {
																																						this.radioFromCursor,
																																						this.radioFromTop});
			this.groupBox3.Location = new System.Drawing.Point(16, 56);
			this.groupBox3.Name = "groupBox3";
			this.groupBox3.Size = new System.Drawing.Size(136, 80);
			this.groupBox3.TabIndex = 3;
			this.groupBox3.TabStop = false;
			this.groupBox3.Text = "Origin";
			// 
			// radioFromCursor
			// 
			this.radioFromCursor.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.radioFromCursor.Location = new System.Drawing.Point(16, 24);
			this.radioFromCursor.Name = "radioFromCursor";
			this.radioFromCursor.TabIndex = 3;
			this.radioFromCursor.Text = "From &cursor";
			// 
			// radioFromTop
			// 
			this.radioFromTop.Checked = true;
			this.radioFromTop.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.radioFromTop.Location = new System.Drawing.Point(16, 48);
			this.radioFromTop.Name = "radioFromTop";
			this.radioFromTop.TabIndex = 4;
			this.radioFromTop.TabStop = true;
			this.radioFromTop.Text = "From the &top";
			// 
			// SearchForm
			// 
			this.AcceptButton = this.buttonFind;
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.CancelButton = this.buttonClose;
			this.ClientSize = new System.Drawing.Size(306, 175);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																																	this.groupBox3,
																																	this.groupBox2,
																																	this.textBoxFind,
																																	this.buttonClose,
																																	this.buttonFind,
																																	this.label1});
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.ControlBox = false;
			this.Name = "SearchForm";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "Find Text";
			this.groupBox2.ResumeLayout(false);
			this.groupBox3.ResumeLayout(false);
			this.ResumeLayout(false);

		}


		// -------------------------------------------------------------------------
		/// <summary>
		/// Stlacenie tlacidla CLOSE
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void Clicked_buttonClose(object sender, System.EventArgs e)
		{
			this.Hide();
		}

		// -------------------------------------------------------------------------
		/// <summary>
		/// Stlacenie tlacidla FIND
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		public void Clicked_buttonFind(object sender, System.EventArgs e)
		{
			int searchFrom;

			if (this.MainForm.ActualTextAreaControl == null) 
			{
				return;
			}

			if (this.checkSearchUp.Checked == true) 
			{
				searchFrom = this.MainForm.ActualTextAreaControl.Document.TextLength - 1;
			} 
			else 
			{
				searchFrom = 0;	
			}

			if (this.radioFromCursor.Checked == true) 
			{
				searchFrom = this.MainForm.ActualTextAreaControl.Document.Caret.Offset;
			}

			this.Find(searchFrom, this.checkSearchUp.Checked, this.textBoxFind.Text, this.checkCaseSensitive.Checked);
			this.radioFromCursor.Checked = true;
			this.radioFromTop.Checked = false;
			
			this.Hide();
		}

		// -------------------------------------------------------------------------
		/// <summary>
		/// Najde zadany retazec v dokumente.
		/// </summary>
		/// <param name="startHere">na tomto offsete zacni hladat</param>
		/// <param name="searchUp"><c>true</c> = hladame smerom dolu, inac <c>false</c></param>
		/// <param name="findThis">tento retazec hladaj</param>
		/// <param name="caseSensitive"><c>true</c> = case sensitive</param>
		private void Find(int startHere, bool searchUp, string findThis, bool caseSensitive)
		{
			int position = -1;
			
			if (searchUp == false) 
			{
				position = DLTextEditor.Document.TextUtilities.FindNextString(this.MainForm.ActualTextAreaControl.Document, startHere+1, this.textBoxFind.Text, this.checkCaseSensitive.Checked);
				if (position < 0)
				{
					MessageBox.Show("Search string '" + findThis + "' not found.", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
					return;
				}
				
			} 
			else 
			{
				position = DLTextEditor.Document.TextUtilities.FindPreviousString(this.MainForm.ActualTextAreaControl.Document, startHere-1, this.textBoxFind.Text, this.checkCaseSensitive.Checked);
				if (position < 0)
				{
					MessageBox.Show("Search string '" + findThis + "' not found.", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
					return;
				}
			}

			this.MainForm.ActualTextAreaControl.JumpTo(position);
			DLTextEditor.Document.SelectionManager.DefaultSelection s = new DLTextEditor.Document.SelectionManager.DefaultSelection(this.MainForm.ActualTextAreaControl.Document, position, findThis.Length);
			this.MainForm.ActualTextAreaControl.Document.ClearSelection();
			this.MainForm.ActualTextAreaControl.Document.SetSelection(s);
			this.MainForm.ActualTextAreaControl.Focus();
		}

	} // public class SearchForm : ...
} // namespace XML_editor.MyForms

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩亚洲欧美一区二区三区| 欧美国产日韩亚洲一区| 久久精品视频免费观看| 91在线观看下载| 日韩一级大片在线观看| 亚洲蜜臀av乱码久久精品| 美腿丝袜亚洲色图| 91福利在线观看| 国产欧美精品一区| 天天综合色天天综合| 成人av一区二区三区| 久久综合九色综合97婷婷女人| 亚洲久草在线视频| 国内精品伊人久久久久av一坑| 欧美性猛交xxxx乱大交退制版 | 欧美一区二区视频免费观看| 日本一区二区在线不卡| 久久爱另类一区二区小说| 欧美日韩一区二区三区在线看 | 欧美另类一区二区三区| 中文一区二区在线观看| 国产主播一区二区三区| 日韩三级视频在线看| 亚洲国产精品自拍| 亚洲激情第一区| 成人h精品动漫一区二区三区| 精品成a人在线观看| 丝袜美腿亚洲综合| 69av一区二区三区| 性做久久久久久久免费看| 欧美日韩在线三区| 亚洲v中文字幕| 欧美卡1卡2卡| 一区二区三区四区在线| 91在线免费视频观看| 亚洲色图一区二区| 91日韩一区二区三区| 一区二区三区在线观看动漫| 在线亚洲+欧美+日本专区| 一区二区三区视频在线观看| 欧美亚洲国产一区二区三区va| 亚洲精品视频免费看| 在线精品视频一区二区三四| 自拍偷拍亚洲欧美日韩| 日本精品一区二区三区四区的功能| 中文字幕一区二| 色婷婷av一区二区三区软件 | 国产精品久久久久久久第一福利| 国产成人综合在线观看| 国产精品美女一区二区三区 | 国产一区在线视频| 久久久久97国产精华液好用吗| 国产大片一区二区| 亚洲欧美日韩在线不卡| 91.com在线观看| 国产综合一区二区| 国产精品白丝在线| 欧美日韩色一区| 久久丁香综合五月国产三级网站| 国产目拍亚洲精品99久久精品| 91亚洲精品乱码久久久久久蜜桃 | 欧美三区在线视频| 另类欧美日韩国产在线| 国产精品麻豆视频| 欧美精品99久久久**| 国产剧情一区二区三区| 亚洲影院久久精品| 久久精品亚洲国产奇米99| 91色视频在线| 久久精品国产一区二区| 亚洲精品美腿丝袜| 精品av久久707| 91首页免费视频| 久久国产剧场电影| 亚洲精品视频在线看| 欧美xxxxxxxxx| 在线免费观看成人短视频| 美国欧美日韩国产在线播放| 国产精品毛片a∨一区二区三区| 欧美精品高清视频| 91老师片黄在线观看| 久久99久久精品欧美| 亚洲精品老司机| 精品理论电影在线| 日本高清视频一区二区| 国产精品亚洲午夜一区二区三区 | 欧美一级高清片| 成人av影视在线观看| 老司机午夜精品| 午夜久久久久久久久久一区二区| 中文字幕乱码日本亚洲一区二区| 欧美精品久久99| 欧美性做爰猛烈叫床潮| 成人黄色av网站在线| 精品一区二区在线看| 午夜精品久久久久久| 亚洲欧洲国产日韩| 国产午夜三级一区二区三| 欧美高清www午色夜在线视频| 99久久国产综合精品女不卡| 国产一区二区精品久久91| 日韩精品视频网站| 亚洲国产你懂的| 欧美三区在线观看| 亚洲少妇屁股交4| 久久久久久久久97黄色工厂| 欧美日韩精品一区二区| 色婷婷综合视频在线观看| 成人免费电影视频| 国产传媒久久文化传媒| 精品一区二区久久| 亚洲成av人在线观看| 亚洲一区二区三区四区在线| 1024国产精品| 亚洲视频网在线直播| 亚洲精品伦理在线| 亚洲国产精品久久久男人的天堂 | 成人免费视频一区二区| 国产精品1024久久| 国内欧美视频一区二区 | 日本aⅴ免费视频一区二区三区| 亚洲福利视频导航| 日韩黄色片在线观看| 日韩国产在线观看一区| 日本不卡1234视频| 紧缚奴在线一区二区三区| 久久国产尿小便嘘嘘| 国产精品一区二区在线观看不卡| 黄页网站大全一区二区| 丁香婷婷综合五月| 色婷婷综合五月| 91精品国产综合久久久久久漫画| 在线电影欧美成精品| 欧美不卡一二三| 欧美国产一区二区在线观看| 亚洲人一二三区| 亚洲成人av福利| 久久精品国产第一区二区三区| 国产美女在线观看一区| eeuss影院一区二区三区| 色噜噜夜夜夜综合网| 5858s免费视频成人| 久久久无码精品亚洲日韩按摩| 国产精品国产自产拍在线| 一二三区精品福利视频| 麻豆精品在线视频| eeuss鲁一区二区三区| 欧美理论电影在线| 国产丝袜欧美中文另类| 一区二区三区欧美日韩| 日本麻豆一区二区三区视频| 成人永久免费视频| 欧美日韩国产精选| 中文一区二区完整视频在线观看| 亚洲国产成人91porn| 狠狠色伊人亚洲综合成人| 色狠狠一区二区| 久久久亚洲高清| 天天综合天天综合色| 99精品1区2区| 精品国产亚洲一区二区三区在线观看| 国产精品第13页| 蜜桃av一区二区在线观看| 91亚洲精品乱码久久久久久蜜桃| 日韩一区二区影院| 亚洲欧美日韩在线| 国产传媒久久文化传媒| 欧美一区中文字幕| 一区二区三区.www| 成人影视亚洲图片在线| 日韩一区二区在线观看视频| 亚洲精品ww久久久久久p站| 国产一区二区三区在线观看精品 | 99久久国产综合色|国产精品| 日韩一区二区三区视频| 一区二区高清在线| 99国产精品99久久久久久| 国产日韩一级二级三级| 奇米777欧美一区二区| 欧美性做爰猛烈叫床潮| 17c精品麻豆一区二区免费| 国产不卡在线播放| 精品少妇一区二区三区视频免付费 | 国产偷v国产偷v亚洲高清| 青椒成人免费视频| 欧美日韩成人综合在线一区二区| 一区二区中文字幕在线| 国产精品一区二区久久不卡 | 国产精品系列在线观看| 日韩午夜av一区| 石原莉奈在线亚洲三区| 在线观看国产一区二区| 亚洲色图制服丝袜| 91麻豆国产福利在线观看| 亚洲欧洲国产日本综合| 成人午夜精品在线| 国产精品激情偷乱一区二区∴| 成人美女在线视频| 国产精品久久久久久久久免费相片 | 日日摸夜夜添夜夜添精品视频 |