From 2071e3bb18c2d4c516b5597082398b028e81eb73 Mon Sep 17 00:00:00 2001 From: Kathy Date: Fri, 10 Sep 2010 17:49:48 +0000 Subject: [PATCH] --- PROMS/Volian.Controls.Library/DisplayRO.cs | 122 +- .../DisplaySearch.Designer.cs | 2359 +++++++++-------- .../Volian.Controls.Library/DisplaySearch.cs | 2101 +++++++-------- 3 files changed, 2336 insertions(+), 2246 deletions(-) diff --git a/PROMS/Volian.Controls.Library/DisplayRO.cs b/PROMS/Volian.Controls.Library/DisplayRO.cs index 965f35a2..6ea164f5 100644 --- a/PROMS/Volian.Controls.Library/DisplayRO.cs +++ b/PROMS/Volian.Controls.Library/DisplayRO.cs @@ -327,6 +327,25 @@ namespace Volian.Controls.Library } return String.Compare(value1, value2, true) > 0; } + public void RefreshRoTree() + { + string roid = null; + if (tvROFST.SelectedNode != null) + { + if (tvROFST.SelectedNode.Tag is ROFSTLookup.rochild) + { + ROFSTLookup.rochild chld = (ROFSTLookup.rochild)tvROFST.SelectedNode.Tag; + roid = chld.roid; + } + } + _CurROFST = null; + LoadTree(); + if (_SelectedRoidBeforeRoEditor != null) + { + ExpandTree(_SelectedRoidBeforeRoEditor); + _SelectedRoidBeforeRoEditor = null; + } + } private void LoadTree() { if (_MyROFST == null) return; @@ -468,6 +487,7 @@ namespace Volian.Controls.Library _MyRTB.inRoAdd = true; if (CheckROSelection(roch)) // check for RO type is valid for this type of step/substep { + //int ss = _MyRTB.SelectionStart; // the roid may be 12 or 16 chars long, with the last 4 set if there is unit specific // menuing. Pad to 12 to store in the rousage table. string padroid = (roch.roid.Length <= 12) ? roch.roid + "0000" : roch.roid; @@ -475,8 +495,14 @@ namespace Volian.Controls.Library // Resolve symbols and scientific notation in the RO return value string valtxt = ConvertSymbolsAndStuff(selectedChld.value); _MyRTB.InsertRO(valtxt, linktxt); - _MyRTB.Select(_MyRTB.SelectionStart + valtxt.Length + linktxt.Length, 0); + //_MyRTB.Select(_MyRTB.SelectionStart + valtxt.Length + linktxt.Length, 0); + int ss = _MyRTB.SelectionStart; _MyRTB.SaveText(); + //_MyRTB.Select(_MyRTB.SelectionStart + valtxt.Length + linktxt.Length, 0); + //_MyRTB.Select(_MyRTB.SelectionStart + valtxt.Length, 0); + //_MyRTB.Select(_MyRTB.SelectionStart + 1, 0); + _MyRTB.Select(ss + valtxt.Length + linktxt.Length+1, 0); + //_MyRTB.Select(ss, 0); _MyRTB.Focus(); } _MyRTB.inRoAdd = false; @@ -648,50 +674,44 @@ namespace Volian.Controls.Library { string outstr = instr; - outstr = outstr.Replace("`", @"\'b0"); // convert backquote to degree - left over from DOS days. - //outstr = outstr.Replace(" ", @"\u160?"); // KBR TRY THIS - outstr = outstr.Replace("\xa0", @"\u160?"); // hardspace - outstr = outstr.Replace("\xb0", @"\'b0"); // degree - outstr = outstr.Replace("\x7f", @"\u916?"); // delta - outstr = outstr.Replace("\x2265", @"\u8805?"); // greater than or equal - outstr = outstr.Replace("\x2264", @"\u8804?"); // less than or equal - outstr = outstr.Replace("\xB1", @"\'b1"); // plus minus - outstr = outstr.Replace("\x3A3", @"\u931?"); // sigma - outstr = outstr.Replace("\x3C4", @"\u947?"); // gamma - outstr = outstr.Replace("\xBD", @"\'bd"); // half - outstr = outstr.Replace("\x25A0", @"\u9604?"); // accum 2584 - outstr = outstr.Replace("\x7", @"\u9679?"); // bullet 25CF - outstr = outstr.Replace("\x2248", @"\u8776?"); // approx eq - outstr = outstr.Replace("\x2261", @"\u8773?"); // similar eq 2245 - outstr = outstr.Replace("\xF7", @"\'f7"); // division - outstr = outstr.Replace("\x221A", @"\u8730?"); // square root - outstr = outstr.Replace("\x393", @"\u961?"); // rho 3C1 - outstr = outstr.Replace("\x3C0", @"\u960?"); // pi - outstr = outstr.Replace("\xb5", @"\u956?"); // micro 3BC (try e6, if not work try 109) - outstr = outstr.Replace("\x3B4", @"\u948?"); // lower case delta - outstr = outstr.Replace("\x3C3", @"\u963?"); // lower case sigma - outstr = outstr.Replace("\xBC", @"\'bc"); // quarter - outstr = outstr.Replace("\x3C6", @"\'d8"); // dist zero, D8 - outstr = outstr.Replace("\xC9", @"\u274?"); // energy, 112 - outstr = outstr.Replace("\xEC", @"\'ec"); // grave - outstr = outstr.Replace("\x2502", @"\u9474?"); // bar - outstr = outstr.Replace("\x3B5", @"\u949?"); // epsilon - outstr = outstr.Replace("\x398", @"\u952?"); // theta, 3B8 - outstr = outstr.Replace("\x221E", @"\u8857?"); // dot in oval, 2299 - outstr = outstr.Replace("\xBF", @"\u964?"); // tau, 3C4 - outstr = outstr.Replace("\x2310", @"\u9830?"); // diamond, 2666 - outstr = outstr.Replace("\x2192", @"\u8594?"); - outstr = outstr.Replace("\x2190", @"\u8592?"); - outstr = outstr.Replace("\x2191", @"\u8593?"); - outstr = outstr.Replace("\x2193", @"\u8595?"); - outstr = outstr.Replace("\x2207", @"\u8711?"); - // DisplayTODO: DO WE NEED TO CHECK WHETHER TO REPLACE ^ CHARACTER FOR SETPOINTS? - //if (DoCaret) s2 = s2.Replace("^", @"\u916"); - outstr = outstr.Replace("^", @"\u916"); - - // OLD: This function is now handled in the ConvertFortranFormatToScienctificNotation - //outstr = ConvertDOSSuperAndSubScripts(outstr); - + outstr = outstr.Replace("`", @"\'b0"); // convert backquote to degree - left over from DOS days. + outstr = outstr.Replace("\xa0", @"\u160?"); // hardspace + outstr = outstr.Replace("\xb0", @"\'b0"); // degree + outstr = outstr.Replace("\x7f", @"\f1\u916?\f0"); // delta + outstr = outstr.Replace("\x2265", @"\f1\u8805?\f0"); // greater than or equal + outstr = outstr.Replace("\x2264", @"\f1\u8804?\f0"); // less than or equal + outstr = outstr.Replace("\xB1", @"\'b1"); // plus minus + outstr = outstr.Replace("\x3A3", @"\f1\u931?\f0"); // sigma + outstr = outstr.Replace("\x3C4", @"\f1\u947?\f0"); // gamma + outstr = outstr.Replace("\xBD", @"\'bd"); // half + outstr = outstr.Replace("\x25A0", @"\f1\u9604?\f0"); // accum 2584 + outstr = outstr.Replace("\x7", @"\f1\u9679?\f0"); // bullet 25CF + outstr = outstr.Replace("\x2248", @"\f1\u8776?\f0"); // approx eq + outstr = outstr.Replace("\x2261", @"\f1\u8773?\f0"); // similar eq 2245 + outstr = outstr.Replace("\xF7", @"\'f7"); // division + outstr = outstr.Replace("\x221A", @"\f1\u8730?\f0"); // square root + outstr = outstr.Replace("\x393", @"\f1\u961?\f0"); // rho 3C1 + outstr = outstr.Replace("\x3C0", @"\f1\u960?\f0"); // pi + outstr = outstr.Replace("\xb5", @"\f1\u956?\f0"); // micro 3BC (try e6, if not work try 109) + outstr = outstr.Replace("\x3B4", @"\f1\u948?\f0"); // lower case delta + outstr = outstr.Replace("\x3C3", @"\f1\u963?\f0"); // lower case sigma + outstr = outstr.Replace("\xBC", @"\'bc"); // quarter + outstr = outstr.Replace("\x3C6", @"\'d8"); // dist zero, D8 + outstr = outstr.Replace("\xC9", @"\f1\u274?\f0"); // energy, 112 + outstr = outstr.Replace("\xEC", @"\'ec"); // grave + outstr = outstr.Replace("\x2502", @"\f1\u9474?\f0"); // bar + outstr = outstr.Replace("\x3B5", @"\f1\u949?\f0"); // epsilon + outstr = outstr.Replace("\x398", @"\f1\u952?\f0"); // theta, 3B8 + outstr = outstr.Replace("\x221E", @"\f1\u8857?\f0"); // dot in oval, 2299 + outstr = outstr.Replace("\xBF", @"\f1\u964?\f0"); // tau, 3C4 + outstr = outstr.Replace("\x2310", @"\f1\u9830?\f0"); // diamond, 2666 + outstr = outstr.Replace("\x2192", @"\f1\u8594?\f0"); + outstr = outstr.Replace("\x2190", @"\f1\u8592?\f0"); + outstr = outstr.Replace("\x2191", @"\f1\u8593?\f0"); + outstr = outstr.Replace("\x2193", @"\f1\u8595?\f0"); + outstr = outstr.Replace("\x2207", @"\f1\u8711?\f0"); + if (MyRTB.MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.ConvertCaretToDelta) + outstr = outstr.Replace("^", @"\f1\u916?\f0"); outstr = ROFSTLookup.ConvertFortranFormatToScienctificNotation(outstr); return outstr; @@ -729,11 +749,19 @@ namespace Volian.Controls.Library #endregion // utils + private string _SelectedRoidBeforeRoEditor = null; private void lbROId_DoubleClick(object sender, EventArgs e) { + if (tvROFST.SelectedNode == null) return; string roapp = Environment.GetEnvironmentVariable("roapp"); - string args = "\"" + _MyROFST.MyRODb.FolderPath + "\" " + CurROLink.ROID.ToLower(); - System.Diagnostics.Process.Start(roapp, args); + Object obj = tvROFST.SelectedNode.Tag; + if (obj is ROFSTLookup.rochild) + { + ROFSTLookup.rochild roch = (ROFSTLookup.rochild)obj; + _SelectedRoidBeforeRoEditor = roch.roid; + string args = "\"" + _MyROFST.MyRODb.FolderPath + "\" " + roch.roid.ToLower(); + System.Diagnostics.Process.Start(roapp, args); + } } #endregion diff --git a/PROMS/Volian.Controls.Library/DisplaySearch.Designer.cs b/PROMS/Volian.Controls.Library/DisplaySearch.Designer.cs index f7ae5d44..8d4cc923 100644 --- a/PROMS/Volian.Controls.Library/DisplaySearch.Designer.cs +++ b/PROMS/Volian.Controls.Library/DisplaySearch.Designer.cs @@ -47,1186 +47,1230 @@ namespace Volian.Controls.Library /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); - this.tabSearchTypes = new DevComponents.DotNetBar.TabControl(); - this.tabControlPanel2 = new DevComponents.DotNetBar.TabControlPanel(); - this.gpFindROs = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.cbxFndUnLnkROVals = new DevComponents.DotNetBar.Controls.CheckBoxX(); - this.cmboTreeROs = new DevComponents.DotNetBar.Controls.ComboTree(); - this.tabROSearch = new DevComponents.DotNetBar.TabItem(this.components); - this.tabControlPanel4 = new DevComponents.DotNetBar.TabControlPanel(); - this.gpSrchText = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.cbxTextSearchText = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.label1 = new System.Windows.Forms.Label(); - this.panel3 = new System.Windows.Forms.Panel(); - this.cbxBooleanTxtSrch = new DevComponents.DotNetBar.Controls.CheckBoxX(); - this.cbxIncROTextSrch = new DevComponents.DotNetBar.Controls.CheckBoxX(); - this.cbxCaseSensitive = new DevComponents.DotNetBar.Controls.CheckBoxX(); - this.rbtnSrchTxt = new DevComponents.DotNetBar.Controls.CheckBoxX(); - this.cbxSrchTypeUsage = new DevComponents.DotNetBar.Controls.CheckBoxX(); - this.tabStepTypeSearch = new DevComponents.DotNetBar.TabItem(this.components); - this.tabControlPanel3 = new DevComponents.DotNetBar.TabControlPanel(); - this.gpSrchAnnoText = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.cbxBooleanAnoTxtSrch = new DevComponents.DotNetBar.Controls.CheckBoxX(); - this.cbxCaseSensitiveAnnoText = new DevComponents.DotNetBar.Controls.CheckBoxX(); - this.cbxTextSearchAnnotation = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.label2 = new System.Windows.Forms.Label(); - this.cbxAnnoTypes = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.tabAnnotationSearch = new DevComponents.DotNetBar.TabItem(this.components); - this.contextMenuBar1 = new DevComponents.DotNetBar.ContextMenuBar(); - this.btnCMIFindText = new DevComponents.DotNetBar.ButtonItem(); - this.btnCMEdit = new DevComponents.DotNetBar.ButtonItem(); - this.cmFndTxtCut = new DevComponents.DotNetBar.ButtonItem(); - this.cmFndTxtCopy = new DevComponents.DotNetBar.ButtonItem(); - this.cmFndTxtPaste = new DevComponents.DotNetBar.ButtonItem(); - this.btnCMInsert = new DevComponents.DotNetBar.ButtonItem(); - this.cmFndTxtInsHardSp = new DevComponents.DotNetBar.ButtonItem(); - this.cmFndTxtInsSymbol = new DevComponents.DotNetBar.ButtonItem(); - this.galSymbols = new DevComponents.DotNetBar.GalleryContainer(); - this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem2 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem3 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem4 = new DevComponents.DotNetBar.ButtonItem(); - this.btnBooleanItems = new DevComponents.DotNetBar.ButtonItem(); - this.btnAND = new DevComponents.DotNetBar.ButtonItem(); - this.btnOR = new DevComponents.DotNetBar.ButtonItem(); - this.btnNOT = new DevComponents.DotNetBar.ButtonItem(); - this.advTreeProcSets = new DevComponents.AdvTree.AdvTree(); - this.elementStyle1 = new DevComponents.DotNetBar.ElementStyle(); - this.node1 = new DevComponents.AdvTree.Node(); - this.nodeConnector1 = new DevComponents.AdvTree.NodeConnector(); - this.advTreeStepTypes = new DevComponents.AdvTree.AdvTree(); - this.elementStyle2 = new DevComponents.DotNetBar.ElementStyle(); - this.node2 = new DevComponents.AdvTree.Node(); - this.nodeConnector2 = new DevComponents.AdvTree.NodeConnector(); - this.grpPanSearchResults = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.lbSrchResults = new System.Windows.Forms.ListBox(); - this.panSearchButtons = new DevComponents.DotNetBar.PanelEx(); - this.btnClearSearchResults = new DevComponents.DotNetBar.ButtonX(); - this.btnCopySearchResults = new DevComponents.DotNetBar.ButtonX(); - this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.cmbResultsStyle = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.comboItem1 = new DevComponents.Editors.ComboItem(); - this.comboItem2 = new DevComponents.Editors.ComboItem(); - this.comboItem3 = new DevComponents.Editors.ComboItem(); - this.comboItem4 = new DevComponents.Editors.ComboItem(); - this.cbSorted = new DevComponents.DotNetBar.Controls.CheckBoxX(); - this.btnSearch = new DevComponents.DotNetBar.ButtonX(); - this.btnPrnSrchRslts = new DevComponents.DotNetBar.ButtonX(); - this.xpSetToSearch = new DevComponents.DotNetBar.ExpandablePanel(); - this.xpStepTypes = new DevComponents.DotNetBar.ExpandablePanel(); - this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); - this.superTooltip1 = new DevComponents.DotNetBar.SuperTooltip(); - ((System.ComponentModel.ISupportInitialize)(this.tabSearchTypes)).BeginInit(); - this.tabSearchTypes.SuspendLayout(); - this.tabControlPanel2.SuspendLayout(); - this.gpFindROs.SuspendLayout(); - this.tabControlPanel4.SuspendLayout(); - this.gpSrchText.SuspendLayout(); - this.panel1.SuspendLayout(); - this.panel3.SuspendLayout(); - this.tabControlPanel3.SuspendLayout(); - this.gpSrchAnnoText.SuspendLayout(); - this.panel4.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.contextMenuBar1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.advTreeProcSets)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.advTreeStepTypes)).BeginInit(); - this.grpPanSearchResults.SuspendLayout(); - this.panSearchButtons.SuspendLayout(); - this.xpSetToSearch.SuspendLayout(); - this.xpStepTypes.SuspendLayout(); - this.SuspendLayout(); - // - // tabSearchTypes - // - this.tabSearchTypes.CanReorderTabs = false; - this.tabSearchTypes.CloseButtonOnTabsAlwaysDisplayed = false; - this.tabSearchTypes.CloseButtonPosition = DevComponents.DotNetBar.eTabCloseButtonPosition.Right; - this.tabSearchTypes.Controls.Add(this.tabControlPanel4); - this.tabSearchTypes.Controls.Add(this.tabControlPanel2); - this.tabSearchTypes.Controls.Add(this.tabControlPanel3); - this.tabSearchTypes.Controls.Add(this.contextMenuBar1); - this.tabSearchTypes.Dock = System.Windows.Forms.DockStyle.Top; - this.tabSearchTypes.Location = new System.Drawing.Point(0, 0); - this.tabSearchTypes.Margin = new System.Windows.Forms.Padding(2); - this.tabSearchTypes.Name = "tabSearchTypes"; - this.tabSearchTypes.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.tabSearchTypes.SelectedTabFont = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); - this.tabSearchTypes.SelectedTabIndex = 0; - this.tabSearchTypes.ShowFocusRectangle = false; - this.tabSearchTypes.Size = new System.Drawing.Size(277, 112); - this.tabSearchTypes.Style = DevComponents.DotNetBar.eTabStripStyle.Office2007Document; - this.tabSearchTypes.TabIndex = 0; - this.tabSearchTypes.TabLayoutType = DevComponents.DotNetBar.eTabLayoutType.FixedWithNavigationBox; - this.tabSearchTypes.Tabs.Add(this.tabStepTypeSearch); - this.tabSearchTypes.Tabs.Add(this.tabAnnotationSearch); - this.tabSearchTypes.Tabs.Add(this.tabROSearch); - this.tabSearchTypes.Text = "tabControl1"; - this.tabSearchTypes.ThemeAware = true; - // - // tabControlPanel2 - // - this.tabControlPanel2.Controls.Add(this.gpFindROs); - this.tabControlPanel2.Controls.Add(this.cmboTreeROs); - this.tabControlPanel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.tabControlPanel2.Location = new System.Drawing.Point(0, 22); - this.tabControlPanel2.Margin = new System.Windows.Forms.Padding(2); - this.tabControlPanel2.Name = "tabControlPanel2"; - this.tabControlPanel2.Padding = new System.Windows.Forms.Padding(1); - this.tabControlPanel2.Size = new System.Drawing.Size(277, 90); - this.tabControlPanel2.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254))))); - this.tabControlPanel2.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227))))); - this.tabControlPanel2.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.tabControlPanel2.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199))))); - this.tabControlPanel2.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right) - | DevComponents.DotNetBar.eBorderSide.Bottom))); - this.tabControlPanel2.Style.GradientAngle = 90; - this.tabControlPanel2.TabIndex = 2; - this.tabControlPanel2.TabItem = this.tabROSearch; - // - // gpFindROs - // - this.gpFindROs.CanvasColor = System.Drawing.SystemColors.Control; - this.gpFindROs.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; - this.gpFindROs.Controls.Add(this.cbxFndUnLnkROVals); - this.gpFindROs.Dock = System.Windows.Forms.DockStyle.Fill; - this.gpFindROs.Location = new System.Drawing.Point(1, 21); - this.gpFindROs.Margin = new System.Windows.Forms.Padding(2); - this.gpFindROs.Name = "gpFindROs"; - this.gpFindROs.Size = new System.Drawing.Size(275, 68); - // - // - // - this.gpFindROs.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; - this.gpFindROs.Style.BackColorGradientAngle = 90; - this.gpFindROs.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; - this.gpFindROs.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.gpFindROs.Style.BorderBottomWidth = 1; - this.gpFindROs.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.gpFindROs.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.gpFindROs.Style.BorderLeftWidth = 1; - this.gpFindROs.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.gpFindROs.Style.BorderRightWidth = 1; - this.gpFindROs.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.gpFindROs.Style.BorderTopWidth = 1; - this.gpFindROs.Style.Class = ""; - this.gpFindROs.Style.CornerDiameter = 4; - this.gpFindROs.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; - this.gpFindROs.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; - this.gpFindROs.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.gpFindROs.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; - // - // - // - this.gpFindROs.StyleMouseDown.Class = ""; - // - // - // - this.gpFindROs.StyleMouseOver.Class = ""; - this.gpFindROs.TabIndex = 3; - this.gpFindROs.EnabledChanged += new System.EventHandler(this.gpFindROs_EnabledChanged); - // - // cbxFndUnLnkROVals - // - this.cbxFndUnLnkROVals.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.cbxFndUnLnkROVals.BackgroundStyle.Class = ""; - this.cbxFndUnLnkROVals.Enabled = false; - this.cbxFndUnLnkROVals.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cbxFndUnLnkROVals.Location = new System.Drawing.Point(0, 3); - this.cbxFndUnLnkROVals.Margin = new System.Windows.Forms.Padding(2); - this.cbxFndUnLnkROVals.Name = "cbxFndUnLnkROVals"; - this.cbxFndUnLnkROVals.Size = new System.Drawing.Size(141, 19); - this.cbxFndUnLnkROVals.TabIndex = 2; - this.cbxFndUnLnkROVals.Text = "Find Unlinked Values"; - // - // cmboTreeROs - // - this.cmboTreeROs.BackColor = System.Drawing.SystemColors.Window; - // - // - // - this.cmboTreeROs.BackgroundStyle.Class = "TextBoxBorder"; - this.cmboTreeROs.ButtonDropDown.Visible = true; - this.cmboTreeROs.Dock = System.Windows.Forms.DockStyle.Top; - this.cmboTreeROs.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cmboTreeROs.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F"; - this.cmboTreeROs.Location = new System.Drawing.Point(1, 1); - this.cmboTreeROs.Margin = new System.Windows.Forms.Padding(2); - this.cmboTreeROs.Name = "cmboTreeROs"; - this.cmboTreeROs.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.cmboTreeROs.Size = new System.Drawing.Size(275, 20); - this.superTooltip1.SetSuperTooltip(this.cmboTreeROs, new DevComponents.DotNetBar.SuperTooltipInfo("Select the RO to Search", "", "Select the Referenced Object to search for.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray)); - this.cmboTreeROs.TabIndex = 1; - this.cmboTreeROs.ThemeAware = true; - this.cmboTreeROs.WatermarkText = "Select an RO to seach"; - this.cmboTreeROs.SelectedIndexChanged += new System.EventHandler(this.cmboTreeROs_SelectedIndexChanged); - // - // tabROSearch - // - this.tabROSearch.AttachedControl = this.tabControlPanel2; - this.tabROSearch.Name = "tabROSearch"; - this.tabROSearch.Text = "Referenced Objects"; - // - // tabControlPanel4 - // - this.tabControlPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; - this.tabControlPanel4.Controls.Add(this.gpSrchText); - this.tabControlPanel4.Controls.Add(this.rbtnSrchTxt); - this.tabControlPanel4.Controls.Add(this.cbxSrchTypeUsage); - this.tabControlPanel4.Dock = System.Windows.Forms.DockStyle.Fill; - this.tabControlPanel4.Location = new System.Drawing.Point(0, 22); - this.tabControlPanel4.Margin = new System.Windows.Forms.Padding(2); - this.tabControlPanel4.Name = "tabControlPanel4"; - this.tabControlPanel4.Padding = new System.Windows.Forms.Padding(1); - this.tabControlPanel4.Size = new System.Drawing.Size(277, 90); - this.tabControlPanel4.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254))))); - this.tabControlPanel4.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227))))); - this.tabControlPanel4.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.tabControlPanel4.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199))))); - this.tabControlPanel4.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right) - | DevComponents.DotNetBar.eBorderSide.Bottom))); - this.tabControlPanel4.Style.GradientAngle = 90; - this.superTooltip1.SetSuperTooltip(this.tabControlPanel4, new DevComponents.DotNetBar.SuperTooltipInfo("Text Search", "", "Enter the text you want to search, or select from the drop down list.\r\n\r\nLeave bl" + - "ank to search for the usage of the selected types in \"Filter By Types\".", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(175, 140))); - this.tabControlPanel4.TabIndex = 4; - this.tabControlPanel4.TabItem = this.tabStepTypeSearch; - // - // gpSrchText - // - this.gpSrchText.CanvasColor = System.Drawing.SystemColors.Control; - this.gpSrchText.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; - this.gpSrchText.Controls.Add(this.panel1); - this.gpSrchText.Controls.Add(this.panel3); - this.gpSrchText.Dock = System.Windows.Forms.DockStyle.Fill; - this.gpSrchText.Location = new System.Drawing.Point(23, 1); - this.gpSrchText.Margin = new System.Windows.Forms.Padding(2); - this.gpSrchText.Name = "gpSrchText"; - this.gpSrchText.Size = new System.Drawing.Size(253, 70); - // - // - // - this.gpSrchText.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; - this.gpSrchText.Style.BackColorGradientAngle = 90; - this.gpSrchText.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; - this.gpSrchText.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.gpSrchText.Style.BorderBottomWidth = 1; - this.gpSrchText.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.gpSrchText.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.gpSrchText.Style.BorderLeftWidth = 1; - this.gpSrchText.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.gpSrchText.Style.BorderRightWidth = 1; - this.gpSrchText.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.gpSrchText.Style.BorderTopWidth = 1; - this.gpSrchText.Style.Class = ""; - this.gpSrchText.Style.CornerDiameter = 4; - this.gpSrchText.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; - this.gpSrchText.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; - this.gpSrchText.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.gpSrchText.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; - // - // - // - this.gpSrchText.StyleMouseDown.Class = ""; - // - // - // - this.gpSrchText.StyleMouseOver.Class = ""; - this.gpSrchText.TabIndex = 5; - this.gpSrchText.EnabledChanged += new System.EventHandler(this.gpSrchText_EnabledChanged); - // - // panel1 - // - this.panel1.BackColor = System.Drawing.Color.Transparent; - this.panel1.Controls.Add(this.cbxTextSearchText); - this.panel1.Controls.Add(this.label1); - this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom; - this.panel1.Location = new System.Drawing.Point(0, -2); - this.panel1.Margin = new System.Windows.Forms.Padding(2); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(247, 23); - this.panel1.TabIndex = 5; - // - // cbxTextSearchText - // - this.contextMenuBar1.SetContextMenuEx(this.cbxTextSearchText, this.btnCMIFindText); - this.cbxTextSearchText.DisplayMember = "Text"; - this.cbxTextSearchText.Dock = System.Windows.Forms.DockStyle.Fill; - this.cbxTextSearchText.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cbxTextSearchText.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cbxTextSearchText.FormattingEnabled = true; - this.cbxTextSearchText.ItemHeight = 18; - this.cbxTextSearchText.Location = new System.Drawing.Point(34, 0); - this.cbxTextSearchText.Margin = new System.Windows.Forms.Padding(2); - this.cbxTextSearchText.Name = "cbxTextSearchText"; - this.cbxTextSearchText.Size = new System.Drawing.Size(213, 24); - this.superTooltip1.SetSuperTooltip(this.cbxTextSearchText, new DevComponents.DotNetBar.SuperTooltipInfo("Search for Text", "", "Enter the text you want to search, or select from the drop down list.\r\n", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(175, 80))); - this.cbxTextSearchText.TabIndex = 2; - this.cbxTextSearchText.WatermarkFont = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cbxTextSearchText.WatermarkText = "Enter Search Text Here"; - this.cbxTextSearchText.Leave += new System.EventHandler(this.cbxTextSearchText_Leave); - this.cbxTextSearchText.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ProcessEnterKey); - // - // label1 - // - this.label1.AutoSize = true; - this.label1.BackColor = System.Drawing.Color.Transparent; - this.label1.Dock = System.Windows.Forms.DockStyle.Left; - this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label1.Location = new System.Drawing.Point(0, 0); - this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label1.Name = "label1"; - this.label1.Padding = new System.Windows.Forms.Padding(0, 5, 0, 0); - this.label1.Size = new System.Drawing.Size(34, 20); - this.label1.TabIndex = 4; - this.label1.Text = "Find:"; - // - // panel3 - // - this.panel3.BackColor = System.Drawing.Color.Transparent; - this.panel3.Controls.Add(this.cbxBooleanTxtSrch); - this.panel3.Controls.Add(this.cbxIncROTextSrch); - this.panel3.Controls.Add(this.cbxCaseSensitive); - this.panel3.Dock = System.Windows.Forms.DockStyle.Bottom; - this.panel3.Location = new System.Drawing.Point(0, 21); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(247, 43); - this.panel3.TabIndex = 6; - // - // cbxBooleanTxtSrch - // - // - // - // - this.cbxBooleanTxtSrch.BackgroundStyle.Class = ""; - this.cbxBooleanTxtSrch.Location = new System.Drawing.Point(8, 23); - this.cbxBooleanTxtSrch.Name = "cbxBooleanTxtSrch"; - this.cbxBooleanTxtSrch.Size = new System.Drawing.Size(111, 17); - this.cbxBooleanTxtSrch.TabIndex = 6; - this.cbxBooleanTxtSrch.Text = "Boolean Search"; - this.cbxBooleanTxtSrch.CheckedChanged += new System.EventHandler(this.cbxBooleanTxtSrch_CheckedChanged); - // - // cbxIncROTextSrch - // - // - // - // - this.cbxIncROTextSrch.BackgroundStyle.Class = ""; - this.cbxIncROTextSrch.Checked = true; - this.cbxIncROTextSrch.CheckState = System.Windows.Forms.CheckState.Checked; - this.cbxIncROTextSrch.CheckValue = "Y"; - this.cbxIncROTextSrch.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cbxIncROTextSrch.Location = new System.Drawing.Point(113, 1); - this.cbxIncROTextSrch.Name = "cbxIncROTextSrch"; - this.cbxIncROTextSrch.Size = new System.Drawing.Size(112, 20); - this.cbxIncROTextSrch.TabIndex = 5; - this.cbxIncROTextSrch.Text = "Search RO Text"; - // - // cbxCaseSensitive - // - this.cbxCaseSensitive.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.cbxCaseSensitive.BackgroundStyle.Class = ""; - this.cbxCaseSensitive.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cbxCaseSensitive.Location = new System.Drawing.Point(8, 1); - this.cbxCaseSensitive.Margin = new System.Windows.Forms.Padding(2); - this.cbxCaseSensitive.Name = "cbxCaseSensitive"; - this.cbxCaseSensitive.Size = new System.Drawing.Size(104, 20); - this.superTooltip1.SetSuperTooltip(this.cbxCaseSensitive, new DevComponents.DotNetBar.SuperTooltipInfo("Case Sensitive", "", "When this box is checked, Search will find only exact mactches of the search text" + - " you had entered.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(180, 100))); - this.cbxCaseSensitive.TabIndex = 3; - this.cbxCaseSensitive.Text = "Case Sensitive"; - // - // rbtnSrchTxt - // - this.rbtnSrchTxt.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.rbtnSrchTxt.BackgroundStyle.Class = ""; - this.rbtnSrchTxt.CheckBoxStyle = DevComponents.DotNetBar.eCheckBoxStyle.RadioButton; - this.rbtnSrchTxt.Checked = true; - this.rbtnSrchTxt.CheckState = System.Windows.Forms.CheckState.Checked; - this.rbtnSrchTxt.CheckValue = "Y"; - this.rbtnSrchTxt.Dock = System.Windows.Forms.DockStyle.Left; - this.rbtnSrchTxt.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.rbtnSrchTxt.Location = new System.Drawing.Point(1, 1); - this.rbtnSrchTxt.Margin = new System.Windows.Forms.Padding(2); - this.rbtnSrchTxt.Name = "rbtnSrchTxt"; - this.rbtnSrchTxt.Size = new System.Drawing.Size(22, 70); - this.rbtnSrchTxt.TabIndex = 6; - this.rbtnSrchTxt.CheckedChanged += new System.EventHandler(this.rbtnSrchTxt_CheckedChanged); - // - // cbxSrchTypeUsage - // - this.cbxSrchTypeUsage.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.cbxSrchTypeUsage.BackgroundStyle.Class = ""; - this.cbxSrchTypeUsage.CheckBoxStyle = DevComponents.DotNetBar.eCheckBoxStyle.RadioButton; - this.cbxSrchTypeUsage.Dock = System.Windows.Forms.DockStyle.Bottom; - this.cbxSrchTypeUsage.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cbxSrchTypeUsage.Location = new System.Drawing.Point(1, 71); - this.cbxSrchTypeUsage.Margin = new System.Windows.Forms.Padding(2); - this.cbxSrchTypeUsage.Name = "cbxSrchTypeUsage"; - this.cbxSrchTypeUsage.Size = new System.Drawing.Size(275, 18); - this.cbxSrchTypeUsage.TabIndex = 4; - this.cbxSrchTypeUsage.Text = " Find Selected Types"; - this.cbxSrchTypeUsage.CheckedChanged += new System.EventHandler(this.cbxSrchTypeUsage_CheckedChanged); - // - // tabStepTypeSearch - // - this.tabStepTypeSearch.AttachedControl = this.tabControlPanel4; - this.tabStepTypeSearch.Name = "tabStepTypeSearch"; - this.superTooltip1.SetSuperTooltip(this.tabStepTypeSearch, new DevComponents.DotNetBar.SuperTooltipInfo("Search for Text", "", "Allows you to search for entered text in selected procedure sets and within selec" + - "ted procedure text types.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(170, 110))); - this.tabStepTypeSearch.Text = "Text"; - this.tabStepTypeSearch.Click += new System.EventHandler(this.tabStepTypeSearch_Click); - // - // tabControlPanel3 - // - this.tabControlPanel3.Controls.Add(this.gpSrchAnnoText); - this.tabControlPanel3.Controls.Add(this.cbxAnnoTypes); - this.tabControlPanel3.Dock = System.Windows.Forms.DockStyle.Fill; - this.tabControlPanel3.Location = new System.Drawing.Point(0, 22); - this.tabControlPanel3.Margin = new System.Windows.Forms.Padding(2); - this.tabControlPanel3.Name = "tabControlPanel3"; - this.tabControlPanel3.Padding = new System.Windows.Forms.Padding(1); - this.tabControlPanel3.Size = new System.Drawing.Size(277, 90); - this.tabControlPanel3.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254))))); - this.tabControlPanel3.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227))))); - this.tabControlPanel3.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.tabControlPanel3.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199))))); - this.tabControlPanel3.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right) - | DevComponents.DotNetBar.eBorderSide.Bottom))); - this.tabControlPanel3.Style.GradientAngle = 90; - this.tabControlPanel3.TabIndex = 5; - this.tabControlPanel3.TabItem = this.tabAnnotationSearch; - // - // gpSrchAnnoText - // - this.gpSrchAnnoText.AutoSize = true; - this.gpSrchAnnoText.CanvasColor = System.Drawing.SystemColors.Control; - this.gpSrchAnnoText.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; - this.gpSrchAnnoText.Controls.Add(this.panel4); - this.gpSrchAnnoText.Dock = System.Windows.Forms.DockStyle.Fill; - this.gpSrchAnnoText.Enabled = false; - this.gpSrchAnnoText.Location = new System.Drawing.Point(1, 25); - this.gpSrchAnnoText.Margin = new System.Windows.Forms.Padding(2); - this.gpSrchAnnoText.Name = "gpSrchAnnoText"; - this.gpSrchAnnoText.Size = new System.Drawing.Size(275, 64); - // - // - // - this.gpSrchAnnoText.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; - this.gpSrchAnnoText.Style.BackColorGradientAngle = 90; - this.gpSrchAnnoText.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; - this.gpSrchAnnoText.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.gpSrchAnnoText.Style.BorderBottomWidth = 1; - this.gpSrchAnnoText.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.gpSrchAnnoText.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.gpSrchAnnoText.Style.BorderLeftWidth = 1; - this.gpSrchAnnoText.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.gpSrchAnnoText.Style.BorderRightWidth = 1; - this.gpSrchAnnoText.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.gpSrchAnnoText.Style.BorderTopWidth = 1; - this.gpSrchAnnoText.Style.Class = ""; - this.gpSrchAnnoText.Style.CornerDiameter = 4; - this.gpSrchAnnoText.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; - this.gpSrchAnnoText.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; - this.gpSrchAnnoText.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.gpSrchAnnoText.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; - // - // - // - this.gpSrchAnnoText.StyleMouseDown.Class = ""; - // - // - // - this.gpSrchAnnoText.StyleMouseOver.Class = ""; - this.gpSrchAnnoText.TabIndex = 6; - this.gpSrchAnnoText.EnabledChanged += new System.EventHandler(this.gpSrchAnnoText_EnabledChanged); - // - // panel4 - // - this.panel4.BackColor = System.Drawing.Color.Transparent; - this.panel4.Controls.Add(this.cbxBooleanAnoTxtSrch); - this.panel4.Controls.Add(this.cbxCaseSensitiveAnnoText); - this.panel4.Controls.Add(this.cbxTextSearchAnnotation); - this.panel4.Controls.Add(this.label2); - this.panel4.Dock = System.Windows.Forms.DockStyle.Top; - this.panel4.Location = new System.Drawing.Point(0, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(2); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(269, 62); - this.panel4.TabIndex = 9; - // - // cbxBooleanAnoTxtSrch - // - // - // - // - this.cbxBooleanAnoTxtSrch.BackgroundStyle.Class = ""; - this.cbxBooleanAnoTxtSrch.Location = new System.Drawing.Point(12, 41); - this.cbxBooleanAnoTxtSrch.Name = "cbxBooleanAnoTxtSrch"; - this.cbxBooleanAnoTxtSrch.Size = new System.Drawing.Size(111, 17); - this.cbxBooleanAnoTxtSrch.TabIndex = 8; - this.cbxBooleanAnoTxtSrch.Text = "Boolean Search"; - this.cbxBooleanAnoTxtSrch.CheckedChanged += new System.EventHandler(this.cbxBooleanAnoTxtSrch_CheckedChanged); - // - // cbxCaseSensitiveAnnoText - // - this.cbxCaseSensitiveAnnoText.AutoSize = true; - this.cbxCaseSensitiveAnnoText.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.cbxCaseSensitiveAnnoText.BackgroundStyle.Class = ""; - this.cbxCaseSensitiveAnnoText.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cbxCaseSensitiveAnnoText.Location = new System.Drawing.Point(12, 25); - this.cbxCaseSensitiveAnnoText.Margin = new System.Windows.Forms.Padding(2); - this.cbxCaseSensitiveAnnoText.Name = "cbxCaseSensitiveAnnoText"; - this.cbxCaseSensitiveAnnoText.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.cbxCaseSensitiveAnnoText.Size = new System.Drawing.Size(103, 16); - this.superTooltip1.SetSuperTooltip(this.cbxCaseSensitiveAnnoText, new DevComponents.DotNetBar.SuperTooltipInfo("Case Sensitive", "", "When this box is checked, Search will find only exact mactches of the search text" + - " you had entered.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(180, 100))); - this.cbxCaseSensitiveAnnoText.TabIndex = 5; - this.cbxCaseSensitiveAnnoText.Text = "Case Sensitive"; - // - // cbxTextSearchAnnotation - // - this.contextMenuBar1.SetContextMenuEx(this.cbxTextSearchAnnotation, this.btnCMIFindText); - this.cbxTextSearchAnnotation.DisplayMember = "Text"; - this.cbxTextSearchAnnotation.Dock = System.Windows.Forms.DockStyle.Fill; - this.cbxTextSearchAnnotation.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cbxTextSearchAnnotation.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cbxTextSearchAnnotation.FormattingEnabled = true; - this.cbxTextSearchAnnotation.ItemHeight = 18; - this.cbxTextSearchAnnotation.Location = new System.Drawing.Point(34, 0); - this.cbxTextSearchAnnotation.Margin = new System.Windows.Forms.Padding(2); - this.cbxTextSearchAnnotation.Name = "cbxTextSearchAnnotation"; - this.cbxTextSearchAnnotation.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.cbxTextSearchAnnotation.Size = new System.Drawing.Size(235, 24); - this.superTooltip1.SetSuperTooltip(this.cbxTextSearchAnnotation, new DevComponents.DotNetBar.SuperTooltipInfo("Search For Annotaion Text", "", "Enter Annotation text to search for or select from the dropdown list.\r\n\r\nLeave Bl" + - "ank to search for occurences of the selected annotation.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(180, 140))); - this.cbxTextSearchAnnotation.TabIndex = 6; - this.cbxTextSearchAnnotation.WatermarkFont = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cbxTextSearchAnnotation.WatermarkText = "Enter Search Text Here"; - this.cbxTextSearchAnnotation.Leave += new System.EventHandler(this.cbxTextSearchAnnotation_Leave); - this.cbxTextSearchAnnotation.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ProcessEnterKey); - // - // label2 - // - this.label2.AutoSize = true; - this.label2.BackColor = System.Drawing.Color.Transparent; - this.label2.Dock = System.Windows.Forms.DockStyle.Left; - this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label2.Location = new System.Drawing.Point(0, 0); - this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label2.Name = "label2"; - this.label2.Padding = new System.Windows.Forms.Padding(0, 5, 0, 0); - this.label2.Size = new System.Drawing.Size(34, 20); - this.label2.TabIndex = 7; - this.label2.Text = "Find:"; - // - // cbxAnnoTypes - // - this.cbxAnnoTypes.DisplayMember = "Text"; - this.cbxAnnoTypes.Dock = System.Windows.Forms.DockStyle.Top; - this.cbxAnnoTypes.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cbxAnnoTypes.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cbxAnnoTypes.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cbxAnnoTypes.FormattingEnabled = true; - this.cbxAnnoTypes.ItemHeight = 18; - this.cbxAnnoTypes.Location = new System.Drawing.Point(1, 1); - this.cbxAnnoTypes.Margin = new System.Windows.Forms.Padding(2); - this.cbxAnnoTypes.Name = "cbxAnnoTypes"; - this.cbxAnnoTypes.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.cbxAnnoTypes.Size = new System.Drawing.Size(275, 24); - this.superTooltip1.SetSuperTooltip(this.cbxAnnoTypes, new DevComponents.DotNetBar.SuperTooltipInfo("Select Annotation Type", "", "Select the type of annotation to search for.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(192, 61))); - this.cbxAnnoTypes.TabIndex = 0; - this.cbxAnnoTypes.WatermarkText = "Select AnnotationType to Search"; - // - // tabAnnotationSearch - // - this.tabAnnotationSearch.AttachedControl = this.tabControlPanel3; - this.tabAnnotationSearch.Name = "tabAnnotationSearch"; - this.tabAnnotationSearch.Text = "Annotations"; - this.tabAnnotationSearch.Click += new System.EventHandler(this.tabAnnotationSearch_Click); - // - // contextMenuBar1 - // - this.contextMenuBar1.DockSide = DevComponents.DotNetBar.eDockSide.Top; - this.contextMenuBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.components = new System.ComponentModel.Container(); + this.tabSearchTypes = new DevComponents.DotNetBar.TabControl(); + this.tabControlPanel4 = new DevComponents.DotNetBar.TabControlPanel(); + this.gpSrchText = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.panel1 = new System.Windows.Forms.Panel(); + this.cbxTextSearchText = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.label1 = new System.Windows.Forms.Label(); + this.panel3 = new System.Windows.Forms.Panel(); + this.cbxBooleanTxtSrch = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.cbxIncROTextSrch = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.cbxCaseSensitive = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.rbtnSrchTxt = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.cbxSrchTypeUsage = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.tabStepTypeSearch = new DevComponents.DotNetBar.TabItem(this.components); + this.tabControlPanel2 = new DevComponents.DotNetBar.TabControlPanel(); + this.gpFindROs = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.cbxFndUnLnkROVals = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.cmboTreeROs = new DevComponents.DotNetBar.Controls.ComboTree(); + this.tabROSearch = new DevComponents.DotNetBar.TabItem(this.components); + this.tabControlPanel3 = new DevComponents.DotNetBar.TabControlPanel(); + this.gpSrchAnnoText = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.panel4 = new System.Windows.Forms.Panel(); + this.cbxBooleanAnoTxtSrch = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.cbxCaseSensitiveAnnoText = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.cbxTextSearchAnnotation = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.label2 = new System.Windows.Forms.Label(); + this.cbxAnnoTypes = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.tabAnnotationSearch = new DevComponents.DotNetBar.TabItem(this.components); + this.contextMenuBar1 = new DevComponents.DotNetBar.ContextMenuBar(); + this.btnCMIFindText = new DevComponents.DotNetBar.ButtonItem(); + this.btnCMEdit = new DevComponents.DotNetBar.ButtonItem(); + this.cmFndTxtCut = new DevComponents.DotNetBar.ButtonItem(); + this.cmFndTxtCopy = new DevComponents.DotNetBar.ButtonItem(); + this.cmFndTxtPaste = new DevComponents.DotNetBar.ButtonItem(); + this.btnCMInsert = new DevComponents.DotNetBar.ButtonItem(); + this.cmFndTxtInsHardSp = new DevComponents.DotNetBar.ButtonItem(); + this.cmFndTxtInsSymbol = new DevComponents.DotNetBar.ButtonItem(); + this.galSymbols = new DevComponents.DotNetBar.GalleryContainer(); + this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem2 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem3 = new DevComponents.DotNetBar.ButtonItem(); + this.buttonItem4 = new DevComponents.DotNetBar.ButtonItem(); + this.btnBooleanItems = new DevComponents.DotNetBar.ButtonItem(); + this.btnAND = new DevComponents.DotNetBar.ButtonItem(); + this.btnOR = new DevComponents.DotNetBar.ButtonItem(); + this.btnNOT = new DevComponents.DotNetBar.ButtonItem(); + this.advTreeProcSets = new DevComponents.AdvTree.AdvTree(); + this.elementStyle1 = new DevComponents.DotNetBar.ElementStyle(); + this.node1 = new DevComponents.AdvTree.Node(); + this.nodeConnector1 = new DevComponents.AdvTree.NodeConnector(); + this.advTreeStepTypes = new DevComponents.AdvTree.AdvTree(); + this.elementStyle2 = new DevComponents.DotNetBar.ElementStyle(); + this.node2 = new DevComponents.AdvTree.Node(); + this.nodeConnector2 = new DevComponents.AdvTree.NodeConnector(); + this.grpPanSearchResults = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.listViewEx1 = new DevComponents.DotNetBar.Controls.ListViewEx(); + this.lbSrchResults = new System.Windows.Forms.ListBox(); + this.panSearchButtons = new DevComponents.DotNetBar.PanelEx(); + this.btnClearSearchResults = new DevComponents.DotNetBar.ButtonX(); + this.btnCopySearchResults = new DevComponents.DotNetBar.ButtonX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.cmbResultsStyle = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.comboItem1 = new DevComponents.Editors.ComboItem(); + this.comboItem2 = new DevComponents.Editors.ComboItem(); + this.comboItem3 = new DevComponents.Editors.ComboItem(); + this.comboItem4 = new DevComponents.Editors.ComboItem(); + this.cbSorted = new DevComponents.DotNetBar.Controls.CheckBoxX(); + this.btnSearch = new DevComponents.DotNetBar.ButtonX(); + this.btnPrnSrchRslts = new DevComponents.DotNetBar.ButtonX(); + this.xpSetToSearch = new DevComponents.DotNetBar.ExpandablePanel(); + this.xpStepTypes = new DevComponents.DotNetBar.ExpandablePanel(); + this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); + this.superTooltip1 = new DevComponents.DotNetBar.SuperTooltip(); + ((System.ComponentModel.ISupportInitialize)(this.tabSearchTypes)).BeginInit(); + this.tabSearchTypes.SuspendLayout(); + this.tabControlPanel4.SuspendLayout(); + this.gpSrchText.SuspendLayout(); + this.panel1.SuspendLayout(); + this.panel3.SuspendLayout(); + this.tabControlPanel2.SuspendLayout(); + this.gpFindROs.SuspendLayout(); + this.tabControlPanel3.SuspendLayout(); + this.gpSrchAnnoText.SuspendLayout(); + this.panel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.contextMenuBar1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.advTreeProcSets)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.advTreeStepTypes)).BeginInit(); + this.grpPanSearchResults.SuspendLayout(); + this.panSearchButtons.SuspendLayout(); + this.xpSetToSearch.SuspendLayout(); + this.xpStepTypes.SuspendLayout(); + this.SuspendLayout(); + // + // tabSearchTypes + // + this.tabSearchTypes.CanReorderTabs = false; + this.tabSearchTypes.CloseButtonOnTabsAlwaysDisplayed = false; + this.tabSearchTypes.CloseButtonPosition = DevComponents.DotNetBar.eTabCloseButtonPosition.Right; + this.tabSearchTypes.Controls.Add(this.tabControlPanel4); + this.tabSearchTypes.Controls.Add(this.tabControlPanel2); + this.tabSearchTypes.Controls.Add(this.tabControlPanel3); + this.tabSearchTypes.Controls.Add(this.contextMenuBar1); + this.tabSearchTypes.Dock = System.Windows.Forms.DockStyle.Top; + this.tabSearchTypes.Location = new System.Drawing.Point(0, 0); + this.tabSearchTypes.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.tabSearchTypes.Name = "tabSearchTypes"; + this.tabSearchTypes.RightToLeft = System.Windows.Forms.RightToLeft.No; + this.tabSearchTypes.SelectedTabFont = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.tabSearchTypes.SelectedTabIndex = 0; + this.tabSearchTypes.ShowFocusRectangle = false; + this.tabSearchTypes.Size = new System.Drawing.Size(369, 138); + this.tabSearchTypes.Style = DevComponents.DotNetBar.eTabStripStyle.Office2007Document; + this.tabSearchTypes.TabIndex = 0; + this.tabSearchTypes.TabLayoutType = DevComponents.DotNetBar.eTabLayoutType.FixedWithNavigationBox; + this.tabSearchTypes.Tabs.Add(this.tabStepTypeSearch); + this.tabSearchTypes.Tabs.Add(this.tabAnnotationSearch); + this.tabSearchTypes.Tabs.Add(this.tabROSearch); + this.tabSearchTypes.Text = "tabControl1"; + this.tabSearchTypes.ThemeAware = true; + // + // tabControlPanel4 + // + this.tabControlPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.tabControlPanel4.Controls.Add(this.gpSrchText); + this.tabControlPanel4.Controls.Add(this.rbtnSrchTxt); + this.tabControlPanel4.Controls.Add(this.cbxSrchTypeUsage); + this.tabControlPanel4.Dock = System.Windows.Forms.DockStyle.Fill; + this.tabControlPanel4.Location = new System.Drawing.Point(0, 24); + this.tabControlPanel4.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.tabControlPanel4.Name = "tabControlPanel4"; + this.tabControlPanel4.Padding = new System.Windows.Forms.Padding(1); + this.tabControlPanel4.Size = new System.Drawing.Size(369, 114); + this.tabControlPanel4.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254))))); + this.tabControlPanel4.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227))))); + this.tabControlPanel4.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.tabControlPanel4.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199))))); + this.tabControlPanel4.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right) + | DevComponents.DotNetBar.eBorderSide.Bottom))); + this.tabControlPanel4.Style.GradientAngle = 90; + this.superTooltip1.SetSuperTooltip(this.tabControlPanel4, new DevComponents.DotNetBar.SuperTooltipInfo("Text Search", "", "Enter the text you want to search, or select from the drop down list.\r\n\r\nLeave bl" + + "ank to search for the usage of the selected types in \"Filter By Types\".", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(175, 140))); + this.tabControlPanel4.TabIndex = 4; + this.tabControlPanel4.TabItem = this.tabStepTypeSearch; + // + // gpSrchText + // + this.gpSrchText.CanvasColor = System.Drawing.SystemColors.Control; + this.gpSrchText.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.gpSrchText.Controls.Add(this.panel1); + this.gpSrchText.Controls.Add(this.panel3); + this.gpSrchText.Dock = System.Windows.Forms.DockStyle.Fill; + this.gpSrchText.Location = new System.Drawing.Point(30, 1); + this.gpSrchText.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.gpSrchText.Name = "gpSrchText"; + this.gpSrchText.Size = new System.Drawing.Size(338, 90); + // + // + // + this.gpSrchText.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.gpSrchText.Style.BackColorGradientAngle = 90; + this.gpSrchText.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.gpSrchText.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.gpSrchText.Style.BorderBottomWidth = 1; + this.gpSrchText.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.gpSrchText.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.gpSrchText.Style.BorderLeftWidth = 1; + this.gpSrchText.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.gpSrchText.Style.BorderRightWidth = 1; + this.gpSrchText.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.gpSrchText.Style.BorderTopWidth = 1; + this.gpSrchText.Style.Class = ""; + this.gpSrchText.Style.CornerDiameter = 4; + this.gpSrchText.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.gpSrchText.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.gpSrchText.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.gpSrchText.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.gpSrchText.StyleMouseDown.Class = ""; + this.gpSrchText.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.gpSrchText.StyleMouseOver.Class = ""; + this.gpSrchText.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.gpSrchText.TabIndex = 5; + this.gpSrchText.EnabledChanged += new System.EventHandler(this.gpSrchText_EnabledChanged); + // + // panel1 + // + this.panel1.BackColor = System.Drawing.Color.Transparent; + this.panel1.Controls.Add(this.cbxTextSearchText); + this.panel1.Controls.Add(this.label1); + this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.panel1.Location = new System.Drawing.Point(0, 3); + this.panel1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(332, 28); + this.panel1.TabIndex = 5; + // + // cbxTextSearchText + // + this.contextMenuBar1.SetContextMenuEx(this.cbxTextSearchText, this.btnCMIFindText); + this.cbxTextSearchText.DisplayMember = "Text"; + this.cbxTextSearchText.Dock = System.Windows.Forms.DockStyle.Fill; + this.cbxTextSearchText.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.cbxTextSearchText.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cbxTextSearchText.FormattingEnabled = true; + this.cbxTextSearchText.ItemHeight = 18; + this.cbxTextSearchText.Location = new System.Drawing.Point(40, 0); + this.cbxTextSearchText.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.cbxTextSearchText.Name = "cbxTextSearchText"; + this.cbxTextSearchText.Size = new System.Drawing.Size(292, 24); + this.superTooltip1.SetSuperTooltip(this.cbxTextSearchText, new DevComponents.DotNetBar.SuperTooltipInfo("Search for Text", "", "Enter the text you want to search, or select from the drop down list.\r\n", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(175, 80))); + this.cbxTextSearchText.TabIndex = 2; + this.cbxTextSearchText.WatermarkFont = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cbxTextSearchText.WatermarkText = "Enter Search Text Here"; + this.cbxTextSearchText.Leave += new System.EventHandler(this.cbxTextSearchText_Leave); + this.cbxTextSearchText.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ProcessEnterKey); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.BackColor = System.Drawing.Color.Transparent; + this.label1.Dock = System.Windows.Forms.DockStyle.Left; + this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.Location = new System.Drawing.Point(0, 0); + this.label1.Name = "label1"; + this.label1.Padding = new System.Windows.Forms.Padding(0, 6, 0, 0); + this.label1.Size = new System.Drawing.Size(40, 24); + this.label1.TabIndex = 4; + this.label1.Text = "Find:"; + // + // panel3 + // + this.panel3.BackColor = System.Drawing.Color.Transparent; + this.panel3.Controls.Add(this.cbxBooleanTxtSrch); + this.panel3.Controls.Add(this.cbxIncROTextSrch); + this.panel3.Controls.Add(this.cbxCaseSensitive); + this.panel3.Dock = System.Windows.Forms.DockStyle.Bottom; + this.panel3.Location = new System.Drawing.Point(0, 31); + this.panel3.Margin = new System.Windows.Forms.Padding(4); + this.panel3.Name = "panel3"; + this.panel3.Size = new System.Drawing.Size(332, 53); + this.panel3.TabIndex = 6; + // + // cbxBooleanTxtSrch + // + // + // + // + this.cbxBooleanTxtSrch.BackgroundStyle.Class = ""; + this.cbxBooleanTxtSrch.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.cbxBooleanTxtSrch.Location = new System.Drawing.Point(11, 28); + this.cbxBooleanTxtSrch.Margin = new System.Windows.Forms.Padding(4); + this.cbxBooleanTxtSrch.Name = "cbxBooleanTxtSrch"; + this.cbxBooleanTxtSrch.Size = new System.Drawing.Size(148, 21); + this.cbxBooleanTxtSrch.TabIndex = 6; + this.cbxBooleanTxtSrch.Text = "Boolean Search"; + this.cbxBooleanTxtSrch.CheckedChanged += new System.EventHandler(this.cbxBooleanTxtSrch_CheckedChanged); + // + // cbxIncROTextSrch + // + // + // + // + this.cbxIncROTextSrch.BackgroundStyle.Class = ""; + this.cbxIncROTextSrch.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.cbxIncROTextSrch.Checked = true; + this.cbxIncROTextSrch.CheckState = System.Windows.Forms.CheckState.Checked; + this.cbxIncROTextSrch.CheckValue = "Y"; + this.cbxIncROTextSrch.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cbxIncROTextSrch.Location = new System.Drawing.Point(151, 1); + this.cbxIncROTextSrch.Margin = new System.Windows.Forms.Padding(4); + this.cbxIncROTextSrch.Name = "cbxIncROTextSrch"; + this.cbxIncROTextSrch.Size = new System.Drawing.Size(149, 25); + this.cbxIncROTextSrch.TabIndex = 5; + this.cbxIncROTextSrch.Text = "Search RO Text"; + // + // cbxCaseSensitive + // + this.cbxCaseSensitive.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.cbxCaseSensitive.BackgroundStyle.Class = ""; + this.cbxCaseSensitive.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.cbxCaseSensitive.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cbxCaseSensitive.Location = new System.Drawing.Point(11, 1); + this.cbxCaseSensitive.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.cbxCaseSensitive.Name = "cbxCaseSensitive"; + this.cbxCaseSensitive.Size = new System.Drawing.Size(139, 25); + this.superTooltip1.SetSuperTooltip(this.cbxCaseSensitive, new DevComponents.DotNetBar.SuperTooltipInfo("Case Sensitive", "", "When this box is checked, Search will find only exact mactches of the search text" + + " you had entered.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(180, 100))); + this.cbxCaseSensitive.TabIndex = 3; + this.cbxCaseSensitive.Text = "Case Sensitive"; + // + // rbtnSrchTxt + // + this.rbtnSrchTxt.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.rbtnSrchTxt.BackgroundStyle.Class = ""; + this.rbtnSrchTxt.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.rbtnSrchTxt.CheckBoxStyle = DevComponents.DotNetBar.eCheckBoxStyle.RadioButton; + this.rbtnSrchTxt.Checked = true; + this.rbtnSrchTxt.CheckState = System.Windows.Forms.CheckState.Checked; + this.rbtnSrchTxt.CheckValue = "Y"; + this.rbtnSrchTxt.Dock = System.Windows.Forms.DockStyle.Left; + this.rbtnSrchTxt.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.rbtnSrchTxt.Location = new System.Drawing.Point(1, 1); + this.rbtnSrchTxt.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.rbtnSrchTxt.Name = "rbtnSrchTxt"; + this.rbtnSrchTxt.Size = new System.Drawing.Size(29, 90); + this.rbtnSrchTxt.TabIndex = 6; + this.rbtnSrchTxt.CheckedChanged += new System.EventHandler(this.rbtnSrchTxt_CheckedChanged); + // + // cbxSrchTypeUsage + // + this.cbxSrchTypeUsage.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.cbxSrchTypeUsage.BackgroundStyle.Class = ""; + this.cbxSrchTypeUsage.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.cbxSrchTypeUsage.CheckBoxStyle = DevComponents.DotNetBar.eCheckBoxStyle.RadioButton; + this.cbxSrchTypeUsage.Dock = System.Windows.Forms.DockStyle.Bottom; + this.cbxSrchTypeUsage.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cbxSrchTypeUsage.Location = new System.Drawing.Point(1, 91); + this.cbxSrchTypeUsage.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.cbxSrchTypeUsage.Name = "cbxSrchTypeUsage"; + this.cbxSrchTypeUsage.Size = new System.Drawing.Size(367, 22); + this.cbxSrchTypeUsage.TabIndex = 4; + this.cbxSrchTypeUsage.Text = " Find Selected Types"; + this.cbxSrchTypeUsage.CheckedChanged += new System.EventHandler(this.cbxSrchTypeUsage_CheckedChanged); + // + // tabStepTypeSearch + // + this.tabStepTypeSearch.AttachedControl = this.tabControlPanel4; + this.tabStepTypeSearch.Name = "tabStepTypeSearch"; + this.superTooltip1.SetSuperTooltip(this.tabStepTypeSearch, new DevComponents.DotNetBar.SuperTooltipInfo("Search for Text", "", "Allows you to search for entered text in selected procedure sets and within selec" + + "ted procedure text types.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(170, 110))); + this.tabStepTypeSearch.Text = "Text"; + this.tabStepTypeSearch.Click += new System.EventHandler(this.tabStepTypeSearch_Click); + // + // tabControlPanel2 + // + this.tabControlPanel2.Controls.Add(this.gpFindROs); + this.tabControlPanel2.Controls.Add(this.cmboTreeROs); + this.tabControlPanel2.Dock = System.Windows.Forms.DockStyle.Fill; + this.tabControlPanel2.Location = new System.Drawing.Point(0, 24); + this.tabControlPanel2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.tabControlPanel2.Name = "tabControlPanel2"; + this.tabControlPanel2.Padding = new System.Windows.Forms.Padding(1); + this.tabControlPanel2.Size = new System.Drawing.Size(369, 114); + this.tabControlPanel2.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254))))); + this.tabControlPanel2.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227))))); + this.tabControlPanel2.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.tabControlPanel2.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199))))); + this.tabControlPanel2.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right) + | DevComponents.DotNetBar.eBorderSide.Bottom))); + this.tabControlPanel2.Style.GradientAngle = 90; + this.tabControlPanel2.TabIndex = 2; + this.tabControlPanel2.TabItem = this.tabROSearch; + // + // gpFindROs + // + this.gpFindROs.CanvasColor = System.Drawing.SystemColors.Control; + this.gpFindROs.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.gpFindROs.Controls.Add(this.cbxFndUnLnkROVals); + this.gpFindROs.Dock = System.Windows.Forms.DockStyle.Fill; + this.gpFindROs.Location = new System.Drawing.Point(1, 26); + this.gpFindROs.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.gpFindROs.Name = "gpFindROs"; + this.gpFindROs.Size = new System.Drawing.Size(367, 87); + // + // + // + this.gpFindROs.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.gpFindROs.Style.BackColorGradientAngle = 90; + this.gpFindROs.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.gpFindROs.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.gpFindROs.Style.BorderBottomWidth = 1; + this.gpFindROs.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.gpFindROs.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.gpFindROs.Style.BorderLeftWidth = 1; + this.gpFindROs.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.gpFindROs.Style.BorderRightWidth = 1; + this.gpFindROs.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.gpFindROs.Style.BorderTopWidth = 1; + this.gpFindROs.Style.Class = ""; + this.gpFindROs.Style.CornerDiameter = 4; + this.gpFindROs.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.gpFindROs.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.gpFindROs.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.gpFindROs.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.gpFindROs.StyleMouseDown.Class = ""; + this.gpFindROs.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.gpFindROs.StyleMouseOver.Class = ""; + this.gpFindROs.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.gpFindROs.TabIndex = 3; + this.gpFindROs.EnabledChanged += new System.EventHandler(this.gpFindROs_EnabledChanged); + // + // cbxFndUnLnkROVals + // + this.cbxFndUnLnkROVals.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.cbxFndUnLnkROVals.BackgroundStyle.Class = ""; + this.cbxFndUnLnkROVals.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.cbxFndUnLnkROVals.Enabled = false; + this.cbxFndUnLnkROVals.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cbxFndUnLnkROVals.Location = new System.Drawing.Point(0, 4); + this.cbxFndUnLnkROVals.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.cbxFndUnLnkROVals.Name = "cbxFndUnLnkROVals"; + this.cbxFndUnLnkROVals.Size = new System.Drawing.Size(188, 23); + this.cbxFndUnLnkROVals.TabIndex = 2; + this.cbxFndUnLnkROVals.Text = "Find Unlinked Values"; + // + // cmboTreeROs + // + this.cmboTreeROs.BackColor = System.Drawing.SystemColors.Window; + // + // + // + this.cmboTreeROs.BackgroundStyle.Class = "TextBoxBorder"; + this.cmboTreeROs.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.cmboTreeROs.ButtonDropDown.Visible = true; + this.cmboTreeROs.Dock = System.Windows.Forms.DockStyle.Top; + this.cmboTreeROs.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cmboTreeROs.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F"; + this.cmboTreeROs.Location = new System.Drawing.Point(1, 1); + this.cmboTreeROs.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.cmboTreeROs.Name = "cmboTreeROs"; + this.cmboTreeROs.RightToLeft = System.Windows.Forms.RightToLeft.No; + this.cmboTreeROs.Size = new System.Drawing.Size(367, 25); + this.superTooltip1.SetSuperTooltip(this.cmboTreeROs, new DevComponents.DotNetBar.SuperTooltipInfo("Select the RO to Search", "", "Select the Referenced Object to search for.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray)); + this.cmboTreeROs.TabIndex = 1; + this.cmboTreeROs.ThemeAware = true; + this.cmboTreeROs.WatermarkText = "Select an RO to seach"; + this.cmboTreeROs.SelectedIndexChanged += new System.EventHandler(this.cmboTreeROs_SelectedIndexChanged); + // + // tabROSearch + // + this.tabROSearch.AttachedControl = this.tabControlPanel2; + this.tabROSearch.Name = "tabROSearch"; + this.tabROSearch.Text = "Referenced Objects"; + // + // tabControlPanel3 + // + this.tabControlPanel3.Controls.Add(this.gpSrchAnnoText); + this.tabControlPanel3.Controls.Add(this.cbxAnnoTypes); + this.tabControlPanel3.Dock = System.Windows.Forms.DockStyle.Fill; + this.tabControlPanel3.Location = new System.Drawing.Point(0, 24); + this.tabControlPanel3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.tabControlPanel3.Name = "tabControlPanel3"; + this.tabControlPanel3.Padding = new System.Windows.Forms.Padding(1); + this.tabControlPanel3.Size = new System.Drawing.Size(369, 114); + this.tabControlPanel3.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254))))); + this.tabControlPanel3.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227))))); + this.tabControlPanel3.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.tabControlPanel3.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199))))); + this.tabControlPanel3.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right) + | DevComponents.DotNetBar.eBorderSide.Bottom))); + this.tabControlPanel3.Style.GradientAngle = 90; + this.tabControlPanel3.TabIndex = 5; + this.tabControlPanel3.TabItem = this.tabAnnotationSearch; + // + // gpSrchAnnoText + // + this.gpSrchAnnoText.AutoSize = true; + this.gpSrchAnnoText.CanvasColor = System.Drawing.SystemColors.Control; + this.gpSrchAnnoText.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.gpSrchAnnoText.Controls.Add(this.panel4); + this.gpSrchAnnoText.Dock = System.Windows.Forms.DockStyle.Fill; + this.gpSrchAnnoText.Enabled = false; + this.gpSrchAnnoText.Location = new System.Drawing.Point(1, 25); + this.gpSrchAnnoText.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.gpSrchAnnoText.Name = "gpSrchAnnoText"; + this.gpSrchAnnoText.Size = new System.Drawing.Size(367, 88); + // + // + // + this.gpSrchAnnoText.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.gpSrchAnnoText.Style.BackColorGradientAngle = 90; + this.gpSrchAnnoText.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.gpSrchAnnoText.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.gpSrchAnnoText.Style.BorderBottomWidth = 1; + this.gpSrchAnnoText.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.gpSrchAnnoText.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.gpSrchAnnoText.Style.BorderLeftWidth = 1; + this.gpSrchAnnoText.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.gpSrchAnnoText.Style.BorderRightWidth = 1; + this.gpSrchAnnoText.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.gpSrchAnnoText.Style.BorderTopWidth = 1; + this.gpSrchAnnoText.Style.Class = ""; + this.gpSrchAnnoText.Style.CornerDiameter = 4; + this.gpSrchAnnoText.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.gpSrchAnnoText.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.gpSrchAnnoText.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.gpSrchAnnoText.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.gpSrchAnnoText.StyleMouseDown.Class = ""; + this.gpSrchAnnoText.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.gpSrchAnnoText.StyleMouseOver.Class = ""; + this.gpSrchAnnoText.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.gpSrchAnnoText.TabIndex = 6; + this.gpSrchAnnoText.EnabledChanged += new System.EventHandler(this.gpSrchAnnoText_EnabledChanged); + // + // panel4 + // + this.panel4.BackColor = System.Drawing.Color.Transparent; + this.panel4.Controls.Add(this.cbxBooleanAnoTxtSrch); + this.panel4.Controls.Add(this.cbxCaseSensitiveAnnoText); + this.panel4.Controls.Add(this.cbxTextSearchAnnotation); + this.panel4.Controls.Add(this.label2); + this.panel4.Dock = System.Windows.Forms.DockStyle.Top; + this.panel4.Location = new System.Drawing.Point(0, 0); + this.panel4.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(361, 76); + this.panel4.TabIndex = 9; + // + // cbxBooleanAnoTxtSrch + // + // + // + // + this.cbxBooleanAnoTxtSrch.BackgroundStyle.Class = ""; + this.cbxBooleanAnoTxtSrch.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.cbxBooleanAnoTxtSrch.Location = new System.Drawing.Point(16, 50); + this.cbxBooleanAnoTxtSrch.Margin = new System.Windows.Forms.Padding(4); + this.cbxBooleanAnoTxtSrch.Name = "cbxBooleanAnoTxtSrch"; + this.cbxBooleanAnoTxtSrch.Size = new System.Drawing.Size(148, 21); + this.cbxBooleanAnoTxtSrch.TabIndex = 8; + this.cbxBooleanAnoTxtSrch.Text = "Boolean Search"; + this.cbxBooleanAnoTxtSrch.CheckedChanged += new System.EventHandler(this.cbxBooleanAnoTxtSrch_CheckedChanged); + // + // cbxCaseSensitiveAnnoText + // + this.cbxCaseSensitiveAnnoText.AutoSize = true; + this.cbxCaseSensitiveAnnoText.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.cbxCaseSensitiveAnnoText.BackgroundStyle.Class = ""; + this.cbxCaseSensitiveAnnoText.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.cbxCaseSensitiveAnnoText.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cbxCaseSensitiveAnnoText.Location = new System.Drawing.Point(16, 31); + this.cbxCaseSensitiveAnnoText.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.cbxCaseSensitiveAnnoText.Name = "cbxCaseSensitiveAnnoText"; + this.cbxCaseSensitiveAnnoText.RightToLeft = System.Windows.Forms.RightToLeft.No; + this.cbxCaseSensitiveAnnoText.Size = new System.Drawing.Size(123, 19); + this.superTooltip1.SetSuperTooltip(this.cbxCaseSensitiveAnnoText, new DevComponents.DotNetBar.SuperTooltipInfo("Case Sensitive", "", "When this box is checked, Search will find only exact mactches of the search text" + + " you had entered.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(180, 100))); + this.cbxCaseSensitiveAnnoText.TabIndex = 5; + this.cbxCaseSensitiveAnnoText.Text = "Case Sensitive"; + // + // cbxTextSearchAnnotation + // + this.contextMenuBar1.SetContextMenuEx(this.cbxTextSearchAnnotation, this.btnCMIFindText); + this.cbxTextSearchAnnotation.DisplayMember = "Text"; + this.cbxTextSearchAnnotation.Dock = System.Windows.Forms.DockStyle.Fill; + this.cbxTextSearchAnnotation.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.cbxTextSearchAnnotation.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cbxTextSearchAnnotation.FormattingEnabled = true; + this.cbxTextSearchAnnotation.ItemHeight = 18; + this.cbxTextSearchAnnotation.Location = new System.Drawing.Point(40, 0); + this.cbxTextSearchAnnotation.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.cbxTextSearchAnnotation.Name = "cbxTextSearchAnnotation"; + this.cbxTextSearchAnnotation.RightToLeft = System.Windows.Forms.RightToLeft.No; + this.cbxTextSearchAnnotation.Size = new System.Drawing.Size(321, 24); + this.superTooltip1.SetSuperTooltip(this.cbxTextSearchAnnotation, new DevComponents.DotNetBar.SuperTooltipInfo("Search For Annotaion Text", "", "Enter Annotation text to search for or select from the dropdown list.\r\n\r\nLeave Bl" + + "ank to search for occurences of the selected annotation.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(180, 140))); + this.cbxTextSearchAnnotation.TabIndex = 6; + this.cbxTextSearchAnnotation.WatermarkFont = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cbxTextSearchAnnotation.WatermarkText = "Enter Search Text Here"; + this.cbxTextSearchAnnotation.Leave += new System.EventHandler(this.cbxTextSearchAnnotation_Leave); + this.cbxTextSearchAnnotation.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ProcessEnterKey); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.BackColor = System.Drawing.Color.Transparent; + this.label2.Dock = System.Windows.Forms.DockStyle.Left; + this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label2.Location = new System.Drawing.Point(0, 0); + this.label2.Name = "label2"; + this.label2.Padding = new System.Windows.Forms.Padding(0, 6, 0, 0); + this.label2.Size = new System.Drawing.Size(40, 24); + this.label2.TabIndex = 7; + this.label2.Text = "Find:"; + // + // cbxAnnoTypes + // + this.cbxAnnoTypes.DisplayMember = "Text"; + this.cbxAnnoTypes.Dock = System.Windows.Forms.DockStyle.Top; + this.cbxAnnoTypes.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.cbxAnnoTypes.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cbxAnnoTypes.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cbxAnnoTypes.FormattingEnabled = true; + this.cbxAnnoTypes.ItemHeight = 18; + this.cbxAnnoTypes.Location = new System.Drawing.Point(1, 1); + this.cbxAnnoTypes.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.cbxAnnoTypes.Name = "cbxAnnoTypes"; + this.cbxAnnoTypes.RightToLeft = System.Windows.Forms.RightToLeft.No; + this.cbxAnnoTypes.Size = new System.Drawing.Size(367, 24); + this.superTooltip1.SetSuperTooltip(this.cbxAnnoTypes, new DevComponents.DotNetBar.SuperTooltipInfo("Select Annotation Type", "", "Select the type of annotation to search for.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(192, 61))); + this.cbxAnnoTypes.TabIndex = 0; + this.cbxAnnoTypes.WatermarkText = "Select AnnotationType to Search"; + // + // tabAnnotationSearch + // + this.tabAnnotationSearch.AttachedControl = this.tabControlPanel3; + this.tabAnnotationSearch.Name = "tabAnnotationSearch"; + this.tabAnnotationSearch.Text = "Annotations"; + this.tabAnnotationSearch.Click += new System.EventHandler(this.tabAnnotationSearch_Click); + // + // contextMenuBar1 + // + this.contextMenuBar1.DockSide = DevComponents.DotNetBar.eDockSide.Top; + this.contextMenuBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.btnCMIFindText}); - this.contextMenuBar1.Location = new System.Drawing.Point(225, -3); - this.contextMenuBar1.Margin = new System.Windows.Forms.Padding(2); - this.contextMenuBar1.Name = "contextMenuBar1"; - this.contextMenuBar1.Size = new System.Drawing.Size(56, 25); - this.contextMenuBar1.Stretch = true; - this.contextMenuBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.Office2003; - this.contextMenuBar1.TabIndex = 6; - this.contextMenuBar1.TabStop = false; - this.contextMenuBar1.Text = "contextMenuBar1"; - // - // btnCMIFindText - // - this.btnCMIFindText.AutoExpandOnClick = true; - this.btnCMIFindText.Name = "btnCMIFindText"; - this.btnCMIFindText.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.contextMenuBar1.Location = new System.Drawing.Point(300, -4); + this.contextMenuBar1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.contextMenuBar1.Name = "contextMenuBar1"; + this.contextMenuBar1.Size = new System.Drawing.Size(75, 29); + this.contextMenuBar1.Stretch = true; + this.contextMenuBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.Office2003; + this.contextMenuBar1.TabIndex = 6; + this.contextMenuBar1.TabStop = false; + this.contextMenuBar1.Text = "contextMenuBar1"; + // + // btnCMIFindText + // + this.btnCMIFindText.AutoExpandOnClick = true; + this.btnCMIFindText.Name = "btnCMIFindText"; + this.btnCMIFindText.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.btnCMEdit, this.btnCMInsert}); - this.btnCMIFindText.Text = "cmFindText"; - this.btnCMIFindText.PopupOpen += new DevComponents.DotNetBar.DotNetBarManager.PopupOpenEventHandler(this.btnCMIFindText_PopupOpen); - // - // btnCMEdit - // - this.btnCMEdit.Name = "btnCMEdit"; - this.btnCMEdit.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.btnCMIFindText.Text = "cmFindText"; + this.btnCMIFindText.PopupOpen += new DevComponents.DotNetBar.DotNetBarManager.PopupOpenEventHandler(this.btnCMIFindText_PopupOpen); + // + // btnCMEdit + // + this.btnCMEdit.Name = "btnCMEdit"; + this.btnCMEdit.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.cmFndTxtCut, this.cmFndTxtCopy, this.cmFndTxtPaste}); - this.btnCMEdit.Text = "Edit"; - // - // cmFndTxtCut - // - this.cmFndTxtCut.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; - this.cmFndTxtCut.Image = global::Volian.Controls.Library.Properties.Resources.Cut_Image; - this.cmFndTxtCut.Name = "cmFndTxtCut"; - this.cmFndTxtCut.Stretch = true; - this.cmFndTxtCut.Text = "Cut"; - this.cmFndTxtCut.Click += new System.EventHandler(this.cmFndTxtCut_Click); - // - // cmFndTxtCopy - // - this.cmFndTxtCopy.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; - this.cmFndTxtCopy.Image = global::Volian.Controls.Library.Properties.Resources.Copy_Image; - this.cmFndTxtCopy.Name = "cmFndTxtCopy"; - this.cmFndTxtCopy.Text = "Copy"; - this.cmFndTxtCopy.Click += new System.EventHandler(this.cmFndTxtCopy_Click); - // - // cmFndTxtPaste - // - this.cmFndTxtPaste.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; - this.cmFndTxtPaste.Image = global::Volian.Controls.Library.Properties.Resources.PasteSmall_Image; - this.cmFndTxtPaste.Name = "cmFndTxtPaste"; - this.cmFndTxtPaste.Text = "Paste"; - this.cmFndTxtPaste.Click += new System.EventHandler(this.cmFndTxtPaste_Click); - // - // btnCMInsert - // - this.btnCMInsert.Name = "btnCMInsert"; - this.btnCMInsert.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.btnCMEdit.Text = "Edit"; + // + // cmFndTxtCut + // + this.cmFndTxtCut.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; + this.cmFndTxtCut.Image = global::Volian.Controls.Library.Properties.Resources.Cut_Image; + this.cmFndTxtCut.Name = "cmFndTxtCut"; + this.cmFndTxtCut.Stretch = true; + this.cmFndTxtCut.Text = "Cut"; + this.cmFndTxtCut.Click += new System.EventHandler(this.cmFndTxtCut_Click); + // + // cmFndTxtCopy + // + this.cmFndTxtCopy.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; + this.cmFndTxtCopy.Image = global::Volian.Controls.Library.Properties.Resources.Copy_Image; + this.cmFndTxtCopy.Name = "cmFndTxtCopy"; + this.cmFndTxtCopy.Text = "Copy"; + this.cmFndTxtCopy.Click += new System.EventHandler(this.cmFndTxtCopy_Click); + // + // cmFndTxtPaste + // + this.cmFndTxtPaste.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; + this.cmFndTxtPaste.Image = global::Volian.Controls.Library.Properties.Resources.PasteSmall_Image; + this.cmFndTxtPaste.Name = "cmFndTxtPaste"; + this.cmFndTxtPaste.Text = "Paste"; + this.cmFndTxtPaste.Click += new System.EventHandler(this.cmFndTxtPaste_Click); + // + // btnCMInsert + // + this.btnCMInsert.Name = "btnCMInsert"; + this.btnCMInsert.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.cmFndTxtInsHardSp, this.cmFndTxtInsSymbol, this.buttonItem1, this.btnBooleanItems}); - this.btnCMInsert.Text = "Insert"; - // - // cmFndTxtInsHardSp - // - this.cmFndTxtInsHardSp.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; - this.cmFndTxtInsHardSp.Image = global::Volian.Controls.Library.Properties.Resources.HardSpace_Image; - this.cmFndTxtInsHardSp.Name = "cmFndTxtInsHardSp"; - this.cmFndTxtInsHardSp.Text = "Hard Space"; - this.cmFndTxtInsHardSp.Click += new System.EventHandler(this.cmFndTxtInsHardSp_Click); - // - // cmFndTxtInsSymbol - // - this.cmFndTxtInsSymbol.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; - this.cmFndTxtInsSymbol.Image = global::Volian.Controls.Library.Properties.Resources.Symbol_Image; - this.cmFndTxtInsSymbol.Name = "cmFndTxtInsSymbol"; - this.cmFndTxtInsSymbol.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.btnCMInsert.Text = "Insert"; + // + // cmFndTxtInsHardSp + // + this.cmFndTxtInsHardSp.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; + this.cmFndTxtInsHardSp.Image = global::Volian.Controls.Library.Properties.Resources.HardSpace_Image; + this.cmFndTxtInsHardSp.Name = "cmFndTxtInsHardSp"; + this.cmFndTxtInsHardSp.Text = "Hard Space"; + this.cmFndTxtInsHardSp.Click += new System.EventHandler(this.cmFndTxtInsHardSp_Click); + // + // cmFndTxtInsSymbol + // + this.cmFndTxtInsSymbol.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; + this.cmFndTxtInsSymbol.Image = global::Volian.Controls.Library.Properties.Resources.Symbol_Image; + this.cmFndTxtInsSymbol.Name = "cmFndTxtInsSymbol"; + this.cmFndTxtInsSymbol.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.galSymbols}); - this.cmFndTxtInsSymbol.Text = "Symbol"; - // - // galSymbols - // - // - // - // - this.galSymbols.BackgroundStyle.Class = ""; - this.galSymbols.EnableGalleryPopup = false; - this.galSymbols.MinimumSize = new System.Drawing.Size(150, 200); - this.galSymbols.Name = "galSymbols"; - this.galSymbols.Text = "galleryContainer1"; - // - // buttonItem1 - // - this.buttonItem1.Name = "buttonItem1"; - this.buttonItem1.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.cmFndTxtInsSymbol.Text = "Symbol"; + // + // galSymbols + // + // + // + // + this.galSymbols.BackgroundStyle.Class = ""; + this.galSymbols.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.galSymbols.EnableGalleryPopup = false; + this.galSymbols.MinimumSize = new System.Drawing.Size(150, 200); + this.galSymbols.Name = "galSymbols"; + this.galSymbols.Text = "galleryContainer1"; + // + // buttonItem1 + // + this.buttonItem1.Name = "buttonItem1"; + this.buttonItem1.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.buttonItem2, this.buttonItem3, this.buttonItem4}); - this.buttonItem1.Text = "Wild Cards"; - // - // buttonItem2 - // - this.buttonItem2.Name = "buttonItem2"; - this.buttonItem2.Text = "* - Anything"; - this.buttonItem2.Click += new System.EventHandler(this.buttonItem2_Click); - // - // buttonItem3 - // - this.buttonItem3.Name = "buttonItem3"; - this.buttonItem3.Text = "? - One Character"; - this.buttonItem3.Click += new System.EventHandler(this.buttonItem3_Click); - // - // buttonItem4 - // - this.buttonItem4.Name = "buttonItem4"; - this.buttonItem4.Text = "?* - One or More"; - this.buttonItem4.Click += new System.EventHandler(this.buttonItem4_Click); - // - // btnBooleanItems - // - this.btnBooleanItems.Name = "btnBooleanItems"; - this.btnBooleanItems.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.buttonItem1.Text = "Wild Cards"; + // + // buttonItem2 + // + this.buttonItem2.Name = "buttonItem2"; + this.buttonItem2.Text = "* - Anything"; + this.buttonItem2.Click += new System.EventHandler(this.buttonItem2_Click); + // + // buttonItem3 + // + this.buttonItem3.Name = "buttonItem3"; + this.buttonItem3.Text = "? - One Character"; + this.buttonItem3.Click += new System.EventHandler(this.buttonItem3_Click); + // + // buttonItem4 + // + this.buttonItem4.Name = "buttonItem4"; + this.buttonItem4.Text = "?* - One or More"; + this.buttonItem4.Click += new System.EventHandler(this.buttonItem4_Click); + // + // btnBooleanItems + // + this.btnBooleanItems.Name = "btnBooleanItems"; + this.btnBooleanItems.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.btnAND, this.btnOR, this.btnNOT}); - this.btnBooleanItems.Text = "Boolean"; - this.btnBooleanItems.Visible = false; - // - // btnAND - // - this.btnAND.Name = "btnAND"; - this.btnAND.Text = "AND"; - this.btnAND.Click += new System.EventHandler(this.btnAND_Click); - // - // btnOR - // - this.btnOR.Name = "btnOR"; - this.btnOR.Text = "OR"; - this.btnOR.Click += new System.EventHandler(this.btnOR_Click); - // - // btnNOT - // - this.btnNOT.Name = "btnNOT"; - this.btnNOT.Text = "NOT"; - this.btnNOT.Click += new System.EventHandler(this.btnNOT_Click); - // - // advTreeProcSets - // - this.advTreeProcSets.AccessibleRole = System.Windows.Forms.AccessibleRole.Outline; - this.advTreeProcSets.AllowDrop = true; - this.advTreeProcSets.BackColor = System.Drawing.SystemColors.Window; - // - // - // - this.advTreeProcSets.BackgroundStyle.Class = "TreeBorderKey"; - this.advTreeProcSets.CellStyleSelected = this.elementStyle1; - this.advTreeProcSets.Dock = System.Windows.Forms.DockStyle.Fill; - this.advTreeProcSets.DragDropEnabled = false; - this.advTreeProcSets.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F"; - this.advTreeProcSets.Location = new System.Drawing.Point(0, 21); - this.advTreeProcSets.Margin = new System.Windows.Forms.Padding(2); - this.advTreeProcSets.MultiSelect = true; - this.advTreeProcSets.MultiSelectRule = DevComponents.AdvTree.eMultiSelectRule.AnyNode; - this.advTreeProcSets.Name = "advTreeProcSets"; - this.advTreeProcSets.Nodes.AddRange(new DevComponents.AdvTree.Node[] { + this.btnBooleanItems.Text = "Boolean"; + this.btnBooleanItems.Visible = false; + // + // btnAND + // + this.btnAND.Name = "btnAND"; + this.btnAND.Text = "AND"; + this.btnAND.Click += new System.EventHandler(this.btnAND_Click); + // + // btnOR + // + this.btnOR.Name = "btnOR"; + this.btnOR.Text = "OR"; + this.btnOR.Click += new System.EventHandler(this.btnOR_Click); + // + // btnNOT + // + this.btnNOT.Name = "btnNOT"; + this.btnNOT.Text = "NOT"; + this.btnNOT.Click += new System.EventHandler(this.btnNOT_Click); + // + // advTreeProcSets + // + this.advTreeProcSets.AccessibleRole = System.Windows.Forms.AccessibleRole.Outline; + this.advTreeProcSets.AllowDrop = true; + this.advTreeProcSets.BackColor = System.Drawing.SystemColors.Window; + // + // + // + this.advTreeProcSets.BackgroundStyle.Class = "TreeBorderKey"; + this.advTreeProcSets.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.advTreeProcSets.CellStyleSelected = this.elementStyle1; + this.advTreeProcSets.Dock = System.Windows.Forms.DockStyle.Fill; + this.advTreeProcSets.DragDropEnabled = false; + this.advTreeProcSets.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F"; + this.advTreeProcSets.Location = new System.Drawing.Point(0, 26); + this.advTreeProcSets.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.advTreeProcSets.MultiSelect = true; + this.advTreeProcSets.MultiSelectRule = DevComponents.AdvTree.eMultiSelectRule.AnyNode; + this.advTreeProcSets.Name = "advTreeProcSets"; + this.advTreeProcSets.Nodes.AddRange(new DevComponents.AdvTree.Node[] { this.node1}); - this.advTreeProcSets.NodesConnector = this.nodeConnector1; - this.advTreeProcSets.NodeStyle = this.elementStyle1; - this.advTreeProcSets.NodeStyleSelected = this.elementStyle1; - this.advTreeProcSets.PathSeparator = ";"; - this.advTreeProcSets.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.advTreeProcSets.Size = new System.Drawing.Size(277, 137); - this.advTreeProcSets.Styles.Add(this.elementStyle1); - this.advTreeProcSets.TabIndex = 0; - this.advTreeProcSets.Text = "advTree1"; - this.advTreeProcSets.AfterNodeSelect += new DevComponents.AdvTree.AdvTreeNodeEventHandler(this.advTreeProcSets_AfterNodeSelect); - this.advTreeProcSets.AfterCheck += new DevComponents.AdvTree.AdvTreeCellEventHandler(this.advTreeProcSets_AfterCheck); - // - // elementStyle1 - // - this.elementStyle1.Class = ""; - this.elementStyle1.Name = "elementStyle1"; - this.elementStyle1.TextColor = System.Drawing.SystemColors.ControlText; - // - // node1 - // - this.node1.Name = "node1"; - this.node1.Text = "node1"; - // - // nodeConnector1 - // - this.nodeConnector1.LineColor = System.Drawing.SystemColors.ControlText; - // - // advTreeStepTypes - // - this.advTreeStepTypes.AccessibleRole = System.Windows.Forms.AccessibleRole.Outline; - this.advTreeStepTypes.AllowDrop = true; - this.advTreeStepTypes.BackColor = System.Drawing.SystemColors.Window; - // - // - // - this.advTreeStepTypes.BackgroundStyle.Class = "TreeBorderKey"; - this.advTreeStepTypes.CellStyleSelected = this.elementStyle2; - this.advTreeStepTypes.Dock = System.Windows.Forms.DockStyle.Fill; - this.advTreeStepTypes.DragDropEnabled = false; - this.advTreeStepTypes.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F"; - this.advTreeStepTypes.Location = new System.Drawing.Point(0, 21); - this.advTreeStepTypes.Margin = new System.Windows.Forms.Padding(2); - this.advTreeStepTypes.MultiSelect = true; - this.advTreeStepTypes.MultiSelectRule = DevComponents.AdvTree.eMultiSelectRule.AnyNode; - this.advTreeStepTypes.Name = "advTreeStepTypes"; - this.advTreeStepTypes.Nodes.AddRange(new DevComponents.AdvTree.Node[] { + this.advTreeProcSets.NodesConnector = this.nodeConnector1; + this.advTreeProcSets.NodeStyle = this.elementStyle1; + this.advTreeProcSets.NodeStyleSelected = this.elementStyle1; + this.advTreeProcSets.PathSeparator = ";"; + this.advTreeProcSets.RightToLeft = System.Windows.Forms.RightToLeft.No; + this.advTreeProcSets.Size = new System.Drawing.Size(369, 168); + this.advTreeProcSets.Styles.Add(this.elementStyle1); + this.advTreeProcSets.TabIndex = 0; + this.advTreeProcSets.Text = "advTree1"; + this.advTreeProcSets.AfterNodeSelect += new DevComponents.AdvTree.AdvTreeNodeEventHandler(this.advTreeProcSets_AfterNodeSelect); + this.advTreeProcSets.AfterCheck += new DevComponents.AdvTree.AdvTreeCellEventHandler(this.advTreeProcSets_AfterCheck); + // + // elementStyle1 + // + this.elementStyle1.Class = ""; + this.elementStyle1.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.elementStyle1.Name = "elementStyle1"; + this.elementStyle1.TextColor = System.Drawing.SystemColors.ControlText; + // + // node1 + // + this.node1.Name = "node1"; + this.node1.Text = "node1"; + // + // nodeConnector1 + // + this.nodeConnector1.LineColor = System.Drawing.SystemColors.ControlText; + // + // advTreeStepTypes + // + this.advTreeStepTypes.AccessibleRole = System.Windows.Forms.AccessibleRole.Outline; + this.advTreeStepTypes.AllowDrop = true; + this.advTreeStepTypes.BackColor = System.Drawing.SystemColors.Window; + // + // + // + this.advTreeStepTypes.BackgroundStyle.Class = "TreeBorderKey"; + this.advTreeStepTypes.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.advTreeStepTypes.CellStyleSelected = this.elementStyle2; + this.advTreeStepTypes.Dock = System.Windows.Forms.DockStyle.Fill; + this.advTreeStepTypes.DragDropEnabled = false; + this.advTreeStepTypes.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F"; + this.advTreeStepTypes.Location = new System.Drawing.Point(0, 26); + this.advTreeStepTypes.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.advTreeStepTypes.MultiSelect = true; + this.advTreeStepTypes.MultiSelectRule = DevComponents.AdvTree.eMultiSelectRule.AnyNode; + this.advTreeStepTypes.Name = "advTreeStepTypes"; + this.advTreeStepTypes.Nodes.AddRange(new DevComponents.AdvTree.Node[] { this.node2}); - this.advTreeStepTypes.NodesConnector = this.nodeConnector2; - this.advTreeStepTypes.NodeStyle = this.elementStyle2; - this.advTreeStepTypes.NodeStyleSelected = this.elementStyle2; - this.advTreeStepTypes.PathSeparator = ";"; - this.advTreeStepTypes.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.advTreeStepTypes.SelectionPerCell = true; - this.advTreeStepTypes.Size = new System.Drawing.Size(277, 125); - this.advTreeStepTypes.Styles.Add(this.elementStyle2); - this.advTreeStepTypes.TabIndex = 0; - this.advTreeStepTypes.Text = "advTree1"; - this.advTreeStepTypes.AfterCheck += new DevComponents.AdvTree.AdvTreeCellEventHandler(this.advTreeStepTypes_AfterCheck); - // - // elementStyle2 - // - this.elementStyle2.Class = ""; - this.elementStyle2.Name = "elementStyle2"; - this.elementStyle2.TextColor = System.Drawing.SystemColors.ControlText; - // - // node2 - // - this.node2.Expanded = true; - this.node2.Name = "node2"; - this.node2.Text = "....select a procedure set for types to appear..."; - // - // nodeConnector2 - // - this.nodeConnector2.LineColor = System.Drawing.SystemColors.ControlText; - // - // grpPanSearchResults - // - this.grpPanSearchResults.CanvasColor = System.Drawing.SystemColors.Control; - this.grpPanSearchResults.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; - this.grpPanSearchResults.Controls.Add(this.lbSrchResults); - this.grpPanSearchResults.Dock = System.Windows.Forms.DockStyle.Fill; - this.grpPanSearchResults.Location = new System.Drawing.Point(0, 475); - this.grpPanSearchResults.Margin = new System.Windows.Forms.Padding(2); - this.grpPanSearchResults.Name = "grpPanSearchResults"; - this.grpPanSearchResults.Size = new System.Drawing.Size(277, 201); - // - // - // - this.grpPanSearchResults.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; - this.grpPanSearchResults.Style.BackColorGradientAngle = 90; - this.grpPanSearchResults.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; - this.grpPanSearchResults.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.grpPanSearchResults.Style.BorderBottomWidth = 1; - this.grpPanSearchResults.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.grpPanSearchResults.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.grpPanSearchResults.Style.BorderLeftWidth = 1; - this.grpPanSearchResults.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.grpPanSearchResults.Style.BorderRightWidth = 1; - this.grpPanSearchResults.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.grpPanSearchResults.Style.BorderTopWidth = 1; - this.grpPanSearchResults.Style.Class = ""; - this.grpPanSearchResults.Style.CornerDiameter = 4; - this.grpPanSearchResults.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; - this.grpPanSearchResults.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; - this.grpPanSearchResults.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.grpPanSearchResults.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; - // - // - // - this.grpPanSearchResults.StyleMouseDown.Class = ""; - // - // - // - this.grpPanSearchResults.StyleMouseOver.Class = ""; - this.grpPanSearchResults.TabIndex = 3; - this.grpPanSearchResults.Text = "Search Results"; - // - // lbSrchResults - // - this.lbSrchResults.Dock = System.Windows.Forms.DockStyle.Fill; - this.lbSrchResults.FormattingEnabled = true; - this.lbSrchResults.HorizontalScrollbar = true; - this.lbSrchResults.Location = new System.Drawing.Point(0, 0); - this.lbSrchResults.Margin = new System.Windows.Forms.Padding(2); - this.lbSrchResults.Name = "lbSrchResults"; - this.lbSrchResults.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.lbSrchResults.Size = new System.Drawing.Size(271, 173); - this.lbSrchResults.TabIndex = 0; - this.lbSrchResults.MouseMove += new System.Windows.Forms.MouseEventHandler(this.lbSrchResults_MouseMove); - this.lbSrchResults.SelectedValueChanged += new System.EventHandler(this.lbSrchResults_SelectedValueChanged); - // - // panSearchButtons - // - this.panSearchButtons.CanvasColor = System.Drawing.SystemColors.Control; - this.panSearchButtons.Controls.Add(this.btnClearSearchResults); - this.panSearchButtons.Controls.Add(this.btnCopySearchResults); - this.panSearchButtons.Controls.Add(this.labelX1); - this.panSearchButtons.Controls.Add(this.cmbResultsStyle); - this.panSearchButtons.Controls.Add(this.cbSorted); - this.panSearchButtons.Controls.Add(this.btnSearch); - this.panSearchButtons.Controls.Add(this.btnPrnSrchRslts); - this.panSearchButtons.Dock = System.Windows.Forms.DockStyle.Top; - this.panSearchButtons.Location = new System.Drawing.Point(0, 416); - this.panSearchButtons.Margin = new System.Windows.Forms.Padding(2); - this.panSearchButtons.Name = "panSearchButtons"; - this.panSearchButtons.Size = new System.Drawing.Size(277, 59); - this.panSearchButtons.Style.Alignment = System.Drawing.StringAlignment.Center; - this.panSearchButtons.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; - this.panSearchButtons.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; - this.panSearchButtons.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.panSearchButtons.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.panSearchButtons.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.panSearchButtons.Style.GradientAngle = 90; - this.panSearchButtons.TabIndex = 6; - this.panSearchButtons.Text = "panelEx1"; - this.panSearchButtons.ThemeAware = true; - // - // btnClearSearchResults - // - this.btnClearSearchResults.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btnClearSearchResults.ColorTable = DevComponents.DotNetBar.eButtonColor.Office2007WithBackground; - this.btnClearSearchResults.Enabled = false; - this.btnClearSearchResults.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnClearSearchResults.Location = new System.Drawing.Point(225, 5); - this.btnClearSearchResults.Margin = new System.Windows.Forms.Padding(2); - this.btnClearSearchResults.Name = "btnClearSearchResults"; - this.btnClearSearchResults.Size = new System.Drawing.Size(43, 23); - this.superTooltip1.SetSuperTooltip(this.btnClearSearchResults, new DevComponents.DotNetBar.SuperTooltipInfo("Print Search Results", "", "This button will print the Search Results listed below.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(149, 76))); - this.btnClearSearchResults.TabIndex = 11; - this.btnClearSearchResults.Text = "Clear"; - this.btnClearSearchResults.ThemeAware = true; - this.btnClearSearchResults.Click += new System.EventHandler(this.btnClearSearchResults_Click); - // - // btnCopySearchResults - // - this.btnCopySearchResults.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btnCopySearchResults.ColorTable = DevComponents.DotNetBar.eButtonColor.Office2007WithBackground; - this.btnCopySearchResults.Enabled = false; - this.btnCopySearchResults.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnCopySearchResults.Location = new System.Drawing.Point(105, 29); - this.btnCopySearchResults.Margin = new System.Windows.Forms.Padding(2); - this.btnCopySearchResults.Name = "btnCopySearchResults"; - this.btnCopySearchResults.Size = new System.Drawing.Size(43, 23); - this.superTooltip1.SetSuperTooltip(this.btnCopySearchResults, new DevComponents.DotNetBar.SuperTooltipInfo("Print Search Results", "", "This button will print the Search Results listed below.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(149, 76))); - this.btnCopySearchResults.TabIndex = 10; - this.btnCopySearchResults.Text = "Copy"; - this.btnCopySearchResults.ThemeAware = true; - this.btnCopySearchResults.Click += new System.EventHandler(this.btnCopySearchResults_Click); - // - // labelX1 - // - // - // - // - this.labelX1.BackgroundStyle.Class = ""; - this.labelX1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.labelX1.Location = new System.Drawing.Point(3, 5); - this.labelX1.Margin = new System.Windows.Forms.Padding(2); - this.labelX1.Name = "labelX1"; - this.labelX1.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.labelX1.Size = new System.Drawing.Size(81, 19); - this.labelX1.TabIndex = 9; - this.labelX1.Text = "Results Style:"; - // - // cmbResultsStyle - // - this.cmbResultsStyle.DisplayMember = "Text"; - this.cmbResultsStyle.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.cmbResultsStyle.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cmbResultsStyle.FormattingEnabled = true; - this.cmbResultsStyle.ItemHeight = 15; - this.cmbResultsStyle.Items.AddRange(new object[] { + this.advTreeStepTypes.NodesConnector = this.nodeConnector2; + this.advTreeStepTypes.NodeStyle = this.elementStyle2; + this.advTreeStepTypes.NodeStyleSelected = this.elementStyle2; + this.advTreeStepTypes.PathSeparator = ";"; + this.advTreeStepTypes.RightToLeft = System.Windows.Forms.RightToLeft.No; + this.advTreeStepTypes.SelectionPerCell = true; + this.advTreeStepTypes.Size = new System.Drawing.Size(369, 154); + this.advTreeStepTypes.Styles.Add(this.elementStyle2); + this.advTreeStepTypes.TabIndex = 0; + this.advTreeStepTypes.Text = "advTree1"; + this.advTreeStepTypes.AfterCheck += new DevComponents.AdvTree.AdvTreeCellEventHandler(this.advTreeStepTypes_AfterCheck); + // + // elementStyle2 + // + this.elementStyle2.Class = ""; + this.elementStyle2.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.elementStyle2.Name = "elementStyle2"; + this.elementStyle2.TextColor = System.Drawing.SystemColors.ControlText; + // + // node2 + // + this.node2.Expanded = true; + this.node2.Name = "node2"; + this.node2.Text = "....select a procedure set for types to appear..."; + // + // nodeConnector2 + // + this.nodeConnector2.LineColor = System.Drawing.SystemColors.ControlText; + // + // grpPanSearchResults + // + this.grpPanSearchResults.CanvasColor = System.Drawing.SystemColors.Control; + this.grpPanSearchResults.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.grpPanSearchResults.Controls.Add(this.listViewEx1); + this.grpPanSearchResults.Controls.Add(this.lbSrchResults); + this.grpPanSearchResults.Dock = System.Windows.Forms.DockStyle.Fill; + this.grpPanSearchResults.Location = new System.Drawing.Point(0, 585); + this.grpPanSearchResults.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.grpPanSearchResults.Name = "grpPanSearchResults"; + this.grpPanSearchResults.Size = new System.Drawing.Size(369, 247); + // + // + // + this.grpPanSearchResults.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.grpPanSearchResults.Style.BackColorGradientAngle = 90; + this.grpPanSearchResults.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.grpPanSearchResults.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.grpPanSearchResults.Style.BorderBottomWidth = 1; + this.grpPanSearchResults.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.grpPanSearchResults.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.grpPanSearchResults.Style.BorderLeftWidth = 1; + this.grpPanSearchResults.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.grpPanSearchResults.Style.BorderRightWidth = 1; + this.grpPanSearchResults.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.grpPanSearchResults.Style.BorderTopWidth = 1; + this.grpPanSearchResults.Style.Class = ""; + this.grpPanSearchResults.Style.CornerDiameter = 4; + this.grpPanSearchResults.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.grpPanSearchResults.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.grpPanSearchResults.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.grpPanSearchResults.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.grpPanSearchResults.StyleMouseDown.Class = ""; + this.grpPanSearchResults.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.grpPanSearchResults.StyleMouseOver.Class = ""; + this.grpPanSearchResults.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.grpPanSearchResults.TabIndex = 3; + this.grpPanSearchResults.Text = "Search Results"; + // + // listViewEx1 + // + // + // + // + this.listViewEx1.Border.Class = "ListViewBorder"; + this.listViewEx1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.listViewEx1.Location = new System.Drawing.Point(288, 40); + this.listViewEx1.Name = "listViewEx1"; + this.listViewEx1.Size = new System.Drawing.Size(121, 97); + this.listViewEx1.TabIndex = 1; + this.listViewEx1.UseCompatibleStateImageBehavior = false; + // + // lbSrchResults + // + this.lbSrchResults.Dock = System.Windows.Forms.DockStyle.Fill; + this.lbSrchResults.FormattingEnabled = true; + this.lbSrchResults.HorizontalScrollbar = true; + this.lbSrchResults.ItemHeight = 16; + this.lbSrchResults.Location = new System.Drawing.Point(0, 0); + this.lbSrchResults.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.lbSrchResults.Name = "lbSrchResults"; + this.lbSrchResults.RightToLeft = System.Windows.Forms.RightToLeft.No; + this.lbSrchResults.Size = new System.Drawing.Size(363, 212); + this.lbSrchResults.TabIndex = 0; + this.lbSrchResults.MouseMove += new System.Windows.Forms.MouseEventHandler(this.lbSrchResults_MouseMove); + this.lbSrchResults.SelectedValueChanged += new System.EventHandler(this.lbSrchResults_SelectedValueChanged); + // + // panSearchButtons + // + this.panSearchButtons.CanvasColor = System.Drawing.SystemColors.Control; + this.panSearchButtons.Controls.Add(this.btnClearSearchResults); + this.panSearchButtons.Controls.Add(this.btnCopySearchResults); + this.panSearchButtons.Controls.Add(this.labelX1); + this.panSearchButtons.Controls.Add(this.cmbResultsStyle); + this.panSearchButtons.Controls.Add(this.cbSorted); + this.panSearchButtons.Controls.Add(this.btnSearch); + this.panSearchButtons.Controls.Add(this.btnPrnSrchRslts); + this.panSearchButtons.Dock = System.Windows.Forms.DockStyle.Top; + this.panSearchButtons.Location = new System.Drawing.Point(0, 512); + this.panSearchButtons.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.panSearchButtons.Name = "panSearchButtons"; + this.panSearchButtons.Size = new System.Drawing.Size(369, 73); + this.panSearchButtons.Style.Alignment = System.Drawing.StringAlignment.Center; + this.panSearchButtons.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.panSearchButtons.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.panSearchButtons.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.panSearchButtons.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.panSearchButtons.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.panSearchButtons.Style.GradientAngle = 90; + this.panSearchButtons.TabIndex = 6; + this.panSearchButtons.Text = "panelEx1"; + this.panSearchButtons.ThemeAware = true; + // + // btnClearSearchResults + // + this.btnClearSearchResults.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnClearSearchResults.CallBasePaintBackground = true; + this.btnClearSearchResults.ColorTable = DevComponents.DotNetBar.eButtonColor.Office2007WithBackground; + this.btnClearSearchResults.Enabled = false; + this.btnClearSearchResults.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnClearSearchResults.Location = new System.Drawing.Point(300, 6); + this.btnClearSearchResults.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.btnClearSearchResults.Name = "btnClearSearchResults"; + this.btnClearSearchResults.Size = new System.Drawing.Size(57, 28); + this.superTooltip1.SetSuperTooltip(this.btnClearSearchResults, new DevComponents.DotNetBar.SuperTooltipInfo("Print Search Results", "", "This button will print the Search Results listed below.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(149, 76))); + this.btnClearSearchResults.TabIndex = 11; + this.btnClearSearchResults.Text = "Clear"; + this.btnClearSearchResults.ThemeAware = true; + this.btnClearSearchResults.Click += new System.EventHandler(this.btnClearSearchResults_Click); + // + // btnCopySearchResults + // + this.btnCopySearchResults.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnCopySearchResults.CallBasePaintBackground = true; + this.btnCopySearchResults.ColorTable = DevComponents.DotNetBar.eButtonColor.Office2007WithBackground; + this.btnCopySearchResults.Enabled = false; + this.btnCopySearchResults.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnCopySearchResults.Location = new System.Drawing.Point(140, 36); + this.btnCopySearchResults.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.btnCopySearchResults.Name = "btnCopySearchResults"; + this.btnCopySearchResults.Size = new System.Drawing.Size(57, 28); + this.superTooltip1.SetSuperTooltip(this.btnCopySearchResults, new DevComponents.DotNetBar.SuperTooltipInfo("Print Search Results", "", "This button will print the Search Results listed below.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(149, 76))); + this.btnCopySearchResults.TabIndex = 10; + this.btnCopySearchResults.Text = "Copy"; + this.btnCopySearchResults.ThemeAware = true; + this.btnCopySearchResults.Click += new System.EventHandler(this.btnCopySearchResults_Click); + // + // labelX1 + // + // + // + // + this.labelX1.BackgroundStyle.Class = ""; + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelX1.Location = new System.Drawing.Point(4, 6); + this.labelX1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.labelX1.Name = "labelX1"; + this.labelX1.RightToLeft = System.Windows.Forms.RightToLeft.No; + this.labelX1.Size = new System.Drawing.Size(108, 23); + this.labelX1.TabIndex = 9; + this.labelX1.Text = "Results Style:"; + // + // cmbResultsStyle + // + this.cmbResultsStyle.DisplayMember = "Text"; + this.cmbResultsStyle.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.cmbResultsStyle.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cmbResultsStyle.FormattingEnabled = true; + this.cmbResultsStyle.ItemHeight = 15; + this.cmbResultsStyle.Items.AddRange(new object[] { this.comboItem1, this.comboItem2, this.comboItem3, this.comboItem4}); - this.cmbResultsStyle.Location = new System.Drawing.Point(88, 5); - this.cmbResultsStyle.Margin = new System.Windows.Forms.Padding(2); - this.cmbResultsStyle.Name = "cmbResultsStyle"; - this.cmbResultsStyle.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.cmbResultsStyle.Size = new System.Drawing.Size(132, 21); - this.cmbResultsStyle.TabIndex = 8; - this.cmbResultsStyle.SelectedValueChanged += new System.EventHandler(this.cmbResultsStyle_SelectedValueChanged); - // - // comboItem1 - // - this.comboItem1.Text = "Document Path"; - // - // comboItem2 - // - this.comboItem2.Text = "Step Path"; - // - // comboItem3 - // - this.comboItem3.Text = "Annotation Text"; - // - // comboItem4 - // - this.comboItem4.Text = "Document Text"; - // - // cbSorted - // - // - // - // - this.cbSorted.BackgroundStyle.Class = ""; - this.cbSorted.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cbSorted.Location = new System.Drawing.Point(172, 30); - this.cbSorted.Margin = new System.Windows.Forms.Padding(2); - this.cbSorted.Name = "cbSorted"; - this.cbSorted.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.cbSorted.Size = new System.Drawing.Size(100, 19); - this.cbSorted.TabIndex = 7; - this.cbSorted.Text = "Sort Results"; - this.cbSorted.CheckedChanged += new System.EventHandler(this.cbSorted_CheckedChanged); - // - // btnSearch - // - this.btnSearch.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btnSearch.BackColor = System.Drawing.SystemColors.Control; - this.btnSearch.ColorTable = DevComponents.DotNetBar.eButtonColor.Office2007WithBackground; - this.btnSearch.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnSearch.Location = new System.Drawing.Point(4, 29); - this.btnSearch.Margin = new System.Windows.Forms.Padding(2); - this.btnSearch.Name = "btnSearch"; - this.btnSearch.Size = new System.Drawing.Size(50, 23); - this.superTooltip1.SetSuperTooltip(this.btnSearch, new DevComponents.DotNetBar.SuperTooltipInfo("Search Button", "", "This will preform the search and place the results below.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(150, 80))); - this.btnSearch.TabIndex = 4; - this.btnSearch.Text = "Search"; - this.btnSearch.ThemeAware = true; - this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click); - // - // btnPrnSrchRslts - // - this.btnPrnSrchRslts.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btnPrnSrchRslts.ColorTable = DevComponents.DotNetBar.eButtonColor.Office2007WithBackground; - this.btnPrnSrchRslts.Enabled = false; - this.btnPrnSrchRslts.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnPrnSrchRslts.Location = new System.Drawing.Point(58, 29); - this.btnPrnSrchRslts.Margin = new System.Windows.Forms.Padding(2); - this.btnPrnSrchRslts.Name = "btnPrnSrchRslts"; - this.btnPrnSrchRslts.Size = new System.Drawing.Size(43, 23); - this.superTooltip1.SetSuperTooltip(this.btnPrnSrchRslts, new DevComponents.DotNetBar.SuperTooltipInfo("Print Search Results", "", "This button will print the Search Results listed below.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(149, 76))); - this.btnPrnSrchRslts.TabIndex = 5; - this.btnPrnSrchRslts.Text = "Print"; - this.btnPrnSrchRslts.ThemeAware = true; - this.btnPrnSrchRslts.Click += new System.EventHandler(this.btnPrnSrchRslts_Click); - // - // xpSetToSearch - // - this.xpSetToSearch.CanvasColor = System.Drawing.SystemColors.Control; - this.xpSetToSearch.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; - this.xpSetToSearch.Controls.Add(this.advTreeProcSets); - this.xpSetToSearch.Dock = System.Windows.Forms.DockStyle.Top; - this.xpSetToSearch.ExpandOnTitleClick = true; - this.xpSetToSearch.Location = new System.Drawing.Point(0, 112); - this.xpSetToSearch.Margin = new System.Windows.Forms.Padding(2); - this.xpSetToSearch.Name = "xpSetToSearch"; - this.xpSetToSearch.Size = new System.Drawing.Size(277, 158); - this.xpSetToSearch.Style.Alignment = System.Drawing.StringAlignment.Center; - this.xpSetToSearch.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; - this.xpSetToSearch.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; - this.xpSetToSearch.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.xpSetToSearch.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarDockedBorder; - this.xpSetToSearch.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText; - this.xpSetToSearch.Style.GradientAngle = 90; - this.superTooltip1.SetSuperTooltip(this.xpSetToSearch, new DevComponents.DotNetBar.SuperTooltipInfo("Select Procedure Sets to Search", "", "This allows you to select specific procedure sets in which to search.\r\n\r\nThe defa" + - "ult is the current procedure set only.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(228, 105))); - this.xpSetToSearch.TabIndex = 7; - this.xpSetToSearch.TitleHeight = 21; - this.xpSetToSearch.TitleStyle.Alignment = System.Drawing.StringAlignment.Center; - this.xpSetToSearch.TitleStyle.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; - this.xpSetToSearch.TitleStyle.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; - this.xpSetToSearch.TitleStyle.Border = DevComponents.DotNetBar.eBorderType.RaisedInner; - this.xpSetToSearch.TitleStyle.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.xpSetToSearch.TitleStyle.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.xpSetToSearch.TitleStyle.GradientAngle = 90; - this.xpSetToSearch.TitleText = "Select Procedure Sets"; - this.xpSetToSearch.ExpandedChanged += new DevComponents.DotNetBar.ExpandChangeEventHandler(this.xpSetToSearch_ExpandedChanged); - // - // xpStepTypes - // - this.xpStepTypes.CanvasColor = System.Drawing.SystemColors.Control; - this.xpStepTypes.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; - this.xpStepTypes.Controls.Add(this.advTreeStepTypes); - this.xpStepTypes.Dock = System.Windows.Forms.DockStyle.Top; - this.xpStepTypes.ExpandOnTitleClick = true; - this.xpStepTypes.Location = new System.Drawing.Point(0, 270); - this.xpStepTypes.Margin = new System.Windows.Forms.Padding(2); - this.xpStepTypes.Name = "xpStepTypes"; - this.xpStepTypes.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.xpStepTypes.Size = new System.Drawing.Size(277, 146); - this.xpStepTypes.Style.Alignment = System.Drawing.StringAlignment.Center; - this.xpStepTypes.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; - this.xpStepTypes.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; - this.xpStepTypes.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.xpStepTypes.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarDockedBorder; - this.xpStepTypes.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText; - this.xpStepTypes.Style.GradientAngle = 90; - this.superTooltip1.SetSuperTooltip(this.xpStepTypes, new DevComponents.DotNetBar.SuperTooltipInfo("Filter Search by Selected Types", "", "This allows you to search in only the selected types.\r\n\r\nIf you do not enter text" + - " to search, it will show you where the selected types are used in your procedure" + - "s.\r\n", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(252, 120))); - this.xpStepTypes.TabIndex = 8; - this.xpStepTypes.ThemeAware = true; - this.xpStepTypes.TitleHeight = 21; - this.xpStepTypes.TitleStyle.Alignment = System.Drawing.StringAlignment.Center; - this.xpStepTypes.TitleStyle.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; - this.xpStepTypes.TitleStyle.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; - this.xpStepTypes.TitleStyle.Border = DevComponents.DotNetBar.eBorderType.RaisedInner; - this.xpStepTypes.TitleStyle.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.xpStepTypes.TitleStyle.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.xpStepTypes.TitleStyle.GradientAngle = 90; - this.xpStepTypes.TitleText = "Search By Types"; - this.xpStepTypes.ExpandedChanged += new DevComponents.DotNetBar.ExpandChangeEventHandler(this.xpStepTypes_ExpandedChanged); - // - // superTooltip1 - // - this.superTooltip1.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F"; - // - // DisplaySearch - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.grpPanSearchResults); - this.Controls.Add(this.panSearchButtons); - this.Controls.Add(this.xpStepTypes); - this.Controls.Add(this.xpSetToSearch); - this.Controls.Add(this.tabSearchTypes); - this.Margin = new System.Windows.Forms.Padding(2); - this.Name = "DisplaySearch"; - this.RightToLeft = System.Windows.Forms.RightToLeft.Yes; - this.Size = new System.Drawing.Size(277, 676); - ((System.ComponentModel.ISupportInitialize)(this.tabSearchTypes)).EndInit(); - this.tabSearchTypes.ResumeLayout(false); - this.tabControlPanel2.ResumeLayout(false); - this.gpFindROs.ResumeLayout(false); - this.tabControlPanel4.ResumeLayout(false); - this.gpSrchText.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); - this.panel3.ResumeLayout(false); - this.tabControlPanel3.ResumeLayout(false); - this.tabControlPanel3.PerformLayout(); - this.gpSrchAnnoText.ResumeLayout(false); - this.panel4.ResumeLayout(false); - this.panel4.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.contextMenuBar1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.advTreeProcSets)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.advTreeStepTypes)).EndInit(); - this.grpPanSearchResults.ResumeLayout(false); - this.panSearchButtons.ResumeLayout(false); - this.xpSetToSearch.ResumeLayout(false); - this.xpStepTypes.ResumeLayout(false); - this.ResumeLayout(false); + this.cmbResultsStyle.Location = new System.Drawing.Point(117, 6); + this.cmbResultsStyle.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.cmbResultsStyle.Name = "cmbResultsStyle"; + this.cmbResultsStyle.RightToLeft = System.Windows.Forms.RightToLeft.No; + this.cmbResultsStyle.Size = new System.Drawing.Size(175, 21); + this.cmbResultsStyle.TabIndex = 8; + this.cmbResultsStyle.SelectedValueChanged += new System.EventHandler(this.cmbResultsStyle_SelectedValueChanged); + // + // comboItem1 + // + this.comboItem1.Text = "Document Path"; + // + // comboItem2 + // + this.comboItem2.Text = "Step Path"; + // + // comboItem3 + // + this.comboItem3.Text = "Annotation Text"; + // + // comboItem4 + // + this.comboItem4.Text = "Document Text"; + // + // cbSorted + // + // + // + // + this.cbSorted.BackgroundStyle.Class = ""; + this.cbSorted.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.cbSorted.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cbSorted.Location = new System.Drawing.Point(229, 37); + this.cbSorted.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.cbSorted.Name = "cbSorted"; + this.cbSorted.RightToLeft = System.Windows.Forms.RightToLeft.No; + this.cbSorted.Size = new System.Drawing.Size(133, 23); + this.cbSorted.TabIndex = 7; + this.cbSorted.Text = "Sort Results"; + this.cbSorted.CheckedChanged += new System.EventHandler(this.cbSorted_CheckedChanged); + // + // btnSearch + // + this.btnSearch.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnSearch.BackColor = System.Drawing.SystemColors.Control; + this.btnSearch.CallBasePaintBackground = true; + this.btnSearch.ColorTable = DevComponents.DotNetBar.eButtonColor.Office2007WithBackground; + this.btnSearch.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnSearch.Location = new System.Drawing.Point(5, 36); + this.btnSearch.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.btnSearch.Name = "btnSearch"; + this.btnSearch.Size = new System.Drawing.Size(67, 28); + this.superTooltip1.SetSuperTooltip(this.btnSearch, new DevComponents.DotNetBar.SuperTooltipInfo("Search Button", "", "This will preform the search and place the results below.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(150, 80))); + this.btnSearch.TabIndex = 4; + this.btnSearch.Text = "Search"; + this.btnSearch.ThemeAware = true; + this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click); + // + // btnPrnSrchRslts + // + this.btnPrnSrchRslts.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnPrnSrchRslts.CallBasePaintBackground = true; + this.btnPrnSrchRslts.ColorTable = DevComponents.DotNetBar.eButtonColor.Office2007WithBackground; + this.btnPrnSrchRslts.Enabled = false; + this.btnPrnSrchRslts.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnPrnSrchRslts.Location = new System.Drawing.Point(77, 36); + this.btnPrnSrchRslts.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.btnPrnSrchRslts.Name = "btnPrnSrchRslts"; + this.btnPrnSrchRslts.Size = new System.Drawing.Size(57, 28); + this.superTooltip1.SetSuperTooltip(this.btnPrnSrchRslts, new DevComponents.DotNetBar.SuperTooltipInfo("Print Search Results", "", "This button will print the Search Results listed below.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(149, 76))); + this.btnPrnSrchRslts.TabIndex = 5; + this.btnPrnSrchRslts.Text = "Print"; + this.btnPrnSrchRslts.ThemeAware = true; + this.btnPrnSrchRslts.Click += new System.EventHandler(this.btnPrnSrchRslts_Click); + // + // xpSetToSearch + // + this.xpSetToSearch.CanvasColor = System.Drawing.SystemColors.Control; + this.xpSetToSearch.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.xpSetToSearch.Controls.Add(this.advTreeProcSets); + this.xpSetToSearch.Dock = System.Windows.Forms.DockStyle.Top; + this.xpSetToSearch.ExpandOnTitleClick = true; + this.xpSetToSearch.Location = new System.Drawing.Point(0, 138); + this.xpSetToSearch.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.xpSetToSearch.Name = "xpSetToSearch"; + this.xpSetToSearch.Size = new System.Drawing.Size(369, 194); + this.xpSetToSearch.Style.Alignment = System.Drawing.StringAlignment.Center; + this.xpSetToSearch.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.xpSetToSearch.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.xpSetToSearch.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.xpSetToSearch.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarDockedBorder; + this.xpSetToSearch.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText; + this.xpSetToSearch.Style.GradientAngle = 90; + this.superTooltip1.SetSuperTooltip(this.xpSetToSearch, new DevComponents.DotNetBar.SuperTooltipInfo("Select Procedure Sets to Search", "", "This allows you to select specific procedure sets in which to search.\r\n\r\nThe defa" + + "ult is the current procedure set only.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(228, 105))); + this.xpSetToSearch.TabIndex = 7; + this.xpSetToSearch.TitleStyle.Alignment = System.Drawing.StringAlignment.Center; + this.xpSetToSearch.TitleStyle.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.xpSetToSearch.TitleStyle.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.xpSetToSearch.TitleStyle.Border = DevComponents.DotNetBar.eBorderType.RaisedInner; + this.xpSetToSearch.TitleStyle.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.xpSetToSearch.TitleStyle.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.xpSetToSearch.TitleStyle.GradientAngle = 90; + this.xpSetToSearch.TitleText = "Select Procedure Sets"; + this.xpSetToSearch.ExpandedChanged += new DevComponents.DotNetBar.ExpandChangeEventHandler(this.xpSetToSearch_ExpandedChanged); + // + // xpStepTypes + // + this.xpStepTypes.CanvasColor = System.Drawing.SystemColors.Control; + this.xpStepTypes.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.xpStepTypes.Controls.Add(this.advTreeStepTypes); + this.xpStepTypes.Dock = System.Windows.Forms.DockStyle.Top; + this.xpStepTypes.ExpandOnTitleClick = true; + this.xpStepTypes.Location = new System.Drawing.Point(0, 332); + this.xpStepTypes.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.xpStepTypes.Name = "xpStepTypes"; + this.xpStepTypes.RightToLeft = System.Windows.Forms.RightToLeft.No; + this.xpStepTypes.Size = new System.Drawing.Size(369, 180); + this.xpStepTypes.Style.Alignment = System.Drawing.StringAlignment.Center; + this.xpStepTypes.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.xpStepTypes.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.xpStepTypes.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.xpStepTypes.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarDockedBorder; + this.xpStepTypes.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText; + this.xpStepTypes.Style.GradientAngle = 90; + this.superTooltip1.SetSuperTooltip(this.xpStepTypes, new DevComponents.DotNetBar.SuperTooltipInfo("Filter Search by Selected Types", "", "This allows you to search in only the selected types.\r\n\r\nIf you do not enter text" + + " to search, it will show you where the selected types are used in your procedure" + + "s.\r\n", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(252, 120))); + this.xpStepTypes.TabIndex = 8; + this.xpStepTypes.ThemeAware = true; + this.xpStepTypes.TitleStyle.Alignment = System.Drawing.StringAlignment.Center; + this.xpStepTypes.TitleStyle.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.xpStepTypes.TitleStyle.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.xpStepTypes.TitleStyle.Border = DevComponents.DotNetBar.eBorderType.RaisedInner; + this.xpStepTypes.TitleStyle.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.xpStepTypes.TitleStyle.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.xpStepTypes.TitleStyle.GradientAngle = 90; + this.xpStepTypes.TitleText = "Search By Types"; + this.xpStepTypes.ExpandedChanged += new DevComponents.DotNetBar.ExpandChangeEventHandler(this.xpStepTypes_ExpandedChanged); + // + // superTooltip1 + // + this.superTooltip1.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F"; + // + // DisplaySearch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.grpPanSearchResults); + this.Controls.Add(this.panSearchButtons); + this.Controls.Add(this.xpStepTypes); + this.Controls.Add(this.xpSetToSearch); + this.Controls.Add(this.tabSearchTypes); + this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.Name = "DisplaySearch"; + this.RightToLeft = System.Windows.Forms.RightToLeft.Yes; + this.Size = new System.Drawing.Size(369, 832); + ((System.ComponentModel.ISupportInitialize)(this.tabSearchTypes)).EndInit(); + this.tabSearchTypes.ResumeLayout(false); + this.tabControlPanel4.ResumeLayout(false); + this.gpSrchText.ResumeLayout(false); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + this.panel3.ResumeLayout(false); + this.tabControlPanel2.ResumeLayout(false); + this.gpFindROs.ResumeLayout(false); + this.tabControlPanel3.ResumeLayout(false); + this.tabControlPanel3.PerformLayout(); + this.gpSrchAnnoText.ResumeLayout(false); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.contextMenuBar1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.advTreeProcSets)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.advTreeStepTypes)).EndInit(); + this.grpPanSearchResults.ResumeLayout(false); + this.panSearchButtons.ResumeLayout(false); + this.xpSetToSearch.ResumeLayout(false); + this.xpStepTypes.ResumeLayout(false); + this.ResumeLayout(false); } @@ -1303,6 +1347,7 @@ namespace Volian.Controls.Library private DevComponents.DotNetBar.ButtonX btnCopySearchResults; private DevComponents.DotNetBar.ButtonX btnPrnSrchRslts; private DevComponents.DotNetBar.ButtonX btnClearSearchResults; + private DevComponents.DotNetBar.Controls.ListViewEx listViewEx1; } } diff --git a/PROMS/Volian.Controls.Library/DisplaySearch.cs b/PROMS/Volian.Controls.Library/DisplaySearch.cs index 1dfc987c..4e42c70d 100644 --- a/PROMS/Volian.Controls.Library/DisplaySearch.cs +++ b/PROMS/Volian.Controls.Library/DisplaySearch.cs @@ -13,145 +13,146 @@ using System.Text.RegularExpressions; namespace Volian.Controls.Library { - public partial class DisplaySearch : UserControl + public partial class DisplaySearch : UserControl + { + #region Events + public event DisplaySearchEvent PrintRequest; + private void OnPrintRequest(DisplaySearchEventArgs args) { - #region Events - public event DisplaySearchEvent PrintRequest; - private void OnPrintRequest(DisplaySearchEventArgs args) - { - if (PrintRequest != null) - PrintRequest(this, args); - } - #endregion - #region Properties - private string _strSrchText = ""; - private List lstCheckedDocVersions = new List(); - private List lstCheckedStepTypes = new List(); + if (PrintRequest != null) + PrintRequest(this, args); + } + #endregion + #region Properties + private string _strSrchText = ""; + private List lstCheckedDocVersions = new List(); + private List lstCheckedStepTypes = new List(); - private AnnotationDetails _AnnotationDetails = null; - ItemInfo _ItemInfo = null; - private DisplayTabControl _TabControl; - private DocVersionInfo _MyDocVersion; - private Color saveXpSetToSearchColor; - private Color saveXpStepTypeTitleColor; - private Color saveGpSrchAnnoTextColor; - private Color saveGpSrchTextColor; - private Color saveGpFindROsColor; - private Color saveGrpPanSearchResults; - private ItemInfoList _SearchResults; - public ItemInfoList SearchResults + private AnnotationDetails _AnnotationDetails = null; + ItemInfo _ItemInfo = null; + private DisplayTabControl _TabControl; + private DocVersionInfo _MyDocVersion; + private Color saveXpSetToSearchColor; + private Color saveXpStepTypeTitleColor; + private Color saveGpSrchAnnoTextColor; + private Color saveGpSrchTextColor; + private Color saveGpFindROsColor; + private Color saveGrpPanSearchResults; + private ItemInfoList _SearchResults; + public ItemInfoList SearchResults + { + get { return _SearchResults; } + set { - get { return _SearchResults; } - set + _SearchResults = value; + if (value != null) // Don't select an item from the list when it is updated + _SearchResults.ListChanged += new ListChangedEventHandler(_SearchResults_ListChanged); + DisplayResults(); + } + } + void _SearchResults_ListChanged(object sender, ListChangedEventArgs e) + { + lbSrchResults.SelectedIndex = -1; // Don't select an item from the new list + } + + private string _DisplayMember = "SearchPath"; + + //public string Status + //{ + // get { return tsslStatus.Text; } + // set { tsslStatus.Text = value; Application.DoEvents(); } + //} + + private bool _OpenDocFromSearch; + + public bool OpenDocFromSearch + { + get { return _OpenDocFromSearch; } + //set { _OpenDocFromSearch = value; } + } + public DocVersionInfo Mydocversion + { + get { return _MyDocVersion; } + set + { + _MyDocVersion = value; + if (_MyDocVersion != null) { - _SearchResults = value; - if (value != null) // Don't select an item from the list when it is updated - _SearchResults.ListChanged += new ListChangedEventHandler(_SearchResults_ListChanged); - DisplayResults(); + if (_MyDocVersion.DocVersionAssociationCount > 0) + { + MyROFSTLookup = _MyDocVersion.DocVersionAssociations[0].MyROFst.ROFSTLookup; + _MyRODbID = _MyDocVersion.DocVersionAssociations[0].MyROFst.RODbID; + } } } - void _SearchResults_ListChanged(object sender, ListChangedEventArgs e) + } + + private ROFSTLookup _MyROFSTLookup; + public ROFSTLookup MyROFSTLookup + { + get { return _MyROFSTLookup; } + set { - lbSrchResults.SelectedIndex = -1; // Don't select an item from the new list + //if (!Visible) return; // don't reset anything if the form is invisible. + _MyROFSTLookup = value; // define the tree nodes based on this rofst + LoadROComboTree(); } + } + private bool _LoadingList = false; + public bool LoadingList + { + get { return _LoadingList; } + set { _LoadingList = value; } + } - private string _DisplayMember = "SearchPath"; + private int LastResultsMouseOverIndex = -1; - //public string Status - //{ - // get { return tsslStatus.Text; } - // set { tsslStatus.Text = value; Application.DoEvents(); } - //} + private ProgressBarItem _ProgressBar; - private bool _OpenDocFromSearch; + public ProgressBarItem ProgressBar + { + get { return _ProgressBar; } + set { _ProgressBar = value; } + } + #endregion - public bool OpenDocFromSearch - { - get { return _OpenDocFromSearch; } - //set { _OpenDocFromSearch = value; } - } - public DocVersionInfo Mydocversion - { - get { return _MyDocVersion; } - set { - _MyDocVersion = value; - if (_MyDocVersion != null) - { - if (_MyDocVersion.DocVersionAssociationCount > 0) - { - MyROFSTLookup = _MyDocVersion.DocVersionAssociations[0].MyROFst.ROFSTLookup; - _MyRODbID = _MyDocVersion.DocVersionAssociations[0].MyROFst.RODbID; - } - } - } - } + #region setup + public DisplaySearch() + { + InitializeComponent(); + LoadSearchTextListBox(); + saveXpSetToSearchColor = xpSetToSearch.TitleStyle.BackColor1.Color; + saveXpStepTypeTitleColor = xpStepTypes.TitleStyle.BackColor1.Color; + saveGpSrchAnnoTextColor = gpSrchAnnoText.Style.BackColor; + saveGpSrchTextColor = gpSrchText.Style.BackColor; + saveGpFindROsColor = gpFindROs.Style.BackColor; + gpSrchText.Style.BackColor = Color.Yellow; + saveGrpPanSearchResults = grpPanSearchResults.Style.BackColor; - private ROFSTLookup _MyROFSTLookup; - public ROFSTLookup MyROFSTLookup - { - get { return _MyROFSTLookup; } - set - { - //if (!Visible) return; // don't reset anything if the form is invisible. - _MyROFSTLookup = value; // define the tree nodes based on this rofst - LoadROComboTree(); - } - } - private bool _LoadingList = false; - public bool LoadingList - { - get { return _LoadingList; } - set { _LoadingList = value; } - } - - private int LastResultsMouseOverIndex = -1; - - private ProgressBarItem _ProgressBar; - - public ProgressBarItem ProgressBar - { - get { return _ProgressBar; } - set { _ProgressBar = value; } - } - #endregion - - #region setup - public DisplaySearch() - { - InitializeComponent(); - LoadSearchTextListBox(); - saveXpSetToSearchColor = xpSetToSearch.TitleStyle.BackColor1.Color; - saveXpStepTypeTitleColor = xpStepTypes.TitleStyle.BackColor1.Color; - saveGpSrchAnnoTextColor = gpSrchAnnoText.Style.BackColor; - saveGpSrchTextColor = gpSrchText.Style.BackColor; - saveGpFindROsColor = gpFindROs.Style.BackColor; - gpSrchText.Style.BackColor = Color.Yellow; - saveGrpPanSearchResults = grpPanSearchResults.Style.BackColor; - - // start out with the procedure and type selection windows colasped - xpSetToSearch.Expanded = false; - xpStepTypes.Expanded = false; - rbtnSrchTxt.Checked = true; - gpSrchAnnoText.Enabled = true; - cmbResultsStyle.Enabled = false; - } - private void LoadSearchTextListBox() + // start out with the procedure and type selection windows colasped + xpSetToSearch.Expanded = false; + xpStepTypes.Expanded = false; + rbtnSrchTxt.Checked = true; + gpSrchAnnoText.Enabled = true; + cmbResultsStyle.Enabled = false; + } + private void LoadSearchTextListBox() + { + // Setup SearchText Combo + cbxTextSearchText.Items.Clear(); + if (Properties.Settings.Default["SearchList"] != null && Properties.Settings.Default.SearchList.Count > 0) { - // Setup SearchText Combo - cbxTextSearchText.Items.Clear(); - if (Properties.Settings.Default["SearchList"] != null && Properties.Settings.Default.SearchList.Count > 0) - { - foreach (string str in Properties.Settings.Default.SearchList) - cbxTextSearchText.Items.Add(str); - } - // Setup SearchAnnotation Combo - cbxTextSearchAnnotation.Items.Clear(); - if (Properties.Settings.Default["SearchAList"] != null && Properties.Settings.Default.SearchAList.Count > 0) - { - foreach (string str in Properties.Settings.Default.SearchAList) - cbxTextSearchAnnotation.Items.Add(str); - } + foreach (string str in Properties.Settings.Default.SearchList) + cbxTextSearchText.Items.Add(str); } + // Setup SearchAnnotation Combo + cbxTextSearchAnnotation.Items.Clear(); + if (Properties.Settings.Default["SearchAList"] != null && Properties.Settings.Default.SearchAList.Count > 0) + { + foreach (string str in Properties.Settings.Default.SearchAList) + cbxTextSearchAnnotation.Items.Add(str); + } + } private DevComponents.AdvTree.Node NewAdvTreeNode(string nodetext, bool selectable, bool chxbxvisable) { @@ -166,35 +167,35 @@ namespace Volian.Controls.Library return newnode; } - public void advTreeStepTypesFillIn() - { - DevComponents.AdvTree.Node topnode = new DevComponents.AdvTree.Node(); - advTreeStepTypes.Nodes.Clear(); - lstCheckedStepTypes.Clear(); - topnode.Text = "Types"; - advTreeStepTypes.Nodes.Add(topnode); + public void advTreeStepTypesFillIn() + { + DevComponents.AdvTree.Node topnode = new DevComponents.AdvTree.Node(); + advTreeStepTypes.Nodes.Clear(); + lstCheckedStepTypes.Clear(); + topnode.Text = "Types"; + advTreeStepTypes.Nodes.Add(topnode); FormatData fmtdata = _MyDocVersion.ActiveFormat.PlantFormat.FormatData; - List lstSrchStpTypes = fmtdata.GetSearchableSteps(); // list of searchable step types - if (lstSrchStpTypes != null && lstSrchStpTypes.Count > 0) - { - DevComponents.AdvTree.Node newnode; - advTreeStepTypes.Nodes.Clear(); - // Add a dummy node for searching Accessory Sections (MS Word sections) - //newnode = new DevComponents.AdvTree.Node(); - //newnode.Text = "Accessory Sections"; - //newnode.Selectable = true; - //newnode.CheckBoxAlignment = DevComponents.AdvTree.eCellPartAlignment.NearCenter; - //newnode.CheckBoxStyle = eCheckBoxStyle.CheckBox; - //newnode.CheckBoxThreeState = false; - //newnode.CheckBoxVisible = true; + List lstSrchStpTypes = fmtdata.GetSearchableSteps(); // list of searchable step types + if (lstSrchStpTypes != null && lstSrchStpTypes.Count > 0) + { + DevComponents.AdvTree.Node newnode; + advTreeStepTypes.Nodes.Clear(); + // Add a dummy node for searching Accessory Sections (MS Word sections) + //newnode = new DevComponents.AdvTree.Node(); + //newnode.Text = "Accessory Sections"; + //newnode.Selectable = true; + //newnode.CheckBoxAlignment = DevComponents.AdvTree.eCellPartAlignment.NearCenter; + //newnode.CheckBoxStyle = eCheckBoxStyle.CheckBox; + //newnode.CheckBoxThreeState = false; + //newnode.CheckBoxVisible = true; newnode = NewAdvTreeNode("Accessory Sections", true, true); - advTreeStepTypes.Nodes.Add(newnode); - foreach (StepDataRetval sdr in lstSrchStpTypes) - { - StepDataList sdl = fmtdata.StepDataList; ; - StepData sd = sdl[sdr.Index]; // get the step type record - string parentName = sd.ParentType; // this gets the parent of the this step/substep type + advTreeStepTypes.Nodes.Add(newnode); + foreach (StepDataRetval sdr in lstSrchStpTypes) + { + StepDataList sdl = fmtdata.StepDataList; ; + StepData sd = sdl[sdr.Index]; // get the step type record + string parentName = sd.ParentType; // this gets the parent of the this step/substep type //Console.WriteLine("{0} {1} - {2}", parentName,sd.Type,sdr.Name); //newnode = new DevComponents.AdvTree.Node(); @@ -244,21 +245,21 @@ namespace Volian.Controls.Library else advTreeStepTypes.Nodes.Add(newnode); } - } - advTreeStepTypes.Nodes.Sort(); // sort the first level of the tree - } - buildStepTypePannelTitle(); - } + } + advTreeStepTypes.Nodes.Sort(); // sort the first level of the tree + } + buildStepTypePannelTitle(); + } - public void advTreeProcSetsFillIn(bool blSeachTabClicked) - { - DevComponents.AdvTree.Node topnode = null; - int cntnd = 0; + public void advTreeProcSetsFillIn(bool blSeachTabClicked) + { + DevComponents.AdvTree.Node topnode = null; + int cntnd = 0; VETreeNode vtn = VETreeNode.GetFolder(1); - FolderInfo fi = vtn.VEObject as FolderInfo; - int fiCount = fi.ChildFolderCount; - advTreeProcSets.Nodes.Clear(); - lstCheckedDocVersions.Clear(); + FolderInfo fi = vtn.VEObject as FolderInfo; + int fiCount = fi.ChildFolderCount; + advTreeProcSets.Nodes.Clear(); + lstCheckedDocVersions.Clear(); topnode = new DevComponents.AdvTree.Node(); topnode.Text = "Available Procedure Sets"; topnode.Tag = fi; @@ -266,11 +267,11 @@ namespace Volian.Controls.Library - foreach (FolderInfo fic in fi.ChildFolders) - { - DevComponents.AdvTree.Node newnode = new DevComponents.AdvTree.Node(); - newnode.Text = fic.ToString(); - newnode.Tag = fic; + foreach (FolderInfo fic in fi.ChildFolders) + { + DevComponents.AdvTree.Node newnode = new DevComponents.AdvTree.Node(); + newnode.Text = fic.ToString(); + newnode.Tag = fic; //int tmp; //if (topnode == null) @@ -288,112 +289,112 @@ namespace Volian.Controls.Library // newnode.CheckBoxVisible = true; // tmp = topnode.Nodes.Add(newnode); //} - cntnd++; - if (fic.ChildFolderCount > 0) // allow for '+' for tree expansion - { - DevComponents.AdvTree.Node tnt = new DevComponents.AdvTree.Node(); - tnt.Text = "VLN_DUMMY"; - newnode.Nodes.Add(tnt); + cntnd++; + if (fic.ChildFolderCount > 0) // allow for '+' for tree expansion + { + DevComponents.AdvTree.Node tnt = new DevComponents.AdvTree.Node(); + tnt.Text = "VLN_DUMMY"; + newnode.Nodes.Add(tnt); topnode.Nodes.Add(newnode); - } - } + } + } - // if nothing was added to the tree, just put in the node above the docversions... - if (advTreeProcSets.Nodes.Count == 0) - { - cntnd++; - fi = Mydocversion.MyFolder; - topnode = new DevComponents.AdvTree.Node(); - topnode.Text = fi.ToString(); - advTreeProcSets.Nodes.Add(topnode); - topnode.Tag = fi; - } + // if nothing was added to the tree, just put in the node above the docversions... + if (advTreeProcSets.Nodes.Count == 0) + { + cntnd++; + fi = Mydocversion.MyFolder; + topnode = new DevComponents.AdvTree.Node(); + topnode.Text = fi.ToString(); + advTreeProcSets.Nodes.Add(topnode); + topnode.Tag = fi; + } - advTreeProcSets.BeforeExpand += new DevComponents.AdvTree.AdvTreeNodeCancelEventHandler(advTreeProcSets_BeforeExpand); + advTreeProcSets.BeforeExpand += new DevComponents.AdvTree.AdvTreeNodeCancelEventHandler(advTreeProcSets_BeforeExpand); - // position to the procedure set in the tree if we have a procedure open - if (Mydocversion != null) - advTreeProcSetsPreSelect(); - else - advTreeProcSets.Nodes[0].SelectedCell = advTreeProcSets.Nodes[0].Cells[0]; // select the first node - fixes cosmetic problem + // position to the procedure set in the tree if we have a procedure open + if (Mydocversion != null) + advTreeProcSetsPreSelect(); + else + advTreeProcSets.Nodes[0].SelectedCell = advTreeProcSets.Nodes[0].Cells[0]; // select the first node - fixes cosmetic problem - if (blSeachTabClicked) - cbxTextSearchText.Focus(); // set initial focus to enter search text - } + if (blSeachTabClicked) + cbxTextSearchText.Focus(); // set initial focus to enter search text + } - void advTreeProcSets_BeforeExpand(object sender, DevComponents.AdvTree.AdvTreeNodeCancelEventArgs e) - { - DevComponents.AdvTree.Node par = e.Node; - // get first child's text, if it has one & if the text is VLN_DUMMY, load children - DevComponents.AdvTree.Node tn = null; - if (par.Nodes.Count > 0) tn = par.Nodes[0]; - if (tn.Text == "VLN_DUMMY") // expand this - { - par.Nodes.Clear(); - Object obj = par.Tag; - if (!(obj is FolderInfo)) return; // should always be folderinfo on expand - FolderInfo fi = (FolderInfo)obj; - if (fi.ChildFolderCount > 0) - { - foreach (FolderInfo fic in fi.ChildFolders) - { - DevComponents.AdvTree.Node newnode = new DevComponents.AdvTree.Node(); - newnode.Text = fic.ToString(); - par.Nodes.Add(newnode); - newnode.Tag = fic; - if (fic.HasChildren) // allow for '+' for tree expansion - { - DevComponents.AdvTree.Node tnt = new DevComponents.AdvTree.Node(); - tnt.Text = "VLN_DUMMY"; - newnode.Nodes.Add(tnt); - } - } - } - else if (fi.FolderDocVersionCount > 0) - { - foreach (DocVersionInfo dv in fi.FolderDocVersions) - { + void advTreeProcSets_BeforeExpand(object sender, DevComponents.AdvTree.AdvTreeNodeCancelEventArgs e) + { + DevComponents.AdvTree.Node par = e.Node; + // get first child's text, if it has one & if the text is VLN_DUMMY, load children + DevComponents.AdvTree.Node tn = null; + if (par.Nodes.Count > 0) tn = par.Nodes[0]; + if (tn.Text == "VLN_DUMMY") // expand this + { + par.Nodes.Clear(); + Object obj = par.Tag; + if (!(obj is FolderInfo)) return; // should always be folderinfo on expand + FolderInfo fi = (FolderInfo)obj; + if (fi.ChildFolderCount > 0) + { + foreach (FolderInfo fic in fi.ChildFolders) + { + DevComponents.AdvTree.Node newnode = new DevComponents.AdvTree.Node(); + newnode.Text = fic.ToString(); + par.Nodes.Add(newnode); + newnode.Tag = fic; + if (fic.HasChildren) // allow for '+' for tree expansion + { + DevComponents.AdvTree.Node tnt = new DevComponents.AdvTree.Node(); + tnt.Text = "VLN_DUMMY"; + newnode.Nodes.Add(tnt); + } + } + } + else if (fi.FolderDocVersionCount > 0) + { + foreach (DocVersionInfo dv in fi.FolderDocVersions) + { //if ((VersionTypeEnum)dv.VersionType == VersionTypeEnum.WorkingDraft) //{ - DevComponents.AdvTree.Node newnode = new DevComponents.AdvTree.Node(); - newnode.Text = dv.ToString(); - newnode.Tag = dv; - newnode.Selectable = true; - newnode.CheckBoxAlignment = DevComponents.AdvTree.eCellPartAlignment.NearCenter; - newnode.CheckBoxStyle = eCheckBoxStyle.CheckBox; - newnode.CheckBoxThreeState = false; - newnode.CheckBoxVisible = true; - par.Nodes.Add(newnode); + DevComponents.AdvTree.Node newnode = new DevComponents.AdvTree.Node(); + newnode.Text = dv.ToString(); + newnode.Tag = dv; + newnode.Selectable = true; + newnode.CheckBoxAlignment = DevComponents.AdvTree.eCellPartAlignment.NearCenter; + newnode.CheckBoxStyle = eCheckBoxStyle.CheckBox; + newnode.CheckBoxThreeState = false; + newnode.CheckBoxVisible = true; + par.Nodes.Add(newnode); //} - } - } - } - } + } + } + } + } - private Node LookInTree(NodeCollection monkeys, string bananna) - { - Node foundit = null; - foreach(Node chimp in monkeys) - { - if (chimp.Text.Equals(bananna)) - { - foundit = chimp; - // need to select the node (cell) for it to be checked - chimp.SelectedCell = chimp.Cells[0]; - if (chimp.Nodes.Count > 0) - chimp.Expand(); - break; - } - chimp.Collapse(); - } - return foundit; - } + private Node LookInTree(NodeCollection monkeys, string bananna) + { + Node foundit = null; + foreach (Node chimp in monkeys) + { + if (chimp.Text.Equals(bananna)) + { + foundit = chimp; + // need to select the node (cell) for it to be checked + chimp.SelectedCell = chimp.Cells[0]; + if (chimp.Nodes.Count > 0) + chimp.Expand(); + break; + } + chimp.Collapse(); + } + return foundit; + } - private void advTreeProcSetsPreSelect() - { - bool keeplooking = true; - //build a stack (bread crumb trail) of where is procedure set came from within the tree. - Stack crumbs = new Stack(); + private void advTreeProcSetsPreSelect() + { + bool keeplooking = true; + //build a stack (bread crumb trail) of where is procedure set came from within the tree. + Stack crumbs = new Stack(); //crumbs.Push(Mydocversion.Name); // ex: "working draft" //crumbs.Push(Mydocversion.MyFolder.Name); // ex: "Emergency Procedures" //crumbs.Push(Mydocversion.MyFolder.MyParent.Name); // ex: "STPNOC-South Texas" @@ -410,222 +411,222 @@ namespace Volian.Controls.Library } crumbs.Push(advTreeProcSets.Nodes[0].Text); //top node of my tree - // now walk the tree, looking for the node names we saved in the stack. - NodeCollection monkeys = advTreeProcSets.Nodes; - while (keeplooking) - { - Node climber = LookInTree(monkeys,crumbs.Pop()); - keeplooking = (climber != null && crumbs.Count > 0); - if (keeplooking) - monkeys = climber.Nodes; - if (!keeplooking && climber != null) - { - climber.Checked = true; - } - } - } - - #endregion - - #region ROFST Combo Tree - private void LoadROComboTree() - { - if (_MyROFSTLookup == null) return; - cmboTreeROs.Nodes.Clear(); - this.cmboTreeROs.AdvTree.BeforeExpand += new DevComponents.AdvTree.AdvTreeNodeCancelEventHandler(this.cmboTreeROs_BeforeExpand); - cmboTreeROs.AdvTree.AfterExpand += new AdvTreeNodeEventHandler(AdvTree_AfterExpandorCollapse); - cmboTreeROs.AdvTree.AfterCollapse += new AdvTreeNodeEventHandler(AdvTree_AfterExpandorCollapse); - for (int i = 0; i < _MyROFSTLookup.myHdr.myDbs.Length; i++) - { - DevComponents.AdvTree.Node tn = new DevComponents.AdvTree.Node(); - tn.Text = _MyROFSTLookup.myHdr.myDbs[i].dbiTitle; - tn.Tag = _MyROFSTLookup.myHdr.myDbs[i]; - cmboTreeROs.Nodes.Add(tn); - AddDummyGroup(_MyROFSTLookup.myHdr.myDbs[i], tn); - } - } - void AdvTree_AfterExpandorCollapse(object sender, AdvTreeNodeEventArgs e) + // now walk the tree, looking for the node names we saved in the stack. + NodeCollection monkeys = advTreeProcSets.Nodes; + while (keeplooking) { - Node bottomNode = BottomTreeNode(cmboTreeROs.AdvTree.Nodes); - Node lastNode = cmboTreeROs.AdvTree.Nodes[cmboTreeROs.AdvTree.Nodes.Count - 1]; - int top = cmboTreeROs.AdvTree.Nodes[0].Bounds.Top; - int bottom = bottomNode.Bounds.Bottom + 5; - int hScrollBarHeight = cmboTreeROs.AdvTree.HScrollBar != null ? cmboTreeROs.AdvTree.HScrollBar.Height : 0; - bottom = bottomNode.Bounds.Bottom + 5; - cmboTreeROs.AdvTree.Size = new Size(cmboTreeROs.AdvTree.Size.Width, Math.Min(525, bottom - top + hScrollBarHeight)); - if (cmboTreeROs.AdvTree.VScrollBar != null && bottom < cmboTreeROs.AdvTree.Size.Height) + Node climber = LookInTree(monkeys, crumbs.Pop()); + keeplooking = (climber != null && crumbs.Count > 0); + if (keeplooking) + monkeys = climber.Nodes; + if (!keeplooking && climber != null) { - int yLookFor = (bottom - cmboTreeROs.AdvTree.Size.Height) + 2 * hScrollBarHeight; - Node topNode = FindTreeNodeAt(cmboTreeROs.AdvTree.Nodes, yLookFor); - if (topNode != null) - topNode.EnsureVisible(); + climber.Checked = true; } } - private Node FindTreeNodeAt(NodeCollection nodes, int y) + } + + #endregion + + #region ROFST Combo Tree + private void LoadROComboTree() + { + if (_MyROFSTLookup == null) return; + cmboTreeROs.Nodes.Clear(); + this.cmboTreeROs.AdvTree.BeforeExpand += new DevComponents.AdvTree.AdvTreeNodeCancelEventHandler(this.cmboTreeROs_BeforeExpand); + cmboTreeROs.AdvTree.AfterExpand += new AdvTreeNodeEventHandler(AdvTree_AfterExpandorCollapse); + cmboTreeROs.AdvTree.AfterCollapse += new AdvTreeNodeEventHandler(AdvTree_AfterExpandorCollapse); + for (int i = 0; i < _MyROFSTLookup.myHdr.myDbs.Length; i++) { - foreach (Node node in nodes) + DevComponents.AdvTree.Node tn = new DevComponents.AdvTree.Node(); + tn.Text = _MyROFSTLookup.myHdr.myDbs[i].dbiTitle; + tn.Tag = _MyROFSTLookup.myHdr.myDbs[i]; + cmboTreeROs.Nodes.Add(tn); + AddDummyGroup(_MyROFSTLookup.myHdr.myDbs[i], tn); + } + } + void AdvTree_AfterExpandorCollapse(object sender, AdvTreeNodeEventArgs e) + { + Node bottomNode = BottomTreeNode(cmboTreeROs.AdvTree.Nodes); + Node lastNode = cmboTreeROs.AdvTree.Nodes[cmboTreeROs.AdvTree.Nodes.Count - 1]; + int top = cmboTreeROs.AdvTree.Nodes[0].Bounds.Top; + int bottom = bottomNode.Bounds.Bottom + 5; + int hScrollBarHeight = cmboTreeROs.AdvTree.HScrollBar != null ? cmboTreeROs.AdvTree.HScrollBar.Height : 0; + bottom = bottomNode.Bounds.Bottom + 5; + cmboTreeROs.AdvTree.Size = new Size(cmboTreeROs.AdvTree.Size.Width, Math.Min(525, bottom - top + hScrollBarHeight)); + if (cmboTreeROs.AdvTree.VScrollBar != null && bottom < cmboTreeROs.AdvTree.Size.Height) + { + int yLookFor = (bottom - cmboTreeROs.AdvTree.Size.Height) + 2 * hScrollBarHeight; + Node topNode = FindTreeNodeAt(cmboTreeROs.AdvTree.Nodes, yLookFor); + if (topNode != null) + topNode.EnsureVisible(); + } + } + private Node FindTreeNodeAt(NodeCollection nodes, int y) + { + foreach (Node node in nodes) + { + if (node.Bounds.Top <= y && node.Bounds.Bottom >= y) + return node; + if (node.Bounds.Top > y) { - if (node.Bounds.Top <= y && node.Bounds.Bottom >= y) - return node; - if (node.Bounds.Top > y) + if (node.PrevNode != null && node.PrevNode.Expanded) + return FindTreeNodeAt(node.PrevNode.Nodes, y); + return node; + } + } + return null; + } + private Node BottomTreeNode(NodeCollection nodes) + { + Node bottomNode = nodes[nodes.Count - 1]; // Return bottom node in collection + if (bottomNode.Expanded) // If expanded return bottom child + return BottomTreeNode(bottomNode.Nodes); + return bottomNode; + } + private void AddDummyGroup(ROFSTLookup.rodbi rodbi, DevComponents.AdvTree.Node tn) + { + if (rodbi.children != null && rodbi.children.Length > 0) + { + DevComponents.AdvTree.Node tmp = new DevComponents.AdvTree.Node(); + tmp.Text = "VLN_DUMMY_FOR_TREE"; + tn.Nodes.Add(tmp); + } + } + private void cmboTreeROs_BeforeExpand(object sender, DevComponents.AdvTree.AdvTreeNodeCancelEventArgs e) + { + LoadChildren(e.Node); + } + + private void LoadChildren(DevComponents.AdvTree.Node tn) + { + object tag = tn.Tag; + if (tn.HasChildNodes && tn.Nodes[0].Text != "VLN_DUMMY_FOR_TREE") return; // already loaded. + if (tn.HasChildNodes && tn.Nodes[0].Text == "VLN_DUMMY_FOR_TREE") tn.Nodes[0].Remove(); + ROFSTLookup.rochild[] chld = null; + + if (tn.Tag is ROFSTLookup.rodbi) + { + ROFSTLookup.rodbi db = (ROFSTLookup.rodbi)tn.Tag; + chld = db.children; + } + else if (tn.Tag is ROFSTLookup.rochild) + { + ROFSTLookup.rochild ch = (ROFSTLookup.rochild)tn.Tag; + chld = ch.children; + } + else + { + Console.WriteLine("error - no type"); + return; + } + // if children, add dummy node + if (chld != null && chld.Length > 0) + { + ProgressBar_Initialize(chld.Length, tn.Text); + for (int i = 0; i < chld.Length; i++) + { + ProgressBar_SetValue(i); + DevComponents.AdvTree.Node tmp = null; + // if this is a group, i.e. type 0, add a dummy node + if (chld[i].type == 0 && chld[i].children == null) + //skip it. + // TODO: KBR how to handle this? + //Console.WriteLine("ro junk"); + continue; + else if (chld[i].value == null) { - if (node.PrevNode != null && node.PrevNode.Expanded) - return FindTreeNodeAt(node.PrevNode.Nodes, y); - return node; + tmp = new DevComponents.AdvTree.Node(); + tmp.Text = chld[i].title; + tmp.Tag = chld[i]; + tn.Nodes.Add(tmp); + DevComponents.AdvTree.Node sub = new DevComponents.AdvTree.Node(); + sub.Text = "VLN_DUMMY_FOR_TREE"; + tmp.Nodes.Add(sub); + } + else + { + tmp = new DevComponents.AdvTree.Node(); + tmp.Text = chld[i].title; + tmp.Tag = chld[i]; + int index = FindIndex(tn.Nodes, tmp.Text); + tn.Nodes.Insert(index, tmp); + //tn.Nodes.Add(tmp); } } - return null; } - private Node BottomTreeNode(NodeCollection nodes) + ProgressBar_Clear(); + } + + private int FindIndex(NodeCollection nodes, string value) + { + int index = 0; + foreach (Node node in nodes) { - Node bottomNode = nodes[nodes.Count - 1]; // Return bottom node in collection - if (bottomNode.Expanded) // If expanded return bottom child - return BottomTreeNode(bottomNode.Nodes); - return bottomNode; + if (GreaterValue(node.Text, value)) return index; + index++; } - private void AddDummyGroup(ROFSTLookup.rodbi rodbi, DevComponents.AdvTree.Node tn) - { - if (rodbi.children != null && rodbi.children.Length > 0) - { - DevComponents.AdvTree.Node tmp = new DevComponents.AdvTree.Node(); - tmp.Text = "VLN_DUMMY_FOR_TREE"; - tn.Nodes.Add(tmp); - } - } - private void cmboTreeROs_BeforeExpand(object sender, DevComponents.AdvTree.AdvTreeNodeCancelEventArgs e) - { - LoadChildren(e.Node); - } - - private void LoadChildren(DevComponents.AdvTree.Node tn) - { - object tag = tn.Tag; - if (tn.HasChildNodes && tn.Nodes[0].Text != "VLN_DUMMY_FOR_TREE") return; // already loaded. - if (tn.HasChildNodes && tn.Nodes[0].Text == "VLN_DUMMY_FOR_TREE") tn.Nodes[0].Remove(); - ROFSTLookup.rochild[] chld = null; - - if (tn.Tag is ROFSTLookup.rodbi) - { - ROFSTLookup.rodbi db = (ROFSTLookup.rodbi)tn.Tag; - chld = db.children; - } - else if (tn.Tag is ROFSTLookup.rochild) - { - ROFSTLookup.rochild ch = (ROFSTLookup.rochild)tn.Tag; - chld = ch.children; - } - else - { - Console.WriteLine("error - no type"); - return; - } - // if children, add dummy node - if (chld != null && chld.Length > 0) - { - ProgressBar_Initialize(chld.Length, tn.Text); - for (int i = 0; i < chld.Length; i++) - { - ProgressBar_SetValue(i); - DevComponents.AdvTree.Node tmp = null; - // if this is a group, i.e. type 0, add a dummy node - if (chld[i].type == 0 && chld[i].children == null) - //skip it. - // TODO: KBR how to handle this? - //Console.WriteLine("ro junk"); - continue; - else if (chld[i].value == null) - { - tmp = new DevComponents.AdvTree.Node(); - tmp.Text = chld[i].title; - tmp.Tag = chld[i]; - tn.Nodes.Add(tmp); - DevComponents.AdvTree.Node sub = new DevComponents.AdvTree.Node(); - sub.Text = "VLN_DUMMY_FOR_TREE"; - tmp.Nodes.Add(sub); - } - else - { - tmp = new DevComponents.AdvTree.Node(); - tmp.Text = chld[i].title; - tmp.Tag = chld[i]; - int index = FindIndex(tn.Nodes, tmp.Text); - tn.Nodes.Insert(index,tmp); - //tn.Nodes.Add(tmp); - } - } - } - ProgressBar_Clear(); - } - - private int FindIndex(NodeCollection nodes, string value) + return index; + } + private static Regex _RegExGetNumber = new Regex(@"^ *[+-]?[.,0-9]+(E[+-]?[0-9]+)?"); + private bool GreaterValue(string value1, string value2) + { + Match match1 = _RegExGetNumber.Match(value1); + Match match2 = _RegExGetNumber.Match(value2); + if (match1.Success && match2.Success) // Compare the numeric value { - int index = 0; - foreach (Node node in nodes) - { - if (GreaterValue(node.Text, value)) return index; - index++; - } - return index; + double dbl1 = double.Parse(match1.ToString()); + double dbl2 = double.Parse(match2.ToString()); + return dbl1 > dbl2; } - private static Regex _RegExGetNumber = new Regex(@"^ *[+-]?[.,0-9]+(E[+-]?[0-9]+)?"); - private bool GreaterValue(string value1, string value2) + return String.Compare(value1, value2, true) > 0; + } + + private void cmboTreeROs_SelectedIndexChanged(object sender, EventArgs e) + { + if (cmboTreeROs.SelectedIndex == -1 || cmboTreeROs.SelectedNode.Tag is ROFSTLookup.rodbi) + cbxFndUnLnkROVals.Enabled = false; + else if (cmboTreeROs.SelectedNode.Tag is ROFSTLookup.rochild) { - Match match1 = _RegExGetNumber.Match(value1); - Match match2 = _RegExGetNumber.Match(value2); - if (match1.Success && match2.Success) // Compare the numeric value - { - double dbl1 = double.Parse(match1.ToString()); - double dbl2 = double.Parse(match2.ToString()); - return dbl1 > dbl2; - } - return String.Compare( value1,value2,true) > 0; + ROFSTLookup.rochild ro = (ROFSTLookup.rochild)cmboTreeROs.SelectedNode.Tag; + cbxFndUnLnkROVals.Enabled = (ro.children == null); } + if (!cbxFndUnLnkROVals.Enabled) + cbxFndUnLnkROVals.Checked = false; + } - private void cmboTreeROs_SelectedIndexChanged(object sender, EventArgs e) - { - if (cmboTreeROs.SelectedIndex == -1 || cmboTreeROs.SelectedNode.Tag is ROFSTLookup.rodbi) - cbxFndUnLnkROVals.Enabled = false; - else if (cmboTreeROs.SelectedNode.Tag is ROFSTLookup.rochild) - { - ROFSTLookup.rochild ro = (ROFSTLookup.rochild)cmboTreeROs.SelectedNode.Tag; - cbxFndUnLnkROVals.Enabled = (ro.children == null); - } - if (!cbxFndUnLnkROVals.Enabled) - cbxFndUnLnkROVals.Checked = false; - } + private void gpFindROs_EnabledChanged(object sender, EventArgs e) + { + if (gpFindROs.Enabled) + gpFindROs.Style.BackColor = Color.Yellow; + else + gpFindROs.Style.BackColor = saveGpFindROsColor; + } - private void gpFindROs_EnabledChanged(object sender, EventArgs e) - { - if (gpFindROs.Enabled) - gpFindROs.Style.BackColor = Color.Yellow; - else - gpFindROs.Style.BackColor = saveGpFindROsColor; - } + #endregion - #endregion + #region Annotation Search - #region Annotation Search - - public void SetupAnnotationSearch(AnnotationDetails annotationDetails, DisplayTabControl tc) - { - _AnnotationDetails = annotationDetails; - List annoTypes = new List(); - annoTypes.Add(new AnnotationTypeSearch("All Annotations","")); - AnnotationTypeInfoList annoList = AnnotationTypeInfoList.Get(); - foreach (AnnotationTypeInfo ati in annoList) - annoTypes.Add(new AnnotationTypeSearch(ati.Name, ati.TypeID.ToString())); - cbxAnnoTypes.DisplayMember = "Name"; - cbxAnnoTypes.DataSource = annoTypes; - lbSrchResults.MouseMove += new MouseEventHandler(lbSrchResults_MouseMove); - _TabControl = tc; - } + public void SetupAnnotationSearch(AnnotationDetails annotationDetails, DisplayTabControl tc) + { + _AnnotationDetails = annotationDetails; + List annoTypes = new List(); + annoTypes.Add(new AnnotationTypeSearch("All Annotations", "")); + AnnotationTypeInfoList annoList = AnnotationTypeInfoList.Get(); + foreach (AnnotationTypeInfo ati in annoList) + annoTypes.Add(new AnnotationTypeSearch(ati.Name, ati.TypeID.ToString())); + cbxAnnoTypes.DisplayMember = "Name"; + cbxAnnoTypes.DataSource = annoTypes; + lbSrchResults.MouseMove += new MouseEventHandler(lbSrchResults_MouseMove); + _TabControl = tc; + } - private void cbxTextSearchAnnotation_Leave(object sender, EventArgs e) - { + private void cbxTextSearchAnnotation_Leave(object sender, EventArgs e) + { InsertAnnotationSearchCriteria(); - } + } private void InsertAnnotationSearchCriteria() { @@ -637,201 +638,216 @@ namespace Volian.Controls.Library } } - private void gpSrchAnnoText_EnabledChanged(object sender, EventArgs e) - { - if (gpSrchAnnoText.Enabled) - { - gpSrchAnnoText.Style.BackColor = Color.Yellow; - cbxTextSearchAnnotation.Focus(); - } - else - gpSrchAnnoText.Style.BackColor = saveGpSrchAnnoTextColor; - } + private void gpSrchAnnoText_EnabledChanged(object sender, EventArgs e) + { + if (gpSrchAnnoText.Enabled) + { + gpSrchAnnoText.Style.BackColor = Color.Yellow; + cbxTextSearchAnnotation.Focus(); + } + else + gpSrchAnnoText.Style.BackColor = saveGpSrchAnnoTextColor; + } - #endregion + #endregion - #region ProgressBar - private void ProgressBar_Initialize(int max, string desc) - { - if (_ProgressBar != null) - { - _ProgressBar.Maximum = max; - _ProgressBar.Text = desc; - _ProgressBar.TextVisible = true; - } - } + #region ProgressBar + private void ProgressBar_Initialize(int max, string desc) + { + if (_ProgressBar != null) + { + _ProgressBar.Maximum = max; + _ProgressBar.Text = desc; + _ProgressBar.TextVisible = true; + } + } - private void ProgressBar_SetValue(int curval) - { - if (_ProgressBar != null) - _ProgressBar.Value = curval; - } + private void ProgressBar_SetValue(int curval) + { + if (_ProgressBar != null) + _ProgressBar.Value = curval; + } - private void ProgressBar_Clear() - { - if (_ProgressBar != null) - { - _ProgressBar.Text = ""; - _ProgressBar.Maximum = 0; - _ProgressBar.Value = 0; - _ProgressBar.TextVisible = false; - } - } - #endregion + private void ProgressBar_Clear() + { + if (_ProgressBar != null) + { + _ProgressBar.Text = ""; + _ProgressBar.Maximum = 0; + _ProgressBar.Value = 0; + _ProgressBar.TextVisible = false; + } + } + #endregion - #region Search Results - private void DisplayResults() - { - _LoadingList = true; - lbSrchResults.DisplayMember = _DisplayMember; - if (_SearchResults != null) - { - if (cbSorted.Checked) - { - Csla.SortedBindingList sortedResults = new Csla.SortedBindingList(_SearchResults); - sortedResults.ApplySort(_DisplayMember, ListSortDirection.Ascending); - lbSrchResults.DataSource = sortedResults; - } - else - lbSrchResults.DataSource = _SearchResults; - grpPanSearchResults.Text = string.Format("Search Results Found: {0}", _SearchResults.Count); - grpPanSearchResults.Style.BackColor = Color.LightGreen;// Color.YellowGreen; Color.DarkSeaGreen; - } - else - { - grpPanSearchResults.Text = "Search Results"; - grpPanSearchResults.Style.BackColor = saveGrpPanSearchResults; - } - // Turn Print and Results display style on/off based on whether there are search results - if (lbSrchResults.Items.Count > 0) - { - btnPrnSrchRslts.Enabled = true; - btnClearSearchResults.Enabled = true; - btnCopySearchResults.Enabled = true; - cmbResultsStyle.Enabled = true; - } - else - { - btnPrnSrchRslts.Enabled = false; - btnClearSearchResults.Enabled = false; - btnCopySearchResults.Enabled = false; - cmbResultsStyle.Enabled = false; - } + #region Search Results + private void DisplayResults() + { + _LoadingList = true; + lbSrchResults.DisplayMember = _DisplayMember; + if (_SearchResults != null) + { + if (cbSorted.Checked) + { + Csla.SortedBindingList sortedResults = new Csla.SortedBindingList(_SearchResults); + sortedResults.ApplySort(_DisplayMember, ListSortDirection.Ascending); + lbSrchResults.DataSource = sortedResults; + } + else + //PopulatelbSrcResults(_SearchResults); + lbSrchResults.DataSource = _SearchResults; + grpPanSearchResults.Text = string.Format("Search Results Found: {0}", _SearchResults.Count); + grpPanSearchResults.Style.BackColor = Color.LightGreen;// Color.YellowGreen; Color.DarkSeaGreen; + } + else + { + grpPanSearchResults.Text = "Search Results"; + grpPanSearchResults.Style.BackColor = saveGrpPanSearchResults; + } + // Turn Print and Results display style on/off based on whether there are search results + if (lbSrchResults.Items.Count > 0) + { + btnPrnSrchRslts.Enabled = true; + btnClearSearchResults.Enabled = true; + btnCopySearchResults.Enabled = true; + cmbResultsStyle.Enabled = true; + } + else + { + btnPrnSrchRslts.Enabled = false; + btnClearSearchResults.Enabled = false; + btnCopySearchResults.Enabled = false; + cmbResultsStyle.Enabled = false; + } - lbSrchResults.SelectedIndex = -1; + lbSrchResults.SelectedIndex = -1; LastResultsMouseOverIndex = -1; _LoadingList = false; - } - //public void UpdateAnnotationSearchResults() - //{ - // //AnnotationTypeInfo ati = cbxAnnoTypes.SelectedValue as AnnotationTypeInfo; - // //_LoadingList = true; - // //lbSrchResults.DataSource = ati.AnnotationTypeAnnotations; - // //lbSrchResults.SelectedIndex = -1; - // //LastResultsMouseOverIndex = -1; - // //if (lbSrchResults.Items.Count > 0) - // // btnPrnSrchRslts.Enabled = true; - // //else - // // btnPrnSrchRslts.Enabled = false; - // //_LoadingList = false; - //} - private void lbSrchResults_MouseMove(object sender, MouseEventArgs e) - { - int ResultsMouseOverIndex = lbSrchResults.IndexFromPoint(e.Location); - if (ResultsMouseOverIndex != -1 && ResultsMouseOverIndex != LastResultsMouseOverIndex) - { - ItemInfo ii = lbSrchResults.Items[ResultsMouseOverIndex] as ItemInfo; + } + + //private void PopulatelbSrcResults(ICollection _SearchResults) + //{ + // foreach (ItemInfo ii in _SearchResults) + // { + // lbSrchResults.Items.Add(ii); + // } + // Console.WriteLine("{0} Populate", DateTime.Now); + //} + //public void UpdateAnnotationSearchResults() + //{ + // //AnnotationTypeInfo ati = cbxAnnoTypes.SelectedValue as AnnotationTypeInfo; + // //_LoadingList = true; + // //lbSrchResults.DataSource = ati.AnnotationTypeAnnotations; + // //lbSrchResults.SelectedIndex = -1; + // //LastResultsMouseOverIndex = -1; + // //if (lbSrchResults.Items.Count > 0) + // // btnPrnSrchRslts.Enabled = true; + // //else + // // btnPrnSrchRslts.Enabled = false; + // //_LoadingList = false; + //} + private void lbSrchResults_MouseMove(object sender, MouseEventArgs e) + { + int ResultsMouseOverIndex = lbSrchResults.IndexFromPoint(e.Location); + if (ResultsMouseOverIndex != -1 && ResultsMouseOverIndex != LastResultsMouseOverIndex) + { + ItemInfo ii = lbSrchResults.Items[ResultsMouseOverIndex] as ItemInfo; if (cmbResultsStyle.Text == "Step Path") toolTip1.SetToolTip(lbSrchResults, ii.DisplayText); // display the text in a tooltip else - toolTip1.SetToolTip(lbSrchResults, ii.Path); // display location of corresponding procedure text in a tooltip + toolTip1.SetToolTip(lbSrchResults, ii.Path); // display location of corresponding procedure text in a tooltip LastResultsMouseOverIndex = ResultsMouseOverIndex; - } - } - private void lbSrchResults_SelectedValueChanged(object sender, EventArgs e) - { - if (_LoadingList) return; - // If the list is being refreshed, then set the selection index to -1 (no selection) - if (_SearchResults.RefreshingList && lbSrchResults.SelectedIndex != -1) - lbSrchResults.SelectedIndex = -1; - else - { - _ItemInfo = lbSrchResults.SelectedValue as ItemInfo; - if ((tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[1]) && (_ItemInfo != null)) - { - _AnnotationDetails.CurrentAnnotation = AnnotationInfo.Get(_ItemInfo.SearchAnnotationID); - if (_AnnotationDetails.CurrentAnnotation != null) - _TabControl.OpenItem(_AnnotationDetails.CurrentAnnotation.MyItem); // open the corresponding procedure text - _AnnotationDetails.FindCurrentAnnotation(); // position to corresponding row in annotation grid - } - else - { - if (_ItemInfo != null) - { - _OpenDocFromSearch = true; - DisplayTabItem dti = _TabControl.OpenItem(_ItemInfo); // open the corresponding procedure text - if (dti.MyDSOTabPanel != null) - dti.MyDSOTabPanel.SearchString = _strSrchText; // this.cbxTextSearchText.Text; - if (dti.MyStepTabPanel != null) - dti.MyStepTabPanel.SearchString = _strSrchText; // this.cbxTextSearchText.Text; - _OpenDocFromSearch = false; - } - } - } - } - - private void cmbResultsStyle_SelectedValueChanged(object sender, EventArgs e) - { - switch (cmbResultsStyle.Text) - { - case "Document Path": - _DisplayMember = "SearchDVPath"; - break; - case "Step Path": - _DisplayMember = "ShortSearchPath"; - break; - case "Annotation Text": - _DisplayMember = "SearchAnnotationText"; - break; - case "Document Text": - _DisplayMember = "DisplayText"; - break; - default: - _DisplayMember = "SearchPath"; - break; - } - DisplayResults(); - } - - private void cbSorted_CheckedChanged(object sender, EventArgs e) - { - DisplayResults(); - } - #endregion - - #region Search - private string DVISearchList + } + } + private void lbSrchResults_SelectedValueChanged(object sender, EventArgs e) + { + if (_LoadingList) return; + // If the list is being refreshed, then set the selection index to -1 (no selection) + if (_SearchResults.RefreshingList && lbSrchResults.SelectedIndex != -1) + lbSrchResults.SelectedIndex = -1; + else { - get + _ItemInfo = lbSrchResults.SelectedValue as ItemInfo; + if ((tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[1]) && (_ItemInfo != null)) { - // append list of document versions to search - if (lstCheckedDocVersions.Count > 0) + _AnnotationDetails.CurrentAnnotation = AnnotationInfo.Get(_ItemInfo.SearchAnnotationID); + if (_AnnotationDetails.CurrentAnnotation != null) + _TabControl.OpenItem(_AnnotationDetails.CurrentAnnotation.MyItem); // open the corresponding procedure text + _AnnotationDetails.FindCurrentAnnotation(); // position to corresponding row in annotation grid + } + else + { + if (_ItemInfo != null) { - string strRtnStr = ""; - // get list of doc versions to search - foreach (DocVersionInfo dvi in lstCheckedDocVersions) - { - strRtnStr += string.Format(",{0}", dvi.VersionID.ToString()); - } - return strRtnStr.Substring(1); + _OpenDocFromSearch = true; + DisplayTabItem dti = _TabControl.OpenItem(_ItemInfo); // open the corresponding procedure text + if (dti.MyDSOTabPanel != null) + dti.MyDSOTabPanel.SearchString = _strSrchText; // this.cbxTextSearchText.Text; + if (dti.MyStepTabPanel != null) + dti.MyStepTabPanel.SearchString = _strSrchText; // this.cbxTextSearchText.Text; + _OpenDocFromSearch = false; } - return ""; } } - private string TypeSearchList + } + + private void cmbResultsStyle_SelectedValueChanged(object sender, EventArgs e) + { + switch (cmbResultsStyle.Text) { - get + case "Document Path": + _DisplayMember = "SearchDVPath"; + break; + case "Step Path": + _DisplayMember = "ShortSearchPath"; + break; + case "Annotation Text": + _DisplayMember = "SearchAnnotationText"; + break; + case "Document Text": + _DisplayMember = "DisplayText"; + break; + default: + _DisplayMember = "SearchPath"; + break; + } + DisplayResults(); + } + + private void cbSorted_CheckedChanged(object sender, EventArgs e) + { + Cursor savcursor = Cursor; + Application.DoEvents(); + Cursor = Cursors.WaitCursor; + Console.WriteLine(string.Format("Checked = {0}", cbSorted.Checked)); + DisplayResults(); + Cursor = savcursor; + } + #endregion + + #region Search + private string DVISearchList + { + get + { + // append list of document versions to search + if (lstCheckedDocVersions.Count > 0) + { + string strRtnStr = ""; + // get list of doc versions to search + foreach (DocVersionInfo dvi in lstCheckedDocVersions) + { + strRtnStr += string.Format(",{0}", dvi.VersionID.ToString()); + } + return strRtnStr.Substring(1); + } + return ""; + } + } + private string TypeSearchList + { + get { // append list of step types to search if (lstCheckedStepTypes.Count > 0) @@ -851,106 +867,106 @@ namespace Volian.Controls.Library } return ""; } - } - private string TextSearchString + } + private string TextSearchString + { + get { - get - { - if (tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[0]) - return ConvertSpecialChars(cbxTextSearchText.Text);//string.Format("{0}", cbxTextSearchText.Text); - return ""; - } + if (tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[0]) + return ConvertSpecialChars(cbxTextSearchText.Text);//string.Format("{0}", cbxTextSearchText.Text); + return ""; } - private string AnnotationSearchType + } + private string AnnotationSearchType + { + get { - get - { - if (tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[1]) - return ((AnnotationTypeSearch)cbxAnnoTypes.SelectedValue).ID; - return ""; - } + if (tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[1]) + return ((AnnotationTypeSearch)cbxAnnoTypes.SelectedValue).ID; + return ""; } - private string ROSearchList + } + private string ROSearchList + { + get { - get - { - if (tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[2]) - { // RO Search - ROFSTLookup.rochild[] chld = null; - ROFSTLookup.rochild ch; - if (cmboTreeROs.SelectedNode != null) + if (tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[2]) + { // RO Search + ROFSTLookup.rochild[] chld = null; + ROFSTLookup.rochild ch; + if (cmboTreeROs.SelectedNode != null) + { + if (cbxFndUnLnkROVals.Enabled && cbxFndUnLnkROVals.Checked) { - if (cbxFndUnLnkROVals.Enabled && cbxFndUnLnkROVals.Checked) + ch = (ROFSTLookup.rochild)cmboTreeROs.SelectedNode.Tag; + _strSrchText = string.Format("{0}", ch.value); + return _strSrchText; // append RO Value text to search + } + else + { + if (cmboTreeROs.SelectedNode.Tag is ROFSTLookup.rodbi) + { + ROFSTLookup.rodbi db = (ROFSTLookup.rodbi)cmboTreeROs.SelectedNode.Tag; + return _MyRODbID.ToString() + ":" + string.Format("{0}", db.dbiID.ToString("D4")); + } + else if (cmboTreeROs.SelectedNode.Tag is ROFSTLookup.rochild) { ch = (ROFSTLookup.rochild)cmboTreeROs.SelectedNode.Tag; - _strSrchText = string.Format("{0}", ch.value); - return _strSrchText; // append RO Value text to search - } - else - { - if (cmboTreeROs.SelectedNode.Tag is ROFSTLookup.rodbi) - { - ROFSTLookup.rodbi db = (ROFSTLookup.rodbi)cmboTreeROs.SelectedNode.Tag; - return _MyRODbID.ToString() + ":" + string.Format("{0}", db.dbiID.ToString("D4")); - } - else if (cmboTreeROs.SelectedNode.Tag is ROFSTLookup.rochild) - { - ch = (ROFSTLookup.rochild)cmboTreeROs.SelectedNode.Tag; - chld = ch.children; - // build a list of ROs to search - return _MyRODbID.ToString() + ":" + GetROsToSearch(chld); - //if (strRtnStr.EndsWith(",")) - // strRtnStr = strRtnStr.Substring(0, strRtnStr.Length - 1); - } + chld = ch.children; + // build a list of ROs to search + return _MyRODbID.ToString() + ":" + GetROsToSearch(chld); + //if (strRtnStr.EndsWith(",")) + // strRtnStr = strRtnStr.Substring(0, strRtnStr.Length - 1); } } } - return ""; + } + return ""; + } + } + + private string ConvertSpecialChars(string str) + { + string rtnVal = str; + rtnVal = rtnVal.Replace("\u00A0", @"\u160?"); //convert \u00A0 to a hard space (\u00A0 shows as a blank in the search text field) + rtnVal = rtnVal.Replace("\n", ""); + FormatData fmtdata = _MyDocVersion.ActiveFormat.PlantFormat.FormatData; + SymbolList sl = fmtdata.SymbolList; + if (sl != null) + { + foreach (Symbol sym in sl) + { + string rplace = string.Format(sym.Unicode < 256 ? @"\'{0:X2}" : @"\u{0}", sym.Unicode); + rtnVal = rtnVal.Replace(((char)sym.Unicode).ToString(), rplace); } } + return rtnVal; + } - private string ConvertSpecialChars(string str) - { - string rtnVal = str; - rtnVal = rtnVal.Replace("\u00A0", @"\u160?"); //convert \u00A0 to a hard space (\u00A0 shows as a blank in the search text field) - rtnVal = rtnVal.Replace("\n", ""); - FormatData fmtdata = _MyDocVersion.ActiveFormat.PlantFormat.FormatData; - SymbolList sl = fmtdata.SymbolList; - if (sl != null) - { - foreach (Symbol sym in sl) - { - string rplace = string.Format(sym.Unicode < 256?@"\'{0:X2}" : @"\u{0}", sym.Unicode); - rtnVal = rtnVal.Replace(((char)sym.Unicode).ToString(), rplace); - } - } - return rtnVal; - } + private string GetROsToSearch(ROFSTLookup.rochild[] chld) + { + string rtnstr = ""; + if (chld == null) // get a single ROID + { + ROFSTLookup.rochild ro = (ROFSTLookup.rochild)cmboTreeROs.SelectedNode.Tag; + rtnstr += string.Format("{0}", ro.roid); + } + else + { // spin through the child list and get the ROIDs. + // if the child has children, then call this function recursivly + foreach (ROFSTLookup.rochild roc in chld) + { + if (roc.children != null) + rtnstr += GetROsToSearch(roc.children); + else + rtnstr += string.Format("{0},", roc.roid); + } + } + return rtnstr; + } - private string GetROsToSearch(ROFSTLookup.rochild[] chld) - { - string rtnstr =""; - if (chld == null) // get a single ROID - { - ROFSTLookup.rochild ro = (ROFSTLookup.rochild)cmboTreeROs.SelectedNode.Tag; - rtnstr += string.Format("{0}", ro.roid); - } - else - { // spin through the child list and get the ROIDs. - // if the child has children, then call this function recursivly - foreach (ROFSTLookup.rochild roc in chld) - { - if (roc.children != null) - rtnstr += GetROsToSearch(roc.children); - else - rtnstr += string.Format("{0},", roc.roid); - } - } - return rtnstr; - } - - private void btnSearch_Click(object sender, EventArgs e) - { + private void btnSearch_Click(object sender, EventArgs e) + { DateTime start = DateTime.Now; Cursor savcursor = Cursor; try @@ -990,10 +1006,10 @@ namespace Volian.Controls.Library //} //else //{ - ReportTitle = string.Format("PROMS2010 - {0} Search for '{1}'",cbxBooleanTxtSrch.Checked ? "Boolean" : "Text", TextSearchString); - SearchString = TextSearchString; - SearchResults = ItemInfoList.GetListFromTextSearch(DVISearchList, TypeSearchList, TextSearchString, cbxBooleanTxtSrch.Checked ? 2 : cbxCaseSensitive.Checked ? 1 : 0, cbxIncROTextSrch.Checked ? ItemSearchIncludeLinks.Value : ItemSearchIncludeLinks.Nothing, includeRTFformat, includeSpecialChars); - cmbResultsStyle.SelectedIndex = 3; // display step text in results + ReportTitle = string.Format("PROMS2010 - {0} Search for '{1}'", cbxBooleanTxtSrch.Checked ? "Boolean" : "Text", TextSearchString); + SearchString = TextSearchString; + SearchResults = ItemInfoList.GetListFromTextSearch(DVISearchList, TypeSearchList, TextSearchString, cbxBooleanTxtSrch.Checked ? 2 : cbxCaseSensitive.Checked ? 1 : 0, cbxIncROTextSrch.Checked ? ItemSearchIncludeLinks.Value : ItemSearchIncludeLinks.Nothing, includeRTFformat, includeSpecialChars); + cmbResultsStyle.SelectedIndex = 3; // display step text in results //} } } @@ -1039,345 +1055,346 @@ namespace Volian.Controls.Library { Cursor = savcursor; } - if (VlnSettings.DebugMode) - MessageBox.Show(string.Format("{0} Milliseconds", TimeSpan.FromTicks(DateTime.Now.Ticks - start.Ticks).TotalMilliseconds)); + Console.WriteLine("{0} Milliseconds", TimeSpan.FromTicks(DateTime.Now.Ticks - start.Ticks).TotalMilliseconds); + //if (VlnSettings.DebugMode) + // MessageBox.Show(string.Format("{0} Milliseconds", TimeSpan.FromTicks(DateTime.Now.Ticks - start.Ticks).TotalMilliseconds)); } - private void cbxTextSearchText_Leave(object sender, EventArgs e) - { + private void cbxTextSearchText_Leave(object sender, EventArgs e) + { InsertSearchCriteria(); - } + } - private void InsertSearchCriteria() + private void InsertSearchCriteria() + { + if (!cbxTextSearchText.Text.Equals(string.Empty)) { - if (!cbxTextSearchText.Text.Equals(string.Empty)) - { - string tstr = cbxTextSearchText.Text; - // if its already exists in the list - remove it - if (cbxTextSearchText.Items.Contains(tstr)) - cbxTextSearchText.Items.Remove(tstr); - // Add the new criteria to the top of the list - cbxTextSearchText.Items.Insert(0, tstr); - // set the text to the new criteria - cbxTextSearchText.Text = tstr; - // If there are more than 10 remove the last one - if (cbxTextSearchText.Items.Count > 10) - cbxTextSearchText.Items.RemoveAt(10); - } + string tstr = cbxTextSearchText.Text; + // if its already exists in the list - remove it + if (cbxTextSearchText.Items.Contains(tstr)) + cbxTextSearchText.Items.Remove(tstr); + // Add the new criteria to the top of the list + cbxTextSearchText.Items.Insert(0, tstr); + // set the text to the new criteria + cbxTextSearchText.Text = tstr; + // If there are more than 10 remove the last one + if (cbxTextSearchText.Items.Count > 10) + cbxTextSearchText.Items.RemoveAt(10); } + } - private void cbxSrchTypeUsage_CheckedChanged(object sender, EventArgs e) - { - gpSrchText.Enabled = !cbxSrchTypeUsage.Checked; - if (!cbxSrchTypeUsage.Checked) - xpStepTypes.TitleStyle.BackColor1.Color = saveXpStepTypeTitleColor; - else - { - xpStepTypes.Expanded = true; - if (lstCheckedStepTypes.Count == 0) - xpStepTypes.TitleStyle.BackColor1.Color = Color.Crimson; - advTreeStepTypes.Focus(); + private void cbxSrchTypeUsage_CheckedChanged(object sender, EventArgs e) + { + gpSrchText.Enabled = !cbxSrchTypeUsage.Checked; + if (!cbxSrchTypeUsage.Checked) + xpStepTypes.TitleStyle.BackColor1.Color = saveXpStepTypeTitleColor; + else + { + xpStepTypes.Expanded = true; + if (lstCheckedStepTypes.Count == 0) + xpStepTypes.TitleStyle.BackColor1.Color = Color.Crimson; + advTreeStepTypes.Focus(); - } - } + } + } - private void rbtnSrchTxt_CheckedChanged(object sender, EventArgs e) - { - if (rbtnSrchTxt.Checked) - cbxTextSearchText.Focus(); + private void rbtnSrchTxt_CheckedChanged(object sender, EventArgs e) + { + if (rbtnSrchTxt.Checked) + cbxTextSearchText.Focus(); - } + } - private void gpSrchText_EnabledChanged(object sender, EventArgs e) - { - if (gpSrchText.Enabled) - gpSrchText.Style.BackColor = cbxBooleanTxtSrch.Checked?Color.Orange: Color.Yellow; - else - gpSrchText.Style.BackColor = saveGpSrchTextColor; - } + private void gpSrchText_EnabledChanged(object sender, EventArgs e) + { + if (gpSrchText.Enabled) + gpSrchText.Style.BackColor = cbxBooleanTxtSrch.Checked ? Color.Orange : Color.Yellow; + else + gpSrchText.Style.BackColor = saveGpSrchTextColor; + } - private void tabStepTypeSearch_Click(object sender, EventArgs e) - { + private void tabStepTypeSearch_Click(object sender, EventArgs e) + { if (rbtnSrchTxt.Checked) { cbxTextSearchText.Focus(); cbxBooleanTxtSrch_CheckedChanged(sender, e); } - } + } - private void ProcessEnterKey(object sender, KeyPressEventArgs e) - { - if (e.KeyChar == '\r') // enter key pressed - { - e.Handled = true; - btnSearch_Click(sender, e); + private void ProcessEnterKey(object sender, KeyPressEventArgs e) + { + if (e.KeyChar == '\r') // enter key pressed + { + e.Handled = true; + btnSearch_Click(sender, e); if (sender == cbxTextSearchText) InsertSearchCriteria(); else InsertAnnotationSearchCriteria(); } - } -#endregion + } + #endregion - #region ProcSetSelection - private int _MyRODbID; - private void advTreeProcSets_AfterCheck(object sender, DevComponents.AdvTree.AdvTreeCellEventArgs e) - { - DevComponents.AdvTree.Node n = advTreeProcSets.SelectedNode; - if (n.Checked) - { - n.Style = DevComponents.AdvTree.NodeStyles.Apple; - lstCheckedDocVersions.Add((DocVersionInfo) n.Tag); - if (lstCheckedDocVersions.Count == 1)//Mydocversion == null) - { - Mydocversion = (DocVersionInfo)n.Tag; - advTreeStepTypesFillIn(); - } - } - else - { - n.Style = null; - lstCheckedDocVersions.Remove((DocVersionInfo)n.Tag); - if (lstCheckedDocVersions.Count == 1) - { - if (Mydocversion != lstCheckedDocVersions[0]) - { - Mydocversion = lstCheckedDocVersions[0]; - advTreeStepTypesFillIn(); - } - } - else - { - if (lstCheckedDocVersions.Count == 0) - Mydocversion = null; - // do this if either none, or more than one procedure set selected - advTreeStepTypes.Nodes.Clear(); - lstCheckedStepTypes.Clear(); - Node newnode = new DevComponents.AdvTree.Node(); - newnode.Text = "....select a procedure set for types to appear..."; - advTreeStepTypes.Nodes.Add(newnode); - buildStepTypePannelTitle(); - } - } + #region ProcSetSelection + private int _MyRODbID; + private void advTreeProcSets_AfterCheck(object sender, DevComponents.AdvTree.AdvTreeCellEventArgs e) + { + DevComponents.AdvTree.Node n = advTreeProcSets.SelectedNode; + if (n.Checked) + { + n.Style = DevComponents.AdvTree.NodeStyles.Apple; + lstCheckedDocVersions.Add((DocVersionInfo)n.Tag); + if (lstCheckedDocVersions.Count == 1)//Mydocversion == null) + { + Mydocversion = (DocVersionInfo)n.Tag; + advTreeStepTypesFillIn(); + } + } + else + { + n.Style = null; + lstCheckedDocVersions.Remove((DocVersionInfo)n.Tag); + if (lstCheckedDocVersions.Count == 1) + { + if (Mydocversion != lstCheckedDocVersions[0]) + { + Mydocversion = lstCheckedDocVersions[0]; + advTreeStepTypesFillIn(); + } + } + else + { + if (lstCheckedDocVersions.Count == 0) + Mydocversion = null; + // do this if either none, or more than one procedure set selected + advTreeStepTypes.Nodes.Clear(); + lstCheckedStepTypes.Clear(); + Node newnode = new DevComponents.AdvTree.Node(); + newnode.Text = "....select a procedure set for types to appear..."; + advTreeStepTypes.Nodes.Add(newnode); + buildStepTypePannelTitle(); + } + } //// Enable the RO combo list only if at least one procedure set node //// is selected //cmboTreeROs.Enabled = (lstCheckedDocVersions.Count > 0); //gpFindROs.Enabled = cmboTreeROs.Enabled; - SetupContextMenu(); + SetupContextMenu(); - buildSetToSearchPanelTitle(); - } + buildSetToSearchPanelTitle(); + } - - private void xpSetToSearch_ExpandedChanged(object sender, ExpandedChangeEventArgs e) - { - buildSetToSearchPanelTitle(); - } - private void buildSetToSearchPanelTitle() - { - if (lstCheckedDocVersions.Count == 0) - { - xpSetToSearch.Expanded = true; - xpSetToSearch.TitleStyle.BackColor1.Color = Color.Crimson; - btnSearch.Enabled = false; - tabSearchTypes.Enabled = false; // disable all the search tabs - //if (xpSetToSearch.Expanded) - xpSetToSearch.TitleText = "Select Procedure Sets to Search"; - //else - // xpSetToSearch.TitleText = "Click Here to Select Procedure Sets"; + private void xpSetToSearch_ExpandedChanged(object sender, ExpandedChangeEventArgs e) + { + buildSetToSearchPanelTitle(); + } - //xpSetToSearch.TitleStyle.BackColor1.Color = saveXpSetToSearchColor; - } - else //if (lstCheckedDocVersions.Count > 0) - { - // display the number of selected procedure sets whether pannel is expanded or not - xpSetToSearch.TitleText = string.Format("{0} Procedure Sets Selected", lstCheckedDocVersions.Count); - xpSetToSearch.TitleStyle.BackColor1.Color = Color.PapayaWhip; - btnSearch.Enabled = true; + private void buildSetToSearchPanelTitle() + { + if (lstCheckedDocVersions.Count == 0) + { + xpSetToSearch.Expanded = true; + xpSetToSearch.TitleStyle.BackColor1.Color = Color.Crimson; + btnSearch.Enabled = false; + tabSearchTypes.Enabled = false; // disable all the search tabs + //if (xpSetToSearch.Expanded) + xpSetToSearch.TitleText = "Select Procedure Sets to Search"; + //else + // xpSetToSearch.TitleText = "Click Here to Select Procedure Sets"; + + //xpSetToSearch.TitleStyle.BackColor1.Color = saveXpSetToSearchColor; + } + else //if (lstCheckedDocVersions.Count > 0) + { + // display the number of selected procedure sets whether pannel is expanded or not + xpSetToSearch.TitleText = string.Format("{0} Procedure Sets Selected", lstCheckedDocVersions.Count); + xpSetToSearch.TitleStyle.BackColor1.Color = Color.PapayaWhip; + btnSearch.Enabled = true; tabSearchTypes.Enabled = true; // enable all the search tabs } - } + } - private void advTreeProcSets_AfterNodeSelect(object sender, AdvTreeNodeEventArgs e) - { - DevComponents.AdvTree.Node n = advTreeProcSets.SelectedNode; - if (advTreeStepTypes.Nodes.Count == 1 && n.Checked) - { - Mydocversion = (DocVersionInfo)n.Tag; - advTreeStepTypesFillIn(); - } - } + private void advTreeProcSets_AfterNodeSelect(object sender, AdvTreeNodeEventArgs e) + { + DevComponents.AdvTree.Node n = advTreeProcSets.SelectedNode; + if (advTreeStepTypes.Nodes.Count == 1 && n.Checked) + { + Mydocversion = (DocVersionInfo)n.Tag; + advTreeStepTypesFillIn(); + } + } - #endregion + #endregion - #region StepTypeSelection - private void advTreeStepTypes_AfterCheck(object sender, DevComponents.AdvTree.AdvTreeCellEventArgs e) - { - xpStepTypes.TitleStyle.BackColor1.Color = saveXpStepTypeTitleColor; - DevComponents.AdvTree.Node n = advTreeStepTypes.SelectedNode; - StepData sd = (StepData)n.Tag; - if (n.Checked) - { - n.Style = DevComponents.AdvTree.NodeStyles.Apple; - if (sd == null) - lstCheckedStepTypes.Add(0); //use zero to identify attachment search - else - lstCheckedStepTypes.Add((int)sd.Index); - } - else - { - n.Style = null; - if (sd == null) - lstCheckedStepTypes.Remove(0); - else - lstCheckedStepTypes.Remove((int)sd.Index); - } - buildStepTypePannelTitle(); + #region StepTypeSelection + private void advTreeStepTypes_AfterCheck(object sender, DevComponents.AdvTree.AdvTreeCellEventArgs e) + { + xpStepTypes.TitleStyle.BackColor1.Color = saveXpStepTypeTitleColor; + DevComponents.AdvTree.Node n = advTreeStepTypes.SelectedNode; + StepData sd = (StepData)n.Tag; + if (n.Checked) + { + n.Style = DevComponents.AdvTree.NodeStyles.Apple; + if (sd == null) + lstCheckedStepTypes.Add(0); //use zero to identify attachment search + else + lstCheckedStepTypes.Add((int)sd.Index); + } + else + { + n.Style = null; + if (sd == null) + lstCheckedStepTypes.Remove(0); + else + lstCheckedStepTypes.Remove((int)sd.Index); + } + buildStepTypePannelTitle(); - } + } - private void xpStepTypes_ExpandedChanged(object sender, ExpandedChangeEventArgs e) - { - buildStepTypePannelTitle(); - } + private void xpStepTypes_ExpandedChanged(object sender, ExpandedChangeEventArgs e) + { + buildStepTypePannelTitle(); + } - private void buildStepTypePannelTitle() - { - if (lstCheckedStepTypes.Count == 0) - { - if (xpStepTypes.Expanded) - { - xpStepTypes.TitleText = "Select Types To Search"; - advTreeStepTypes.Focus(); - advTreeStepTypes.Nodes[0].SelectedCell = advTreeStepTypes.Nodes[0].Cells[0]; - } - else - xpStepTypes.TitleText = "Click Here To Search By Types"; + private void buildStepTypePannelTitle() + { + if (lstCheckedStepTypes.Count == 0) + { + if (xpStepTypes.Expanded) + { + xpStepTypes.TitleText = "Select Types To Search"; + advTreeStepTypes.Focus(); + advTreeStepTypes.Nodes[0].SelectedCell = advTreeStepTypes.Nodes[0].Cells[0]; + } + else + xpStepTypes.TitleText = "Click Here To Search By Types"; - xpStepTypes.TitleStyle.BackColor1.Color = saveXpStepTypeTitleColor; - } - else //lstCheckedStepTypes.Count > 0 - { - // show how many selected whether pannel is expanded or not - xpStepTypes.TitleText = string.Format("{0} Step Styles Selected", lstCheckedStepTypes.Count); - xpStepTypes.TitleStyle.BackColor1.Color = Color.PapayaWhip; - } - } + xpStepTypes.TitleStyle.BackColor1.Color = saveXpStepTypeTitleColor; + } + else //lstCheckedStepTypes.Count > 0 + { + // show how many selected whether pannel is expanded or not + xpStepTypes.TitleText = string.Format("{0} Step Styles Selected", lstCheckedStepTypes.Count); + xpStepTypes.TitleStyle.BackColor1.Color = Color.PapayaWhip; + } + } - #endregion + #endregion - #region ContextMenu + #region ContextMenu - private void btnSym_Click(object sender, EventArgs e) - { - DevComponents.DotNetBar.ButtonItem b = (DevComponents.DotNetBar.ButtonItem)sender; - if (cbxTextSearchAnnotation.Focused) - cbxTextSearchAnnotation.SelectedText = (string)b.Text; - else if (cbxTextSearchText.Focused) - cbxTextSearchText.SelectedText = (string)b.Text; - } + private void btnSym_Click(object sender, EventArgs e) + { + DevComponents.DotNetBar.ButtonItem b = (DevComponents.DotNetBar.ButtonItem)sender; + if (cbxTextSearchAnnotation.Focused) + cbxTextSearchAnnotation.SelectedText = (string)b.Text; + else if (cbxTextSearchText.Focused) + cbxTextSearchText.SelectedText = (string)b.Text; + } - private void cmFndTxtInsHardSp_Click(object sender, EventArgs e) - { - // We use \u00A0 to represent a hard space because it show in the search text field as a blank - // It will get translated to a real hard space character prior to searching - if (cbxTextSearchAnnotation.Focused) - cbxTextSearchAnnotation.SelectedText = "\u00A0"; - else if (cbxTextSearchText.Focused) - cbxTextSearchText.SelectedText = "\u00A0"; - } + private void cmFndTxtInsHardSp_Click(object sender, EventArgs e) + { + // We use \u00A0 to represent a hard space because it show in the search text field as a blank + // It will get translated to a real hard space character prior to searching + if (cbxTextSearchAnnotation.Focused) + cbxTextSearchAnnotation.SelectedText = "\u00A0"; + else if (cbxTextSearchText.Focused) + cbxTextSearchText.SelectedText = "\u00A0"; + } - private void SetupContextMenu() - { - galSymbols.SubItems.Clear(); - if (_MyDocVersion != null) - { - FormatData fmtdata = _MyDocVersion.ActiveFormat.PlantFormat.FormatData; - SymbolList sl = fmtdata.SymbolList; - if (sl == null || sl.Count <= 0) - { - MessageBox.Show("No symbols are available, check with administrator"); - return; - } - foreach (Symbol sym in sl) - { - DevComponents.DotNetBar.ButtonItem btnCM = new DevComponents.DotNetBar.ButtonItem(); - btnCM.Text = string.Format("{0}", (char)sym.Unicode); - // to name button use unicode rather than desc, desc may have spaces or odd chars - btnCM.Name = "btnCM" + sym.Unicode.ToString(); - btnCM.Tooltip = sym.Desc; - btnCM.Tag = string.Format(@"{0}", sym.Unicode); - btnCM.FontBold = true; - btnCM.Click += new System.EventHandler(btnSym_Click); - galSymbols.SubItems.Add(btnCM); - } - } - } + private void SetupContextMenu() + { + galSymbols.SubItems.Clear(); + if (_MyDocVersion != null) + { + FormatData fmtdata = _MyDocVersion.ActiveFormat.PlantFormat.FormatData; + SymbolList sl = fmtdata.SymbolList; + if (sl == null || sl.Count <= 0) + { + MessageBox.Show("No symbols are available, check with administrator"); + return; + } + foreach (Symbol sym in sl) + { + DevComponents.DotNetBar.ButtonItem btnCM = new DevComponents.DotNetBar.ButtonItem(); + btnCM.Text = string.Format("{0}", (char)sym.Unicode); + // to name button use unicode rather than desc, desc may have spaces or odd chars + btnCM.Name = "btnCM" + sym.Unicode.ToString(); + btnCM.Tooltip = sym.Desc; + btnCM.Tag = string.Format(@"{0}", sym.Unicode); + btnCM.FontBold = true; + btnCM.Click += new System.EventHandler(btnSym_Click); + galSymbols.SubItems.Add(btnCM); + } + } + } - private void cmFndTxtCut_Click(object sender, EventArgs e) - { - Clipboard.Clear(); - DataObject myDO = new DataObject(DataFormats.Text, cbxTextSearchAnnotation.Focused? cbxTextSearchAnnotation.SelectedText : cbxTextSearchText.SelectedText); - Clipboard.SetDataObject(myDO); - // Need to check which combo box activated the context menu so that we know where to take/put selected text - if (cbxTextSearchAnnotation.Focused) - cbxTextSearchAnnotation.SelectedText = ""; - else if (cbxTextSearchText.Focused) - cbxTextSearchText.SelectedText = ""; + private void cmFndTxtCut_Click(object sender, EventArgs e) + { + Clipboard.Clear(); + DataObject myDO = new DataObject(DataFormats.Text, cbxTextSearchAnnotation.Focused ? cbxTextSearchAnnotation.SelectedText : cbxTextSearchText.SelectedText); + Clipboard.SetDataObject(myDO); + // Need to check which combo box activated the context menu so that we know where to take/put selected text + if (cbxTextSearchAnnotation.Focused) + cbxTextSearchAnnotation.SelectedText = ""; + else if (cbxTextSearchText.Focused) + cbxTextSearchText.SelectedText = ""; - } + } - private void cmFndTxtCopy_Click(object sender, EventArgs e) - { - // Need to check which combo box activated the context menu so that we know where to take/put selected text - DataObject myDO = new DataObject(DataFormats.Text, cbxTextSearchAnnotation.Focused? cbxTextSearchAnnotation.SelectedText : cbxTextSearchText.SelectedText); - if (cbxTextSearchText.Focused || cbxTextSearchAnnotation.Focused) - { - Clipboard.Clear(); - Clipboard.SetDataObject(myDO); - } - } + private void cmFndTxtCopy_Click(object sender, EventArgs e) + { + // Need to check which combo box activated the context menu so that we know where to take/put selected text + DataObject myDO = new DataObject(DataFormats.Text, cbxTextSearchAnnotation.Focused ? cbxTextSearchAnnotation.SelectedText : cbxTextSearchText.SelectedText); + if (cbxTextSearchText.Focused || cbxTextSearchAnnotation.Focused) + { + Clipboard.Clear(); + Clipboard.SetDataObject(myDO); + } + } - private void cmFndTxtPaste_Click(object sender, EventArgs e) - { - // Need to check which combo box activated the context menu so that we know where to take/put selected text - IDataObject myDO = Clipboard.GetDataObject(); - if (myDO.GetDataPresent(DataFormats.Rtf)) - { - StepRTB stpRTB = new StepRTB(); - stpRTB.SelectedRtf = myDO.GetData(DataFormats.Rtf).ToString(); - if (cbxTextSearchAnnotation.Focused) - cbxTextSearchAnnotation.SelectedText = stpRTB.Text; - else if (cbxTextSearchText.Focused) - cbxTextSearchText.SelectedText = stpRTB.Text;// .SelectedText;//myDO.GetData(DataFormats.Text,true).ToString(); - } - else if (myDO.GetDataPresent(DataFormats.Text)) - if (cbxTextSearchAnnotation.Focused) - cbxTextSearchAnnotation.SelectedText = Clipboard.GetText(); - else if (cbxTextSearchText.Focused) - cbxTextSearchText.SelectedText = Clipboard.GetText();//myDO.GetData(DataFormats.Text).ToString(); - } + private void cmFndTxtPaste_Click(object sender, EventArgs e) + { + // Need to check which combo box activated the context menu so that we know where to take/put selected text + IDataObject myDO = Clipboard.GetDataObject(); + if (myDO.GetDataPresent(DataFormats.Rtf)) + { + StepRTB stpRTB = new StepRTB(); + stpRTB.SelectedRtf = myDO.GetData(DataFormats.Rtf).ToString(); + if (cbxTextSearchAnnotation.Focused) + cbxTextSearchAnnotation.SelectedText = stpRTB.Text; + else if (cbxTextSearchText.Focused) + cbxTextSearchText.SelectedText = stpRTB.Text;// .SelectedText;//myDO.GetData(DataFormats.Text,true).ToString(); + } + else if (myDO.GetDataPresent(DataFormats.Text)) + if (cbxTextSearchAnnotation.Focused) + cbxTextSearchAnnotation.SelectedText = Clipboard.GetText(); + else if (cbxTextSearchText.Focused) + cbxTextSearchText.SelectedText = Clipboard.GetText();//myDO.GetData(DataFormats.Text).ToString(); + } - private void btnCMIFindText_PopupOpen(object sender, PopupOpenEventArgs e) - { - // the context menu is available with just a mouse hover, even if the combo box does not have focus - // ... set the focus to which ever combo box initiated the context menu - if (tabAnnotationSearch.IsSelected) - { - if (!cbxTextSearchAnnotation.Focused) - cbxTextSearchAnnotation.Focus(); - } - else if (tabStepTypeSearch.IsSelected) - { - if (!cbxTextSearchText.Focused) - cbxTextSearchText.Focus(); - } - } - #endregion + private void btnCMIFindText_PopupOpen(object sender, PopupOpenEventArgs e) + { + // the context menu is available with just a mouse hover, even if the combo box does not have focus + // ... set the focus to which ever combo box initiated the context menu + if (tabAnnotationSearch.IsSelected) + { + if (!cbxTextSearchAnnotation.Focused) + cbxTextSearchAnnotation.Focus(); + } + else if (tabStepTypeSearch.IsSelected) + { + if (!cbxTextSearchText.Focused) + cbxTextSearchText.Focus(); + } + } + #endregion private void buttonItem2_Click(object sender, EventArgs e) { if (cbxTextSearchAnnotation.Focused) @@ -1469,46 +1486,46 @@ namespace Volian.Controls.Library cbxAnnoTypes.Focus(); cbxBooleanAnoTxtSrch_CheckedChanged(sender, e); } - private void btnClearSearchResults_Click(object sender, EventArgs e) + private void btnClearSearchResults_Click(object sender, EventArgs e) + { + lbSrchResults.DataSource = null; + _SearchResults = null; + DisplayResults(); + } + private void btnCopySearchResults_Click(object sender, EventArgs e) + { + ICollection myList = lbSrchResults.DataSource as ICollection; + StringBuilder sb = new StringBuilder(); + sb.Append("\"Location\"\t\"Type\"\t\"Text\"\t\"High-Level\"\t\"Annotations\""); + foreach (ItemInfo myItem in myList) { - lbSrchResults.DataSource = null; - _SearchResults = null; - DisplayResults(); + sb.Append(string.Format("\r\n\"{0}\"\t\"{1}\"\t\"{2}\"\t\"{3}\"", myItem.ShortPath, myItem.ToolTip, + myItem.DisplayText, !myItem.IsSection && !myItem.IsHigh ? myItem.MyHLS.DisplayText : "")); + if (myItem.ItemAnnotationCount > 0) + foreach (AnnotationInfo myAnnotation in myItem.ItemAnnotations) + sb.Append(string.Format("\t\"{0}\"", myAnnotation.SearchText)); } - private void btnCopySearchResults_Click(object sender, EventArgs e) - { - ICollection myList = lbSrchResults.DataSource as ICollection; - StringBuilder sb = new StringBuilder(); - sb.Append("\"Location\"\t\"Type\"\t\"Text\"\t\"High-Level\"\t\"Annotations\""); - foreach (ItemInfo myItem in myList) - { - sb.Append(string.Format("\r\n\"{0}\"\t\"{1}\"\t\"{2}\"\t\"{3}\"", myItem.ShortPath, myItem.ToolTip, - myItem.DisplayText, !myItem.IsSection && !myItem.IsHigh ? myItem.MyHLS.DisplayText : "")); - if(myItem.ItemAnnotationCount > 0) - foreach(AnnotationInfo myAnnotation in myItem.ItemAnnotations) - sb.Append(string.Format("\t\"{0}\"",myAnnotation.SearchText)); - } - Clipboard.Clear(); - Clipboard.SetText(sb.ToString()); - MessageBox.Show("Results Copied to Clipboard","Copy Results", MessageBoxButtons.OK, MessageBoxIcon.Information); - } - private string _ReportTitle; - public string ReportTitle - { - get { return _ReportTitle; } - set { _ReportTitle = value; } - } - private string _SearchString=null; - public string SearchString - { - get { return _SearchString; } - set { _SearchString = value; } - } - private void btnPrnSrchRslts_Click(object sender, EventArgs e) - { - OnPrintRequest(new DisplaySearchEventArgs(ReportTitle,SearchString,lbSrchResults.DataSource as ICollection)); - } - } + Clipboard.Clear(); + Clipboard.SetText(sb.ToString()); + MessageBox.Show("Results Copied to Clipboard", "Copy Results", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + private string _ReportTitle; + public string ReportTitle + { + get { return _ReportTitle; } + set { _ReportTitle = value; } + } + private string _SearchString = null; + public string SearchString + { + get { return _SearchString; } + set { _SearchString = value; } + } + private void btnPrnSrchRslts_Click(object sender, EventArgs e) + { + OnPrintRequest(new DisplaySearchEventArgs(ReportTitle, SearchString, lbSrchResults.DataSource as ICollection)); + } + } #region Annoation Search Type Class // this class is used to generate the list of annotations to search. // this also allow us to add a dummy type which is used to search for all annotations