/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmHotSearch)); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); this.panelMultiBtns = new System.Windows.Forms.Panel(); this.btnRemoveAll = new System.Windows.Forms.Button(); this.btnRemove = new System.Windows.Forms.Button(); this.btnAddAll = new System.Windows.Forms.Button(); this.btnAdd = new System.Windows.Forms.Button(); this.chkCombined = new ICTEAS.WinForms.Controls.clsCheckBox(); this.panelStdBtns = new System.Windows.Forms.Panel(); this.btnCancel = new ICTEAS.WinForms.Controls.clsButton(); this.btnOK = new ICTEAS.WinForms.Controls.clsButton(); this.panelLevel = new System.Windows.Forms.Panel(); this.lblMax = new System.Windows.Forms.Label(); this.lblSep = new System.Windows.Forms.Label(); this.lblNo = new System.Windows.Forms.Label(); this.lblcomments = new System.Windows.Forms.Label(); this.gradientPanel1 = new ICTEAS.WinForms.Helpers.GradientPanel(this.components); this.grpData = new System.Windows.Forms.GroupBox(); this.dgRecords = new ICTEAS.WinForms.Controls.ReadnSearchGrid(); this.dgSelectedRecords = new ICTEAS.WinForms.Controls.ReadnSearchGrid(); this.panelMultiBtns.SuspendLayout(); this.panelStdBtns.SuspendLayout(); this.panelLevel.SuspendLayout(); this.gradientPanel1.SuspendLayout(); this.grpData.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgRecords)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dgSelectedRecords)).BeginInit(); this.SuspendLayout(); // // panelMultiBtns // this.panelMultiBtns.BackColor = System.Drawing.Color.Transparent; this.panelMultiBtns.Controls.Add(this.btnRemoveAll); this.panelMultiBtns.Controls.Add(this.btnRemove); this.panelMultiBtns.Controls.Add(this.btnAddAll); this.panelMultiBtns.Controls.Add(this.btnAdd); this.panelMultiBtns.Location = new System.Drawing.Point(331, 55); this.panelMultiBtns.Name = "panelMultiBtns"; this.panelMultiBtns.Size = new System.Drawing.Size(36, 198); this.panelMultiBtns.TabIndex = 11; // // btnRemoveAll // this.btnRemoveAll.BackColor = System.Drawing.SystemColors.Control; this.btnRemoveAll.FlatAppearance.BorderSize = 0; this.btnRemoveAll.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnRemoveAll.Location = new System.Drawing.Point(3, 126); this.btnRemoveAll.Name = "btnRemoveAll"; this.btnRemoveAll.Size = new System.Drawing.Size(30, 20); this.btnRemoveAll.TabIndex = 23; this.btnRemoveAll.Text = "<<"; this.btnRemoveAll.UseVisualStyleBackColor = true; this.btnRemoveAll.Click += new System.EventHandler(this.btnRemoveAll_Click); // // btnRemove // this.btnRemove.BackColor = System.Drawing.SystemColors.Control; this.btnRemove.FlatAppearance.BorderSize = 0; this.btnRemove.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnRemove.Location = new System.Drawing.Point(3, 103); this.btnRemove.Name = "btnRemove"; this.btnRemove.Size = new System.Drawing.Size(30, 20); this.btnRemove.TabIndex = 23; this.btnRemove.Text = "<"; this.btnRemove.UseVisualStyleBackColor = true; this.btnRemove.Click += new System.EventHandler(this.btnRemove_Click); // // btnAddAll // this.btnAddAll.BackColor = System.Drawing.SystemColors.Control; this.btnAddAll.FlatAppearance.BorderSize = 0; this.btnAddAll.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnAddAll.Location = new System.Drawing.Point(3, 45); this.btnAddAll.Name = "btnAddAll"; this.btnAddAll.Size = new System.Drawing.Size(30, 20); this.btnAddAll.TabIndex = 22; this.btnAddAll.Text = ">>"; this.btnAddAll.UseVisualStyleBackColor = true; this.btnAddAll.Click += new System.EventHandler(this.btnAdd_Click); // // btnAdd // this.btnAdd.BackColor = System.Drawing.SystemColors.Control; this.btnAdd.FlatAppearance.BorderSize = 0; this.btnAdd.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnAdd.Location = new System.Drawing.Point(3, 22); this.btnAdd.Name = "btnAdd"; this.btnAdd.Size = new System.Drawing.Size(30, 20); this.btnAdd.TabIndex = 21; this.btnAdd.Text = ">"; this.btnAdd.UseVisualStyleBackColor = true; this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click_1); // // chkCombined // this.chkCombined.BackColor = System.Drawing.Color.Transparent; this.chkCombined.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkCombined.Location = new System.Drawing.Point(293, 5); this.chkCombined.MessageID = ""; this.chkCombined.Name = "chkCombined"; this.chkCombined.ResourceName = ""; this.chkCombined.Size = new System.Drawing.Size(186, 21); this.chkCombined.TabIndex = 17; this.chkCombined.UseVisualStyleBackColor = false; this.chkCombined.Visible = false; this.chkCombined.CheckedChanged += new System.EventHandler(this.chkCombined_CheckedChanged); // // panelStdBtns // this.panelStdBtns.BackColor = System.Drawing.Color.Transparent; this.panelStdBtns.Controls.Add(this.btnCancel); this.panelStdBtns.Controls.Add(this.btnOK); this.panelStdBtns.Location = new System.Drawing.Point(296, 302); this.panelStdBtns.Name = "panelStdBtns"; this.panelStdBtns.Size = new System.Drawing.Size(126, 28); this.panelStdBtns.TabIndex = 12; // // btnCancel // this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnCancel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnCancel.Location = new System.Drawing.Point(65, 2); this.btnCancel.MessageID = ""; this.btnCancel.Name = "btnCancel"; this.btnCancel.ResourceName = ""; this.btnCancel.Size = new System.Drawing.Size(59, 22); this.btnCancel.TabIndex = 7; this.btnCancel.TabStop = false; this.btnCancel.Text = "CANCEL"; this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); // // btnOK // this.btnOK.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnOK.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnOK.Location = new System.Drawing.Point(3, 2); this.btnOK.MessageID = ""; this.btnOK.Name = "btnOK"; this.btnOK.ResourceName = ""; this.btnOK.Size = new System.Drawing.Size(59, 22); this.btnOK.TabIndex = 7; this.btnOK.TabStop = false; this.btnOK.Text = "OK"; this.btnOK.Click += new System.EventHandler(this.btnOK_Click); // // panelLevel // this.panelLevel.BackColor = System.Drawing.Color.Transparent; this.panelLevel.Controls.Add(this.lblMax); this.panelLevel.Controls.Add(this.lblSep); this.panelLevel.Controls.Add(this.lblNo); this.panelLevel.Location = new System.Drawing.Point(11, 302); this.panelLevel.Name = "panelLevel"; this.panelLevel.Size = new System.Drawing.Size(44, 20); this.panelLevel.TabIndex = 16; this.panelLevel.Visible = false; this.panelLevel.Paint += new System.Windows.Forms.PaintEventHandler(this.panelLevel_Paint); // // lblMax // this.lblMax.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblMax.Location = new System.Drawing.Point(28, 3); this.lblMax.Name = "lblMax"; this.lblMax.Size = new System.Drawing.Size(14, 14); this.lblMax.TabIndex = 18; this.lblMax.Text = "0"; // // lblSep // this.lblSep.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblSep.Location = new System.Drawing.Point(15, 3); this.lblSep.Name = "lblSep"; this.lblSep.Size = new System.Drawing.Size(14, 14); this.lblSep.TabIndex = 17; this.lblSep.Text = "/"; // // lblNo // this.lblNo.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblNo.Location = new System.Drawing.Point(3, 3); this.lblNo.Name = "lblNo"; this.lblNo.Size = new System.Drawing.Size(14, 14); this.lblNo.TabIndex = 16; this.lblNo.Text = "0"; // // lblcomments // this.lblcomments.FlatStyle = System.Windows.Forms.FlatStyle.System; this.lblcomments.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblcomments.Location = new System.Drawing.Point(266, 16); this.lblcomments.Name = "lblcomments"; this.lblcomments.Size = new System.Drawing.Size(10, 24); this.lblcomments.TabIndex = 19; this.lblcomments.Visible = false; this.lblcomments.Click += new System.EventHandler(this.lblcomments_Click); // // gradientPanel1 // this.gradientPanel1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("gradientPanel1.BackgroundImage"))); this.gradientPanel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.gradientPanel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.gradientPanel1.Controls.Add(this.grpData); this.gradientPanel1.Controls.Add(this.panelStdBtns); this.gradientPanel1.Controls.Add(this.panelLevel); this.gradientPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.gradientPanel1.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Vertical; this.gradientPanel1.Location = new System.Drawing.Point(0, 0); this.gradientPanel1.Name = "gradientPanel1"; this.gradientPanel1.PageEndColor = System.Drawing.Color.FromArgb(((int)(((byte)(84)))), ((int)(((byte)(147)))), ((int)(((byte)(191))))); this.gradientPanel1.PageStartColor = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(224)))), ((int)(((byte)(248))))); this.gradientPanel1.Size = new System.Drawing.Size(704, 335); this.gradientPanel1.TabIndex = 20; // // grpData // this.grpData.BackColor = System.Drawing.Color.Transparent; this.grpData.Controls.Add(this.dgRecords); this.grpData.Controls.Add(this.lblcomments); this.grpData.Controls.Add(this.dgSelectedRecords); this.grpData.Controls.Add(this.panelMultiBtns); this.grpData.Controls.Add(this.chkCombined); this.grpData.Location = new System.Drawing.Point(3, 0); this.grpData.Name = "grpData"; this.grpData.Size = new System.Drawing.Size(696, 298); this.grpData.TabIndex = 23; this.grpData.TabStop = false; // // dgRecords // this.dgRecords.AllowUserToDeleteRows = false; this.dgRecords.AllowUserToResizeRows = false; this.dgRecords.AlternatingBackColor = System.Drawing.Color.Transparent; dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle1.BackColor = System.Drawing.Color.Transparent; dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle1.ForeColor = System.Drawing.Color.Black; dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.Transparent; dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.Black; this.dgRecords.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; this.dgRecords.AssociatedSearchGrid = null; this.dgRecords.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.DisplayedCells; this.dgRecords.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(203)))), ((int)(((byte)(225)))), ((int)(((byte)(252))))); this.dgRecords.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.dgRecords.CaptionFont = null; this.dgRecords.CaptionText = null; this.dgRecords.CaptionVisible = false; dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; this.dgRecords.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; this.dgRecords.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgRecords.ContextMenuVisible = false; this.dgRecords.CstmAlternateRowColorEnd = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(244)))), ((int)(((byte)(248))))); this.dgRecords.CstmAlternateRowColorStart = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(220)))), ((int)(((byte)(234))))); this.dgRecords.CstmCellsColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.dgRecords.CstmEnableSelectedCellColors = true; this.dgRecords.CstmNormalRowColorEnd = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.dgRecords.CstmNormalRowColorStart = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.dgRecords.CstmRowsColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Vertical; this.dgRecords.CstmSelectedCellColorEnd = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.dgRecords.CstmSelectedCellColorStart = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(213)))), ((int)(((byte)(103))))); this.dgRecords.CstmSelectedRowColorEnd = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(228)))), ((int)(((byte)(145))))); this.dgRecords.CstmSelectedRowColorStart = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(213)))), ((int)(((byte)(103))))); dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle3.BackColor = System.Drawing.Color.Transparent; dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.Transparent; dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.Black; dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; this.dgRecords.DefaultCellStyle = dataGridViewCellStyle3; this.dgRecords.DefaultSort = false; this.dgRecords.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; this.dgRecords.EnableDataFiltering = true; this.dgRecords.GridColor = System.Drawing.Color.CadetBlue; this.dgRecords.HeaderFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.dgRecords.HeaderForeColor = System.Drawing.SystemColors.WindowText; this.dgRecords.HotSearchChild = true; this.dgRecords.LangIDs = new string[0]; this.dgRecords.LevelHierarchyColumn1 = -1; this.dgRecords.LevelHierarchyColumn2 = -1; this.dgRecords.LevelSearch = false; this.dgRecords.Location = new System.Drawing.Point(8, 11); this.dgRecords.MessageID = ""; this.dgRecords.MultiLine = false; this.dgRecords.Name = "dgRecords"; this.dgRecords.ReadOnly = true; this.dgRecords.RowHeadersWidth = 15; this.dgRecords.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; this.dgRecords.RowHeaderWidth = 15; this.dgRecords.RowTemplate.Height = 16; this.dgRecords.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dgRecords.Size = new System.Drawing.Size(323, 281); this.dgRecords.SortColumn = 0; this.dgRecords.TabIndex = 21; this.dgRecords.VirtualMode = true; this.dgRecords.MouseDown += new System.Windows.Forms.MouseEventHandler(this.dgRecords_MouseDown_1); this.dgRecords.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgRecords_CellDoubleClick); this.dgRecords.DoubleClick += new System.EventHandler(this.dgRecords_DoubleClick); this.dgRecords.DataSourceChanged += new System.EventHandler(this.dgRecords_DataSourceChanged); // // dgSelectedRecords // this.dgSelectedRecords.AllowUserToDeleteRows = false; this.dgSelectedRecords.AllowUserToResizeRows = false; this.dgSelectedRecords.AlternatingBackColor = System.Drawing.Color.Transparent; dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle4.BackColor = System.Drawing.Color.Transparent; dataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle4.ForeColor = System.Drawing.Color.Black; dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.Transparent; dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.Black; this.dgSelectedRecords.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4; this.dgSelectedRecords.AssociatedSearchGrid = null; this.dgSelectedRecords.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.DisplayedCells; this.dgSelectedRecords.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(203)))), ((int)(((byte)(225)))), ((int)(((byte)(252))))); this.dgSelectedRecords.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.dgSelectedRecords.CaptionFont = null; this.dgSelectedRecords.CaptionText = null; this.dgSelectedRecords.CaptionVisible = false; dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle5.ForeColor = System.Drawing.Color.Black; dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText; this.dgSelectedRecords.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5; this.dgSelectedRecords.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgSelectedRecords.ContextMenuVisible = false; this.dgSelectedRecords.CstmAlternateRowColorEnd = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(244)))), ((int)(((byte)(248))))); this.dgSelectedRecords.CstmAlternateRowColorStart = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(220)))), ((int)(((byte)(234))))); this.dgSelectedRecords.CstmCellsColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.dgSelectedRecords.CstmEnableSelectedCellColors = true; this.dgSelectedRecords.CstmNormalRowColorEnd = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.dgSelectedRecords.CstmNormalRowColorStart = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.dgSelectedRecords.CstmRowsColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Vertical; this.dgSelectedRecords.CstmSelectedCellColorEnd = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.dgSelectedRecords.CstmSelectedCellColorStart = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(213)))), ((int)(((byte)(103))))); this.dgSelectedRecords.CstmSelectedRowColorEnd = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(228)))), ((int)(((byte)(145))))); this.dgSelectedRecords.CstmSelectedRowColorStart = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(213)))), ((int)(((byte)(103))))); dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle6.BackColor = System.Drawing.Color.Transparent; dataGridViewCellStyle6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.ControlText; dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.Transparent; dataGridViewCellStyle6.SelectionForeColor = System.Drawing.Color.Black; dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False; this.dgSelectedRecords.DefaultCellStyle = dataGridViewCellStyle6; this.dgSelectedRecords.DefaultSort = false; this.dgSelectedRecords.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; this.dgSelectedRecords.EnableDataFiltering = false; this.dgSelectedRecords.GridColor = System.Drawing.Color.CadetBlue; this.dgSelectedRecords.HeaderFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.dgSelectedRecords.HeaderForeColor = System.Drawing.Color.Black; this.dgSelectedRecords.HotSearchChild = false; this.dgSelectedRecords.LangIDs = new string[0]; this.dgSelectedRecords.LevelHierarchyColumn1 = -1; this.dgSelectedRecords.LevelHierarchyColumn2 = -1; this.dgSelectedRecords.LevelSearch = false; this.dgSelectedRecords.Location = new System.Drawing.Point(367, 11); this.dgSelectedRecords.MessageID = ""; this.dgSelectedRecords.MultiLine = false; this.dgSelectedRecords.Name = "dgSelectedRecords"; this.dgSelectedRecords.ReadOnly = true; dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle7.ForeColor = System.Drawing.Color.Black; dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgSelectedRecords.RowHeadersDefaultCellStyle = dataGridViewCellStyle7; this.dgSelectedRecords.RowHeadersWidth = 15; this.dgSelectedRecords.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; this.dgSelectedRecords.RowHeaderWidth = 15; this.dgSelectedRecords.RowTemplate.Height = 16; this.dgSelectedRecords.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dgSelectedRecords.Size = new System.Drawing.Size(323, 281); this.dgSelectedRecords.SortColumn = 0; this.dgSelectedRecords.TabIndex = 22; this.dgSelectedRecords.VirtualMode = true; this.dgSelectedRecords.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgSelectedRecords_CellDoubleClick); this.dgSelectedRecords.DoubleClick += new System.EventHandler(this.dgSelectedRecords_DoubleClick_1); // // frmHotSearch // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.BackColor = System.Drawing.Color.White; this.ClientSize = new System.Drawing.Size(704, 335); this.Controls.Add(this.gradientPanel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.KeyPreview = true; this.MaximizeBox = false; this.MaximumSize = new System.Drawing.Size(710, 359); this.MessageID = ""; this.MinimizeBox = false; this.MinimumSize = new System.Drawing.Size(352, 359); this.Name = "frmHotSearch"; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.TabText = "Search Records"; this.Text = "Search Records"; this.Load += new System.EventHandler(this.frmHotSearch_Load); this.Closed += new System.EventHandler(this.frmHotSearch_Closed); this.panelMultiBtns.ResumeLayout(false); this.panelStdBtns.ResumeLayout(false); this.panelLevel.ResumeLayout(false); this.gradientPanel1.ResumeLayout(false); this.grpData.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dgRecords)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dgSelectedRecords)).EndInit(); this.ResumeLayout(false); }
public StringBuilder get_filter(ReadnSearchGrid _grid ) { try { SearchStubCollection<SearchStub> objPreviousSerachStub = new SearchStubCollection<SearchStub>(); System.Text.StringBuilder sb = new System.Text.StringBuilder(); DataTable dt = (DataTable)_DgView.DataSource; for (int i = 0; i < dt.Columns.Count; i++) { if (dt.Columns[i].ColumnName.ToString().ToUpper().StartsWith("MASK_")) continue; SearchStub objSearchStub = null; string s = String.Empty; AutoFilterHeader filter; if (i == get_actual_colum_index(_CurrentColumnIndex,_grid.dtFullData)) { s = txtSearch.Text; objSearchStub = new SearchStub(SearchText, objFilterHeader, objFilterHeader.OwningColumn.HeaderText); } else { filter = (AutoFilterHeader)_DgView.Columns[get_unreal_colum_index(i,_grid.dtFullData)].HeaderCell; objSearchStub = new SearchStub(filter.SearchText, filter, filter.OwningColumn.HeaderText); Type p = ((object)filter.SearchText).GetType(); if (p.ToString() == "System.String") { s = (string)filter.SearchText; } } objPreviousSerachStub.Add(objSearchStub); if (s == String.Empty) { continue; } else { if (!boolWildCardSearch) { sb.Append("(" + dt.Columns[i].ColumnName + " LIKE '" + s + "%' ) AND "); } else { sb.Append("(" + dt.Columns[i].ColumnName + " LIKE '%" + s + "%' ) AND "); boolWildCardSearch = false; } } //if (s == String.Empty) //{ // continue; //} //else //{ // if (!boolWildCardSearch) // { // sb.Append("(" + dt.Columns[i].ColumnName + " LIKE '" + s + "%' ) AND "); // } // else // { // sb.Append("(" + dt.Columns[i].ColumnName + " LIKE '%" + s + "%' ) AND "); // boolWildCardSearch = false; // } //} } ((ReadnSearchGrid)this.objFilterHeader.OwningColumn.DataGridView).PreviousSearchStub = objPreviousSerachStub; if (sb.ToString() != "") { sb.Replace(" AND ", "", sb.Length - 5, 5); } return sb; } catch (Exception ex) { return null; } }