void OnStockChanged(Stock stock)
 {
     var viewmodel = (from vm in AllStocks where vm.Id == stock.Id select vm).FirstOrDefault();
     if (viewmodel == null)
     {
         viewmodel = new SingleStockViewModel(stock);
         AllStocks.Add(viewmodel);
     }
     else
     {
         viewmodel.ExchangeData(stock);
     }
     OnPropertyChanged("ItemSelected");
     OnPropertyChanged("ItemsSelected");
 }
 public StockViewModelEditEventArgs(SingleStockViewModel viewModel)
 {
     EditSingleStockViewModel = viewModel;
 }