Show the amount of time it takes to complete a search

Remove Debug Messages
Eliminate crash due to SQL connections
The location for search result was changed from bullets to meaningful values.
This commit is contained in:
Rich
2016-02-12 20:00:10 +00:00
parent 006d194d01
commit 697fbf98f8
5 changed files with 51 additions and 17 deletions

View File

@@ -290,6 +290,7 @@ namespace VEPROMS
Database.LastDatabase = Properties.Settings.Default.DefaultDB;
// Setup the Context menu for DisplaySearch including the symbols
displaySearch1.SetupContextMenu();
displaySearch1.SearchComplete += displaySearch1_SearchComplete;
if (!FormatInfo.HasLatestChanges())
throw new Exception("Inconsistent Formats");
if (!ItemAuditInfo.IsChangeManagerVersion())
@@ -323,6 +324,10 @@ namespace VEPROMS
tv.PauseRefresh += tv_PauseRefresh;
tv.UnPauseRefresh += tv_UnPauseRefresh;
}
void displaySearch1_SearchComplete(object sender, DisplaySearchEventArgs args)
{
ProgBarText = string.Format("{0} Seconds", args.HowLong.TotalSeconds);
}
private bool _PauseRefresh = false;
public bool PauseRefresh
{