added event to update the Annotation lists in the Search and Annotation Details panels

This commit is contained in:
2012-03-16 15:48:06 +00:00
parent 52e227d35f
commit 119769f31f
2 changed files with 51 additions and 43 deletions

View File

@@ -412,6 +412,7 @@ namespace VEPROMS
SetCaption(tv.SelectedNode as VETreeNode);
}
displaySearch1.SetupAnnotationSearch(ctrlAnnotationDetails, tc);
AnnotationTypeInfoList.ListChanged += new AnnotationTypeInfoListEvent(AnnotationTypeInfoList_ListChanged);
ctrlAnnotationDetails.SetupAnnotations(displaySearch1);
SetupButtons();
displayBookMarks.MyDisplayTabControl = tc; // allows bookmark selection to bring up steps/docs
@@ -426,6 +427,13 @@ namespace VEPROMS
ctrlAnnotationDetails.Enter += new EventHandler(ctrlAnnotationDetails_Enter);
RunAutomatic();
}
void AnnotationTypeInfoList_ListChanged()
{
displaySearch1.SetupAnnotationSearch(ctrlAnnotationDetails, tc);
ctrlAnnotationDetails.SetupAnnotations(displaySearch1);
}
private void RunAutomatic()
{
string[] parameters = System.Environment.CommandLine.Split(" ".ToCharArray());