context: /* ====================================================================
      Copyright (C) 2004-2006  fyiReporting Software, LLC
  
      This file is part of the fyiReporting RDL project.
  	
      The RDL project is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published by
      the Free Software Foundation; either version 2 of the License, or
      (at your option) any later version.
  
      This program is distributed in the hope that it will be useful,
      but WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      GNU General Public License for more details.
  
      You should have received a copy of the GNU General Public License
      along with this program; if not, write to the Free Software
      Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  
      For additional information, email info@fyireporting.com or visit
      the website www.fyiReporting.com.
  */
  using System;
  using System.Drawing;
  using System.Collections;
  using System.ComponentModel;
  using System.Windows.Forms;
  
  namespace fyiReporting.RdlDesign
  {
  	/// <summary>
  	/// Summary description for FindTab.
  	/// </summary>
  	internal class FindTab : System.Windows.Forms.Form
  	{
  		private System.Windows.Forms.TabPage tabFind;
  		private System.Windows.Forms.Label label1;
  		private System.Windows.Forms.TextBox txtFind;
  		private System.Windows.Forms.RadioButton radioUp;
  		private System.Windows.Forms.RadioButton radioDown;
  		private System.Windows.Forms.GroupBox groupBox1;
  		private System.Windows.Forms.CheckBox chkCase;
  		public System.Windows.Forms.TabPage tabGoTo;
  		private System.Windows.Forms.Label label4;
  		private System.Windows.Forms.TextBox txtLine;
  		private System.Windows.Forms.Button btnNext;
  		private RdlEditPreview rdlEdit;
  		private System.Windows.Forms.Button btnGoto;
  		private System.Windows.Forms.Button btnCancel;
  		public System.Windows.Forms.TabPage tabReplace;
  		private System.Windows.Forms.Button btnFindNext;
  		private System.Windows.Forms.CheckBox chkMatchCase;
  		private System.Windows.Forms.Button btnReplaceAll;
  		private System.Windows.Forms.Button btnReplace;
  		private System.Windows.Forms.TextBox txtFindR;
  		private System.Windows.Forms.Label label3;
  		private System.Windows.Forms.Label label2;
  		private System.Windows.Forms.TextBox txtReplace;
  		private System.Windows.Forms.Button bCloseReplace;
  		private System.Windows.Forms.Button bCloseGoto;
  		public System.Windows.Forms.TabControl tcFRG;
  		/// <summary>
  		/// Required designer variable.
  		/// </summary>
  		private System.ComponentModel.Container components = null;
  
  		public FindTab()
  		{
  			//
  			// Required for Windows Form Designer support
  			//
  			InitializeComponent();
  
  			this.AcceptButton = btnNext;
  			this.CancelButton = btnCancel;
  			txtFind.Focus();
  		}
  
  		internal FindTab(RdlEditPreview pad)
  		{
  			rdlEdit = pad; 
  			InitializeComponent();
  			
  			this.AcceptButton = btnNext;
  			this.CancelButton = btnCancel;
  			txtFind.Focus();
  		}
  
  		/// <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.tcFRG = new System.Windows.Forms.TabControl();
  			this.tabFind = new System.Windows.Forms.TabPage();
  			this.btnCancel = new System.Windows.Forms.Button();
  			this.btnNext = new System.Windows.Forms.Button();
  			this.chkCase = new System.Windows.Forms.CheckBox();
  			this.groupBox1 = new System.Windows.Forms.GroupBox();
  			this.radioUp = new System.Windows.Forms.RadioButton();
  			this.radioDown = new System.Windows.Forms.RadioButton();
  			this.label1 = new System.Windows.Forms.Label();
  			this.txtFind = new System.Windows.Forms.TextBox();
  			this.tabReplace = new System.Windows.Forms.TabPage();
  			this.bCloseReplace = new System.Windows.Forms.Button();
  			this.btnFindNext = new System.Windows.Forms.Button();
  			this.chkMatchCase = new System.Windows.Forms.CheckBox();
  			this.btnReplaceAll = new System.Windows.Forms.Button();
  			this.btnReplace = new System.Windows.Forms.Button();
  			this.txtFindR = new System.Windows.Forms.TextBox();
  			this.label3 = new System.Windows.Forms.Label();
  			this.label2 = new System.Windows.Forms.Label();
  			this.txtReplace = new System.Windows.Forms.TextBox();
  			this.tabGoTo = new System.Windows.Forms.TabPage();
  			this.bCloseGoto = new System.Windows.Forms.Button();
  			this.txtLine = new System.Windows.Forms.TextBox();
  			this.label4 = new System.Windows.Forms.Label();
  			this.btnGoto = new System.Windows.Forms.Button();
  			this.tcFRG.SuspendLayout();
  			this.tabFind.SuspendLayout();
  			this.groupBox1.SuspendLayout();
  			this.tabReplace.SuspendLayout();
  			this.tabGoTo.SuspendLayout();
  			this.SuspendLayout();
  			// 
  			// tcFRG
  			// 
  			this.tcFRG.Controls.Add(this.tabFind);
  			this.tcFRG.Controls.Add(this.tabReplace);
  			this.tcFRG.Controls.Add(this.tabGoTo);
  			this.tcFRG.Location = new System.Drawing.Point(8, 8);
  			this.tcFRG.Name = "tcFRG";
  			this.tcFRG.SelectedIndex = 0;
  			this.tcFRG.Size = new System.Drawing.Size(432, 192);
  			this.tcFRG.TabIndex = 0;
  			this.tcFRG.Enter += new System.EventHandler(this.tcFRG_Enter);
  			this.tcFRG.SelectedIndexChanged += new System.EventHandler(this.tcFRG_SelectedIndexChanged);
  			// 
  			// tabFind
  			// 
  			this.tabFind.Controls.Add(this.btnCancel);
  			this.tabFind.Controls.Add(this.btnNext);
  			this.tabFind.Controls.Add(this.chkCase);
  			this.tabFind.Controls.Add(this.groupBox1);
  			this.tabFind.Controls.Add(this.label1);
  			this.tabFind.Controls.Add(this.txtFind);
  			this.tabFind.Location = new System.Drawing.Point(4, 22);
  			this.tabFind.Name = "tabFind";
  			this.tabFind.Size = new System.Drawing.Size(424, 166);
  			this.tabFind.TabIndex = 0;
  			this.tabFind.Tag = "find";
  			this.tabFind.Text = "Find";
  			// 
  			// btnCancel
  			// 
  			this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
  			this.btnCancel.Location = new System.Drawing.Point(344, 128);
  			this.btnCancel.Name = "btnCancel";
  			this.btnCancel.TabIndex = 3;
  			this.btnCancel.Text = "Close";
  			this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
  			// 
  			// btnNext
  			// 
  			this.btnNext.Enabled = false;
  			this.btnNext.Location = new System.Drawing.Point(344, 16);
  			this.btnNext.Name = "btnNext";
  			this.btnNext.TabIndex = 1;
  			this.btnNext.Text = "Find Next";
  			this.btnNext.Click += new System.EventHandler(this.btnNext_Click);
  			// 
  			// chkCase
  			// 
  			this.chkCase.Location = new System.Drawing.Point(208, 72);
  			this.chkCase.Name = "chkCase";
  			this.chkCase.Size = new System.Drawing.Size(88, 24);
  			this.chkCase.TabIndex = 2;
  			this.chkCase.Text = "Match Case";
  			// 
  			// groupBox1
  			// 
  			this.groupBox1.Controls.Add(this.radioUp);
  			this.groupBox1.Controls.Add(this.radioDown);
  			this.groupBox1.Location = new System.Drawing.Point(16, 48);
  			this.groupBox1.Name = "groupBox1";
  			this.groupBox1.Size = new System.Drawing.Size(176, 64);
  			this.groupBox1.TabIndex = 2;
  			this.groupBox1.TabStop = false;
  			this.groupBox1.Text = "Search Direction";
  			// 
  			// radioUp
  			// 
  			this.radioUp.Location = new System.Drawing.Point(16, 24);
  			this.radioUp.Name = "radioUp";
  			this.radioUp.Size = new System.Drawing.Size(56, 24);
  			this.radioUp.TabIndex = 0;
  			this.radioUp.Text = "Up";
  			this.radioUp.CheckedChanged += new System.EventHandler(this.radioUp_CheckedChanged);
  			// 
  			// radioDown
  			// 
  			this.radioDown.Location = new System.Drawing.Point(104, 24);
  			this.radioDown.Name = "radioDown";
  			this.radioDown.Size = new System.Drawing.Size(56, 24);
  			this.radioDown.TabIndex = 1;
  			this.radioDown.Text = "Down";
  			// 
  			// label1
  			// 
  			this.label1.Location = new System.Drawing.Point(12, 16);
  			this.label1.Name = "label1";
  			this.label1.Size = new System.Drawing.Size(76, 23);
  			this.label1.TabIndex = 0;
  			this.label1.Text = "Find";
  			// 
  			// txtFind
  			// 
  
gt: 			this.txtFind.Location = new System.Drawing.Point(96, 16);