Searching in tbody and jump over not wished stocks improved performance
This commit is contained in:
@ -141,6 +141,10 @@ namespace StockInfoCore
|
||||
|
||||
private void btnValueView_Click(object sender, EventArgs e)
|
||||
{
|
||||
if(!GlobalStopwatch.IsRunning && GlobalStopwatch.EllapsedMillis>0)
|
||||
GlobalStopwatch.Restart();
|
||||
else GlobalStopwatch.Start();
|
||||
|
||||
if (SelectedPersonId == 0)
|
||||
{
|
||||
MessageBox.Show($"Ingen person vald ({SelectedPersonId})");
|
||||
@ -155,6 +159,8 @@ namespace StockInfoCore
|
||||
_stockWindow.Stocks = _stockMarketRepository.StockMarketList;
|
||||
|
||||
Cursor.Current = DefaultCursor;
|
||||
GlobalStopwatch.Stop();
|
||||
GlobalStopwatch.PrintSecs("Before Show Stockwindow");
|
||||
_stockWindow.ShowDialog();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user