B2019-004: An annotation is not removed from Annotation search results when it is deleted in the editor
This commit is contained in:
parent
8a96b47e72
commit
d7b97677d5
@ -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.
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user