Routine for buying stocks fixed
This commit is contained in:
@ -135,8 +135,10 @@ namespace StockInfoCore
|
||||
_regWindow.Stocks = _stockMarketRepository.StockMarketList;
|
||||
Cursor.Current = DefaultCursor;
|
||||
_regWindow.ShowDialog();
|
||||
|
||||
_stockRepository.InsertMany(_regWindow.RegisteredStocks);
|
||||
if (_regWindow.RegisteredStocks.Count > 0)
|
||||
{
|
||||
_stockRepository.InsertMany(_regWindow.RegisteredStocks);
|
||||
}
|
||||
|
||||
ReloadData();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user