From f650f801f03c4f5a2ca8bdc92d45f27e1024b184 Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 19 Oct 2010 16:45:02 +0000 Subject: [PATCH] --- .../Volian.Controls.Library/DisplaySearch.Designer.cs | 5 +++-- PROMS/Volian.Controls.Library/DisplaySearch.cs | 7 +++++++ PROMS/Volian.Controls.Library/DisplaySearch.resx | 10 +++++----- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/PROMS/Volian.Controls.Library/DisplaySearch.Designer.cs b/PROMS/Volian.Controls.Library/DisplaySearch.Designer.cs index bae507e9..9eda46b5 100644 --- a/PROMS/Volian.Controls.Library/DisplaySearch.Designer.cs +++ b/PROMS/Volian.Controls.Library/DisplaySearch.Designer.cs @@ -244,9 +244,10 @@ namespace Volian.Controls.Library 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.Size = new System.Drawing.Size(234, 23); + this.superTooltip1.SetSuperTooltip(this.cbxFndUnLnkROVals, new DevComponents.DotNetBar.SuperTooltipInfo("Find Linked Values", "", "Finding unlinked values does the search for a specific RO.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray)); this.cbxFndUnLnkROVals.TabIndex = 2; - this.cbxFndUnLnkROVals.Text = "Find Unlinked Values"; + this.cbxFndUnLnkROVals.Text = "Find Unlinked Values of Selected RO"; // // cmboTreeROs // diff --git a/PROMS/Volian.Controls.Library/DisplaySearch.cs b/PROMS/Volian.Controls.Library/DisplaySearch.cs index 0d31b769..90cd3e0f 100644 --- a/PROMS/Volian.Controls.Library/DisplaySearch.cs +++ b/PROMS/Volian.Controls.Library/DisplaySearch.cs @@ -1056,6 +1056,7 @@ namespace Volian.Controls.Library cmbResultsStyle.SelectedIndex = 3; // display step text in results } } + AddMessageForEmptyAnnotations(); DisplayResults(); if (SearchResults != null && SearchResults.Count == 0) { @@ -1077,6 +1078,12 @@ namespace Volian.Controls.Library // MessageBox.Show(string.Format("{0} Milliseconds", TimeSpan.FromTicks(DateTime.Now.Ticks - start.Ticks).TotalMilliseconds)); } + private void AddMessageForEmptyAnnotations() + { + foreach (ItemInfo ii in SearchResults) + if (ii.SearchAnnotationText == null) ii.SearchAnnotationText = "None - [" + ii.DisplayText + "]"; + } + private void cbxTextSearchText_Leave(object sender, EventArgs e) { InsertSearchCriteria(); diff --git a/PROMS/Volian.Controls.Library/DisplaySearch.resx b/PROMS/Volian.Controls.Library/DisplaySearch.resx index f5e8a922..7b156f87 100644 --- a/PROMS/Volian.Controls.Library/DisplaySearch.resx +++ b/PROMS/Volian.Controls.Library/DisplaySearch.resx @@ -120,11 +120,6 @@ 126, 17 - - Using Boolean search allows you to specify text AND other text, text OR other text, and NOT text. To find options, use the Right Mouse button on the Find Box's context menu. - -Boolean searches are case insensitive and the search finds RO data as text or within ROs (selection of optons 'Case Sensitive' & 'Search RO Text' are not available during 'Boolean Search'). - Enter the text you want to search, or select from the drop down list for which the text is added once a search is done. @@ -135,6 +130,11 @@ For additional search text options, use the Right Mouse button to get a context Enter the text you want to search, or select from the drop down list for which the text is added once a search is done. For additional search text options, use the Right Mouse button to get a context menu. + + + Using Boolean search allows you to specify text AND other text, text OR other text, and NOT text. To find options, use the Right Mouse button on the Find Box's context menu. + +Boolean searches are case insensitive and the search finds RO data as text or within ROs (selection of optons 'Case Sensitive' & 'Search RO Text' are not available during 'Boolean Search'). 17, 17