From 9c2e2abcff6f91ddb42d7507ab2c8dadd0c1a881 Mon Sep 17 00:00:00 2001 From: Kathy Date: Fri, 13 Nov 2009 14:12:04 +0000 Subject: [PATCH] --- PROMS/Volian.Controls.Library/DisplaySearch.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/PROMS/Volian.Controls.Library/DisplaySearch.cs b/PROMS/Volian.Controls.Library/DisplaySearch.cs index 4d0df689..2cd7a0ca 100644 --- a/PROMS/Volian.Controls.Library/DisplaySearch.cs +++ b/PROMS/Volian.Controls.Library/DisplaySearch.cs @@ -574,7 +574,6 @@ namespace Volian.Controls.Library _LoadingList = false; } - //public void UpdateAnnotationSearchResults() //{ // //AnnotationTypeInfo ati = cbxAnnoTypes.SelectedValue as AnnotationTypeInfo; @@ -588,8 +587,6 @@ namespace Volian.Controls.Library // // btnPrnSrchRslts.Enabled = false; // //_LoadingList = false; //} - - private void lbSrchResults_MouseMove(object sender, MouseEventArgs e) { int ResultsMouseOverIndex = lbSrchResults.IndexFromPoint(e.Location); @@ -606,7 +603,8 @@ namespace Volian.Controls.Library private void lbSrchResults_SelectedValueChanged(object sender, EventArgs e) { - if (!_LoadingList) + ItemInfoList iil = lbSrchResults.DataSource as ItemInfoList; + if (!_LoadingList && iil != null && !iil.RefreshingList) { _ItemInfo = lbSrchResults.SelectedValue as ItemInfo; if ((tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[1]) && (_ItemInfo != null))