B2019-004: An annotation is not removed from Annotation search results when it is deleted in the editor

This commit is contained in:
Kathy Ruffing 2019-05-09 13:01:49 +00:00
parent 8a96b47e72
commit d7b97677d5
2 changed files with 31 additions and 21 deletions

View File

@ -286,7 +286,7 @@ namespace Volian.Controls.Library
_AnnotationSearch.LoadingList = false; _AnnotationSearch.LoadingList = false;
CurrentAnnotation = null; CurrentAnnotation = null;
UpdateAnnotationGrid(); UpdateAnnotationGrid();
//_AnnotationSearch.UpdateAnnotationSearchResults(); // update the search results _AnnotationSearch.UpdateAnnotationSearchResults(); // B2019-004: update search results list when an annotation is removed.
//} //}
} }

View File

@ -1056,19 +1056,29 @@ namespace Volian.Controls.Library
// } // }
// Console.WriteLine("{0} Populate", DateTime.Now); // Console.WriteLine("{0} Populate", DateTime.Now);
//} //}
//public void UpdateAnnotationSearchResults() public void UpdateAnnotationSearchResults()
//{ {
// //AnnotationTypeInfo ati = cbxAnnoTypes.SelectedValue as AnnotationTypeInfo; // B2019-004: update search results list when an annotation is removed. (before bug fix, code method & code below was commented out)
// //_LoadingList = true; string unitPrefix = "";
// //lbSrchResults.DataSource = ati.AnnotationTypeAnnotations; if (Mydocversion != null)
// //lbSrchResults.SelectedIndex = -1; unitPrefix = Mydocversion.DocVersionConfig.Unit_ProcedureNumber;
// //LastResultsMouseOverIndex = -1; if (unitPrefix.EndsWith("#"))
// //if (lbSrchResults.Items.Count > 0) unitPrefix = unitPrefix.Replace("#", "");
// // btnPrnSrchRslts.Enabled = true; SearchResults = ItemInfoList.GetListFromAnnotationSearch(DVISearchList, TypeSearchList, AnnotationSearchType, cbxTextSearchAnnotation.Text, cbxCaseSensitiveAnnoText.Checked, unitPrefix);
// //else DisplayResults();
// // btnPrnSrchRslts.Enabled = false; /*
// //_LoadingList = false; 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) private void lbSrchResults_MouseMove(object sender, MouseEventArgs e)
{ {
int ResultsMouseOverIndex = lbSrchResults.IndexFromPoint(e.Location); int ResultsMouseOverIndex = lbSrchResults.IndexFromPoint(e.Location);