This commit is contained in:
John Jenko 2009-02-04 19:52:20 +00:00
parent ddc6a34966
commit 20498a2eb5
3 changed files with 1808 additions and 0 deletions

View File

@ -0,0 +1,763 @@
namespace Volian.Controls.Library
{
partial class DisplaySearch
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.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.cbxCaseSensitive = new DevComponents.DotNetBar.Controls.CheckBoxX();
this.cbxTextSearchText = new DevComponents.DotNetBar.Controls.ComboBoxEx();
this.cbxSrchTypeUsage = new DevComponents.DotNetBar.Controls.CheckBoxX();
this.tabStepTypeSearch = new DevComponents.DotNetBar.TabItem(this.components);
this.tabControlPanel3 = new DevComponents.DotNetBar.TabControlPanel();
this.cbSrchAnnoText = new DevComponents.DotNetBar.Controls.CheckBoxX();
this.cbxAnnoTypes = new DevComponents.DotNetBar.Controls.ComboBoxEx();
this.gpSrchAnnoText = new DevComponents.DotNetBar.Controls.GroupPanel();
this.cbxTextSearchAnnotation = new DevComponents.DotNetBar.Controls.ComboBoxEx();
this.cbxCaseSensitiveAnnoText = new DevComponents.DotNetBar.Controls.CheckBoxX();
this.tabAnnotationSearch = new DevComponents.DotNetBar.TabItem(this.components);
this.tabControlPanel2 = new DevComponents.DotNetBar.TabControlPanel();
this.cmboTreeROs = new DevComponents.DotNetBar.Controls.ComboTree();
this.tabROSearch = new DevComponents.DotNetBar.TabItem(this.components);
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.btnPrnSrchRslts = new DevComponents.DotNetBar.ButtonX();
this.panSearchButtons = new DevComponents.DotNetBar.PanelEx();
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.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.tabControlPanel3.SuspendLayout();
this.gpSrchAnnoText.SuspendLayout();
this.tabControlPanel2.SuspendLayout();
((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.tabControlPanel3);
this.tabSearchTypes.Controls.Add(this.tabControlPanel2);
this.tabSearchTypes.Dock = System.Windows.Forms.DockStyle.Top;
this.tabSearchTypes.Location = new System.Drawing.Point(0, 0);
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(364, 131);
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.cbxSrchTypeUsage);
this.tabControlPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControlPanel4.Location = new System.Drawing.Point(0, 27);
this.tabControlPanel4.Name = "tabControlPanel4";
this.tabControlPanel4.Padding = new System.Windows.Forms.Padding(1);
this.tabControlPanel4.Size = new System.Drawing.Size(364, 104);
this.tabControlPanel4.Style.BackColor1.Color = System.Drawing.SystemColors.Control;
this.tabControlPanel4.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
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;
this.tabControlPanel4.ThemeAware = true;
//
// gpSrchText
//
this.gpSrchText.CanvasColor = System.Drawing.SystemColors.Control;
this.gpSrchText.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
this.gpSrchText.Controls.Add(this.cbxCaseSensitive);
this.gpSrchText.Controls.Add(this.cbxTextSearchText);
this.gpSrchText.Dock = System.Windows.Forms.DockStyle.Top;
this.gpSrchText.Location = new System.Drawing.Point(1, 1);
this.gpSrchText.Name = "gpSrchText";
this.gpSrchText.Size = new System.Drawing.Size(362, 57);
//
//
//
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.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.TabIndex = 5;
this.gpSrchText.EnabledChanged += new System.EventHandler(this.gpSrchText_EnabledChanged);
//
// cbxCaseSensitive
//
this.cbxCaseSensitive.BackColor = System.Drawing.Color.Transparent;
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(3, 30);
this.cbxCaseSensitive.Name = "cbxCaseSensitive";
this.cbxCaseSensitive.Size = new System.Drawing.Size(131, 23);
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";
//
// cbxTextSearchText
//
this.cbxTextSearchText.DisplayMember = "Text";
this.cbxTextSearchText.Dock = System.Windows.Forms.DockStyle.Top;
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(0, 0);
this.cbxTextSearchText.Name = "cbxTextSearchText";
this.cbxTextSearchText.Size = new System.Drawing.Size(356, 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);
//
// cbxSrchTypeUsage
//
this.cbxSrchTypeUsage.BackColor = System.Drawing.Color.Transparent;
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, 80);
this.cbxSrchTypeUsage.Name = "cbxSrchTypeUsage";
this.cbxSrchTypeUsage.Size = new System.Drawing.Size(362, 23);
this.cbxSrchTypeUsage.TabIndex = 4;
this.cbxSrchTypeUsage.Text = "Find Just The Usage Of 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";
//
// tabControlPanel3
//
this.tabControlPanel3.Controls.Add(this.cbSrchAnnoText);
this.tabControlPanel3.Controls.Add(this.cbxAnnoTypes);
this.tabControlPanel3.Controls.Add(this.gpSrchAnnoText);
this.tabControlPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControlPanel3.Location = new System.Drawing.Point(0, 27);
this.tabControlPanel3.Name = "tabControlPanel3";
this.tabControlPanel3.Padding = new System.Windows.Forms.Padding(1);
this.tabControlPanel3.Size = new System.Drawing.Size(364, 104);
this.tabControlPanel3.Style.BackColor1.Color = System.Drawing.SystemColors.Control;
this.tabControlPanel3.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
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;
this.tabControlPanel3.ThemeAware = true;
//
// cbSrchAnnoText
//
this.cbSrchAnnoText.BackColor = System.Drawing.Color.Transparent;
this.cbSrchAnnoText.Dock = System.Windows.Forms.DockStyle.Top;
this.cbSrchAnnoText.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbSrchAnnoText.Location = new System.Drawing.Point(1, 25);
this.cbSrchAnnoText.Name = "cbSrchAnnoText";
this.cbSrchAnnoText.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.cbSrchAnnoText.Size = new System.Drawing.Size(362, 23);
this.cbSrchAnnoText.TabIndex = 3;
this.cbSrchAnnoText.Text = "Search The AnnotationText For:";
this.cbSrchAnnoText.CheckedChanged += new System.EventHandler(this.cbSrchAnnoText_CheckedChanged);
//
// 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.Name = "cbxAnnoTypes";
this.cbxAnnoTypes.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.cbxAnnoTypes.Size = new System.Drawing.Size(362, 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";
//
// gpSrchAnnoText
//
this.gpSrchAnnoText.CanvasColor = System.Drawing.SystemColors.Control;
this.gpSrchAnnoText.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
this.gpSrchAnnoText.Controls.Add(this.cbxTextSearchAnnotation);
this.gpSrchAnnoText.Controls.Add(this.cbxCaseSensitiveAnnoText);
this.gpSrchAnnoText.Dock = System.Windows.Forms.DockStyle.Bottom;
this.gpSrchAnnoText.Enabled = false;
this.gpSrchAnnoText.Location = new System.Drawing.Point(1, 50);
this.gpSrchAnnoText.Name = "gpSrchAnnoText";
this.gpSrchAnnoText.Size = new System.Drawing.Size(362, 53);
//
//
//
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.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.TabIndex = 6;
this.gpSrchAnnoText.EnabledChanged += new System.EventHandler(this.gpSrchAnnoText_EnabledChanged);
//
// cbxTextSearchAnnotation
//
this.cbxTextSearchAnnotation.DisplayMember = "Text";
this.cbxTextSearchAnnotation.Dock = System.Windows.Forms.DockStyle.Top;
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(0, 0);
this.cbxTextSearchAnnotation.Name = "cbxTextSearchAnnotation";
this.cbxTextSearchAnnotation.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.cbxTextSearchAnnotation.Size = new System.Drawing.Size(356, 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.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(180, 76)));
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);
//
// cbxCaseSensitiveAnnoText
//
this.cbxCaseSensitiveAnnoText.BackColor = System.Drawing.Color.Transparent;
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(3, 26);
this.cbxCaseSensitiveAnnoText.Name = "cbxCaseSensitiveAnnoText";
this.cbxCaseSensitiveAnnoText.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.cbxCaseSensitiveAnnoText.Size = new System.Drawing.Size(125, 23);
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";
//
// tabAnnotationSearch
//
this.tabAnnotationSearch.AttachedControl = this.tabControlPanel3;
this.tabAnnotationSearch.Name = "tabAnnotationSearch";
this.tabAnnotationSearch.Text = "Annotations";
//
// tabControlPanel2
//
this.tabControlPanel2.Controls.Add(this.cmboTreeROs);
this.tabControlPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControlPanel2.Location = new System.Drawing.Point(0, 27);
this.tabControlPanel2.Name = "tabControlPanel2";
this.tabControlPanel2.Padding = new System.Windows.Forms.Padding(1);
this.tabControlPanel2.Size = new System.Drawing.Size(364, 104);
this.tabControlPanel2.Style.BackColor1.Color = System.Drawing.SystemColors.Control;
this.tabControlPanel2.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
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;
this.tabControlPanel2.ThemeAware = true;
//
// 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.Name = "cmboTreeROs";
this.cmboTreeROs.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.cmboTreeROs.Size = new System.Drawing.Size(362, 23);
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";
//
// tabROSearch
//
this.tabROSearch.AttachedControl = this.tabControlPanel2;
this.tabROSearch.Name = "tabROSearch";
this.tabROSearch.Text = "Referenced Objects";
this.tabROSearch.Click += new System.EventHandler(this.tabROSearch_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, 26);
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(364, 173);
this.advTreeProcSets.Styles.Add(this.elementStyle1);
this.advTreeProcSets.TabIndex = 0;
this.advTreeProcSets.Text = "advTree1";
this.advTreeProcSets.AfterCheck += new DevComponents.AdvTree.AdvTreeCellEventHandler(this.advTreeProcSets_AfterCheck);
//
// elementStyle1
//
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, 26);
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(364, 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.Name = "elementStyle2";
this.elementStyle2.TextColor = System.Drawing.SystemColors.ControlText;
//
// node2
//
this.node2.Expanded = true;
this.node2.Name = "node2";
this.node2.Text = "....you need to 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, 583);
this.grpPanSearchResults.Name = "grpPanSearchResults";
this.grpPanSearchResults.Size = new System.Drawing.Size(364, 249);
//
//
//
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.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.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.ItemHeight = 16;
this.lbSrchResults.Location = new System.Drawing.Point(0, 0);
this.lbSrchResults.Name = "lbSrchResults";
this.lbSrchResults.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.lbSrchResults.Size = new System.Drawing.Size(358, 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);
//
// 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(78, 36);
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;
//
// panSearchButtons
//
this.panSearchButtons.CanvasColor = System.Drawing.SystemColors.Control;
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, 510);
this.panSearchButtons.Name = "panSearchButtons";
this.panSearchButtons.Size = new System.Drawing.Size(364, 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;
//
// labelX1
//
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.Name = "labelX1";
this.labelX1.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.labelX1.Size = new System.Drawing.Size(96, 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.FormattingEnabled = true;
this.cmbResultsStyle.ItemHeight = 16;
this.cmbResultsStyle.Items.AddRange(new object[] {
this.comboItem1,
this.comboItem2,
this.comboItem3,
this.comboItem4});
this.cmbResultsStyle.Location = new System.Drawing.Point(100, 7);
this.cmbResultsStyle.Name = "cmbResultsStyle";
this.cmbResultsStyle.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.cmbResultsStyle.Size = new System.Drawing.Size(134, 22);
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.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(155, 41);
this.cbSorted.Name = "cbSorted";
this.cbSorted.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.cbSorted.Size = new System.Drawing.Size(107, 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.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.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);
//
// 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, 131);
this.xpSetToSearch.Name = "xpSetToSearch";
this.xpSetToSearch.Size = new System.Drawing.Size(364, 199);
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 = "Click Here To 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, 330);
this.xpStepTypes.Name = "xpStepTypes";
this.xpStepTypes.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.xpStepTypes.Size = new System.Drawing.Size(364, 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 = "Click Here To 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.Name = "DisplaySearch";
this.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.Size = new System.Drawing.Size(364, 832);
((System.ComponentModel.ISupportInitialize)(this.tabSearchTypes)).EndInit();
this.tabSearchTypes.ResumeLayout(false);
this.tabControlPanel4.ResumeLayout(false);
this.gpSrchText.ResumeLayout(false);
this.tabControlPanel3.ResumeLayout(false);
this.gpSrchAnnoText.ResumeLayout(false);
this.tabControlPanel2.ResumeLayout(false);
((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);
}
#endregion
private DevComponents.DotNetBar.TabControl tabSearchTypes;
private DevComponents.DotNetBar.TabControlPanel tabControlPanel2;
private DevComponents.DotNetBar.TabItem tabROSearch;
private DevComponents.AdvTree.AdvTree advTreeProcSets;
private DevComponents.AdvTree.Node node1;
private DevComponents.AdvTree.NodeConnector nodeConnector1;
private DevComponents.DotNetBar.ElementStyle elementStyle1;
private DevComponents.AdvTree.AdvTree advTreeStepTypes;
private DevComponents.AdvTree.Node node2;
private DevComponents.AdvTree.NodeConnector nodeConnector2;
private DevComponents.DotNetBar.ElementStyle elementStyle2;
private DevComponents.DotNetBar.Controls.GroupPanel grpPanSearchResults;
private DevComponents.DotNetBar.TabControlPanel tabControlPanel4;
private DevComponents.DotNetBar.TabItem tabStepTypeSearch;
private DevComponents.DotNetBar.ButtonX btnPrnSrchRslts;
private DevComponents.DotNetBar.Controls.ComboTree cmboTreeROs;
private DevComponents.DotNetBar.Controls.ComboBoxEx cbxAnnoTypes;
private DevComponents.DotNetBar.Controls.ComboBoxEx cbxTextSearchText;
private DevComponents.DotNetBar.PanelEx panSearchButtons;
private DevComponents.DotNetBar.ButtonX btnSearch;
private DevComponents.DotNetBar.ExpandablePanel xpSetToSearch;
private DevComponents.DotNetBar.ExpandablePanel xpStepTypes;
private System.Windows.Forms.ToolTip toolTip1;
private System.Windows.Forms.ListBox lbSrchResults;
private DevComponents.DotNetBar.SuperTooltip superTooltip1;
private DevComponents.DotNetBar.Controls.CheckBoxX cbxCaseSensitive;
private DevComponents.DotNetBar.Controls.CheckBoxX cbSorted;
private DevComponents.DotNetBar.LabelX labelX1;
private DevComponents.DotNetBar.Controls.ComboBoxEx cmbResultsStyle;
private DevComponents.Editors.ComboItem comboItem1;
private DevComponents.Editors.ComboItem comboItem2;
private DevComponents.Editors.ComboItem comboItem3;
private DevComponents.Editors.ComboItem comboItem4;
private DevComponents.DotNetBar.Controls.CheckBoxX cbxCaseSensitiveAnnoText;
private DevComponents.DotNetBar.Controls.CheckBoxX cbSrchAnnoText;
private DevComponents.DotNetBar.Controls.CheckBoxX cbxSrchTypeUsage;
private DevComponents.DotNetBar.Controls.GroupPanel gpSrchAnnoText;
private DevComponents.DotNetBar.Controls.GroupPanel gpSrchText;
private DevComponents.DotNetBar.Controls.ComboBoxEx cbxTextSearchAnnotation;
private DevComponents.DotNetBar.TabControlPanel tabControlPanel3;
private DevComponents.DotNetBar.TabItem tabAnnotationSearch;
}
}

View File

@ -0,0 +1,919 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using VEPROMS.CSLA.Library;
using DevComponents.DotNetBar;
using DevComponents.AdvTree;
namespace Volian.Controls.Library
{
public partial class DisplaySearch : UserControl
{
#region Properties
private List<DocVersionInfo> lstCheckedDocVersions = new List<DocVersionInfo>();
private List<int> lstCheckedStepTypes = new List<int>();
private bool _AlwaysDisableSets; // true if there is only 1 item in tree/combo for sets
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 saveGrpPanSearchResults;
private ItemInfoList _SearchResults;
public ItemInfoList SearchResults
{
get { return _SearchResults; }
set
{
_SearchResults = value;
DisplayResults();
}
}
private string _DisplayMember = "SearchPath";
//public string Status
//{
// get { return tsslStatus.Text; }
// set { tsslStatus.Text = value; Application.DoEvents(); }
//}
public DocVersionInfo Mydocversion
{
get { return _mydocversion; }
set { _mydocversion = value; }
}
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; }
}
private ItemInfo _CurrentProcedure;
#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;
gpSrchText.Style.BackColor = Color.Yellow;
// start out with the procedure and type selection windows colasped
xpSetToSearch.Expanded = false;
xpStepTypes.Expanded = false;
}
private void LoadSearchTextListBox()
{
cbxTextSearchText.Items.Clear();
cbxTextSearchAnnotation.Items.Clear();
//TODO: load saved search strings from user settings
}
public void advTreeStepTypesFillIn()
{
DevComponents.AdvTree.Node topnode = new DevComponents.AdvTree.Node();
advTreeStepTypes.Nodes.Clear();
topnode.Text = "Types";
advTreeStepTypes.Nodes.Add(topnode);
FormatData fmtdata = _mydocversion.ActiveFormat.PlantFormat.FormatData;
List<StepDataRetval> 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;
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
newnode = new DevComponents.AdvTree.Node();
newnode.Text = sdr.Name;
newnode.Name = sd.Type; // this needed for the FindNodeByName() function
newnode.Tag = sd;
newnode.Selectable = true;
newnode.CheckBoxAlignment = DevComponents.AdvTree.eCellPartAlignment.NearCenter;
newnode.CheckBoxStyle = eCheckBoxStyle.CheckBox;
newnode.CheckBoxThreeState = false;
newnode.CheckBoxVisible = true;
// if the parent node exists in the tree, then add the new node to that parent
// else, it is a parent node, so add it as a new parent
DevComponents.AdvTree.Node parnode = advTreeStepTypes.FindNodeByName(parentName);
// Group by High Level Steps, Substeps, Cautions, Notes, Figures, Tables
while (!parentName.Equals("Base") && !parentName.Equals("Substep") && !parentName.Equals("High") &&
!parentName.Equals("Caution") && !parentName.Equals("Note") && !parentName.Equals("Table") &&
!parentName.Equals("Figure"))
{
StepData tmpsd = (StepData)parnode.Tag;
parentName = tmpsd.ParentType;
parnode = advTreeStepTypes.FindNodeByName(parentName);
}
if (parnode != null)
{
parnode.Nodes.Add(newnode);
parnode.Nodes.Sort(); // sort the second level of the tree
}
else
advTreeStepTypes.Nodes.Add(newnode);
}
advTreeStepTypes.Nodes.Sort(); // sort the first level of the tree
}
}
public void advTreeProcSetsFillIn()
{
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();
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)
{
newnode.Text = "Available Procedure Sets";
tmp = advTreeProcSets.Nodes.Add(newnode);
topnode = newnode;
}
else
{
newnode.Selectable = true;
newnode.CheckBoxAlignment = DevComponents.AdvTree.eCellPartAlignment.NearCenter;
newnode.CheckBoxStyle = eCheckBoxStyle.CheckBox;
newnode.CheckBoxThreeState = false;
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);
}
}
// 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;
}
_AlwaysDisableSets = true;
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();
}
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);
}
}
}
}
}
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<string> crumbs = new Stack<string>();
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"
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_BeforeSelectNode);
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);
}
}
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_BeforeSelectNode(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];
tn.Nodes.Add(tmp);
}
}
}
ProgressBar_Clear();
}
#endregion
#region Annotation Search
public void SetupAnnotationSearch(AnnotationDetails annotationDetails, DisplayTabControl tc)
{
_AnnotationDetails = annotationDetails;
List<AnnotationTypeSearch> annoTypes = new List<AnnotationTypeSearch>();
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 cbSrchAnnoText_CheckedChanged(object sender, EventArgs e)
{
gpSrchAnnoText.Enabled = cbSrchAnnoText.Checked;
}
private void cbxTextSearchAnnotation_Leave(object sender, EventArgs e)
{
if (!cbxTextSearchAnnotation.Text.Equals(string.Empty))
{
string tstr = cbxTextSearchAnnotation.Text;
if (!cbxTextSearchAnnotation.Items.Contains(tstr))
cbxTextSearchAnnotation.Items.Add(tstr);
}
}
private void gpSrchAnnoText_EnabledChanged(object sender, EventArgs e)
{
if (gpSrchAnnoText.Enabled)
gpSrchAnnoText.Style.BackColor = Color.Yellow;
else
gpSrchAnnoText.Style.BackColor = saveGpSrchAnnoTextColor;
}
#endregion
#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_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<ItemInfo> sortedResults = new Csla.SortedBindingList<ItemInfo>(_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;
cmbResultsStyle.Enabled = true;
}
else
{
btnPrnSrchRslts.Enabled = false;
cmbResultsStyle.Enabled = false;
}
lbSrchResults.SelectedIndex = -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;
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)
{
_ItemInfo = lbSrchResults.SelectedValue as ItemInfo;
if (_ItemInfo != null)
_TabControl.OpenItem(_ItemInfo); // open the corresponding procedure text
}
}
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[] BuildSearchString()
{
// the search query needs '<DocVerID>,...<DocVerID>','<StepTypeID>,...,<StepTypeID>','<TextToSearch>'
string[] strRtnStr = { "", "", "" };
// append list of document versions to search
if (lstCheckedDocVersions.Count > 0)
{
// get list of doc versions to search
foreach (DocVersionInfo dvi in lstCheckedDocVersions)
{
strRtnStr[0] += string.Format("{0},", dvi.ItemID.ToString());
}
strRtnStr[0] = strRtnStr[0].Remove(strRtnStr[0].LastIndexOf(','), 1);
}
// append list of step types to search
// TODO: need type number to search in attachments (word documents)
if (lstCheckedStepTypes.Count > 0)
{
// get list of selected types
foreach (int typ in lstCheckedStepTypes)
{
strRtnStr[1] += string.Format("{0},", (typ + 20000));
}
strRtnStr[1] = strRtnStr[1].Remove(strRtnStr[1].LastIndexOf(','), 1);
}
if (tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[0])
{ // Text Search
strRtnStr[2] += string.Format("{0}", cbxTextSearchText.Text); // append text to search
}
else if (tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[1])
{ // Annotation Search
strRtnStr[2] += ((AnnotationTypeSearch)cbxAnnoTypes.SelectedValue).ID;
}
else if (tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[2])
{ // RO Search
// TODO: the "1:" is hard coded for now. This is the ID to the corresponding
// RO.FST from the Association record
ROFSTLookup.rochild[] chld = null;
if (cmboTreeROs.SelectedNode != null)
{
ROFSTLookup.rochild ch;
if (cmboTreeROs.SelectedNode.Tag is ROFSTLookup.rodbi)
{
ROFSTLookup.rodbi db = (ROFSTLookup.rodbi)cmboTreeROs.SelectedNode.Tag;
strRtnStr[2] += "1:" + 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
strRtnStr[2] += "1:" + GetROsToSearch(chld);
if (strRtnStr[2].EndsWith(","))
strRtnStr[2] = strRtnStr[2].Substring(0, strRtnStr[2].Length - 2);
}
}
}
return strRtnStr;
}
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)
{
string[] strSearchText = null;
lbSrchResults.DataSource = null;
lbSrchResults.Items.Clear();
toolTip1.SetToolTip(lbSrchResults, null);
strSearchText = BuildSearchString();
Cursor savcursor = Cursor;
Cursor = Cursors.WaitCursor;
SearchResults = null;
if (tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[0]) // Text Search
{
bool includeRTFformat = false;
bool includeSpecialChars = false;
if (cbxSrchTypeUsage.Checked) // find just the usage of the selected types
{
if (lstCheckedStepTypes.Count ==0) //(strSearchText[1].Equals(""))
{
MessageBox.Show("Please select one or more types then press the Search button", "No Types Selected");
xpStepTypes.Expanded = true;
advTreeStepTypes.Focus();
xpStepTypes.TitleStyle.BackColor1.Color = Color.Crimson;
}
else
{
SearchResults = ItemInfoList.GetListFromTextSearch(strSearchText[0], strSearchText[1], "", cbxCaseSensitive.Checked, ItemSearchIncludeLinks.Value, includeRTFformat, includeSpecialChars);
cmbResultsStyle.SelectedIndex = 1; //display step locations in results
}
}
else
{
if (strSearchText[2].Equals(""))
{
MessageBox.Show("Please enter some search text, then click the Search button", "No Search Text");
cbxTextSearchText.Focus();
}
else
{
SearchResults = ItemInfoList.GetListFromTextSearch(strSearchText[0], strSearchText[1], strSearchText[2], cbxCaseSensitive.Checked, ItemSearchIncludeLinks.Value, includeRTFformat, includeSpecialChars);
cmbResultsStyle.SelectedIndex = 3; // display step text in results
}
}
}
else if (tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[1]) // Annotation Search
{
if (cbSrchAnnoText.Checked && cbxTextSearchAnnotation.Text.Equals(string.Empty))
{
MessageBox.Show("Please enter some search text, then click the Search button", "No Search Text");
cbxTextSearchAnnotation.Focus();
}
else
{
SearchResults = ItemInfoList.GetListFromAnnotationSearch(strSearchText[0], strSearchText[1], strSearchText[2], cbSrchAnnoText.Checked ? cbxTextSearchAnnotation.Text : "", cbxCaseSensitiveAnnoText.Checked);
UpdateAnnotationSearchResults();
cmbResultsStyle.SelectedIndex = 2; // display annotation text in results
}
}
else if (tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[2]) // RO Search
{
SearchResults = ItemInfoList.GetListFromROSearch(strSearchText[0], strSearchText[1], strSearchText[2]);
cmbResultsStyle.SelectedIndex = 1; // display procedure number, title, section, step in results
}
DisplayResults();
Cursor = savcursor;
if (SearchResults != null && SearchResults.Count == 0)
{
MessageBox.Show("No Matches Found.", "Search");
}
}
private void cbxTextSearchText_Leave(object sender, EventArgs e)
{
if (!cbxTextSearchText.Text.Equals(string.Empty))
{
string tstr = cbxTextSearchText.Text;
if (!cbxTextSearchText.Items.Contains(tstr))
cbxTextSearchText.Items.Add(tstr);
}
}
private void cbxSrchTypeUsage_CheckedChanged(object sender, EventArgs e)
{
gpSrchText.Enabled = !cbxSrchTypeUsage.Checked;
if (!cbxSrchTypeUsage.Checked && lstCheckedStepTypes.Count == 0)
xpStepTypes.TitleStyle.BackColor1.Color = saveXpStepTypeTitleColor;
else
{
xpStepTypes.Expanded = true;
if (lstCheckedStepTypes.Count == 0)
xpStepTypes.TitleStyle.BackColor1.Color = Color.Crimson;
}
}
private void gpSrchText_EnabledChanged(object sender, EventArgs e)
{
if (gpSrchText.Enabled)
gpSrchText.Style.BackColor = Color.Yellow;
else
gpSrchText.Style.BackColor = saveGpSrchTextColor;
}
private void tabROSearch_Click(object sender, EventArgs e)
{
if (lstCheckedDocVersions.Count == 0)
{
xpSetToSearch.Expanded = true;
xpSetToSearch.TitleStyle.BackColor1.Color = Color.Crimson;
}
}
#endregion
#region ProcSetSelection
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 (Mydocversion == null)
{
Mydocversion = (DocVersionInfo)n.Tag;
advTreeStepTypesFillIn();
}
if (MyROFSTLookup == null)
MyROFSTLookup = Mydocversion.DocVersionAssociations[0].MyROFst.ROFSTLookup;
}
else
{
n.Style = null;
lstCheckedDocVersions.Remove((DocVersionInfo)n.Tag);
}
// Enable the RO combo list only if at least one procedure set node
// is selected
cmboTreeROs.Enabled = (lstCheckedDocVersions.Count > 0);
if (lstCheckedDocVersions.Count > 0)
{
xpSetToSearch.TitleText = string.Format("{0} Procedure Sets Selected", lstCheckedDocVersions.Count);
xpSetToSearch.TitleStyle.BackColor1.Color = Color.PapayaWhip;
}
else
{
xpSetToSearch.TitleText = "Select Procedure Sets to Search";
xpSetToSearch.TitleStyle.BackColor1.Color = saveXpSetToSearchColor;
}
}
private void xpSetToSearch_ExpandedChanged(object sender, ExpandedChangeEventArgs e)
{
if (lstCheckedDocVersions.Count == 0)
if (xpSetToSearch.Expanded)
xpSetToSearch.TitleText = "Select Procedure Sets to Search";
else
{
xpSetToSearch.TitleText = "Click Here to Select Procedure Sets";
xpSetToSearch.TitleStyle.BackColor1.Color = saveXpSetToSearchColor;
}
}
#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);
}
if (lstCheckedStepTypes.Count > 0)
{
xpStepTypes.TitleText = string.Format("{0} Step Styles Selected",lstCheckedStepTypes.Count);
xpStepTypes.TitleStyle.BackColor1.Color = Color.PapayaWhip;
}
else
{
xpStepTypes.TitleText = "Select Types To Search";
xpStepTypes.TitleStyle.BackColor1.Color = saveXpStepTypeTitleColor;
}
}
private void xpStepTypes_ExpandedChanged(object sender, ExpandedChangeEventArgs e)
{
if (lstCheckedStepTypes.Count == 0)
if (xpStepTypes.Expanded)
xpStepTypes.TitleText = "Select Types To Search";
else
{
xpStepTypes.TitleText = "Click Here To Search By Types";
xpStepTypes.TitleStyle.BackColor1.Color = saveXpStepTypeTitleColor;
}
}
#endregion
}
#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
public class AnnotationTypeSearch
{
private string _Name;
public string Name
{
get { return _Name; }
set { _Name = value; }
}
private string _ID;
public string ID
{
get { return _ID; }
set { _ID = value; }
}
public AnnotationTypeSearch(string name, string id)
{
_Name = name;
_ID = id;
}
}
#endregion
}

View File

@ -0,0 +1,126 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="superTooltip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>126, 17</value>
</metadata>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>