Example #1
0
 /// <summary>
 /// Add the new StockTV to the <see cref="StockTVCollection"/>
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e">the new StockTV</param>
 private void StockTVs_StockTVCollectionAdded(object sender, StockTVCollectionChangedEventArgs e)
 {
     App.Current.Dispatcher.Invoke(() =>
     {
         AddStockTVsToCollection(e.StockTV);
     });
 }
Example #2
0
 /// <summary>
 /// Rebuild the <see cref="StockTVCollection"/> after a StockTV removed from the internal <see cref="_stockTVs"/>
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void StockTVs_StockTVCollectionRemoved(object sender, StockTVCollectionChangedEventArgs e)
 {
     App.Current.Dispatcher.Invoke(() =>
     {
         RemoveStockTVsFromCollection();
         AddStockTVsToCollection(_stockTVs);
     });
 }