public LastProductsUserControlVM(LastProductsUserControlV view, ObservableCollection <ScannedProduct> scannedProduct) { this.View = view; worker.DoWork += worker_DoWork; worker.RunWorkerCompleted += worker_RunWorkerCompleted; SourceList = scannedProduct; }
public LastProductsUserControlVM(LastProductsUserControlV view) { this.View = view; worker.DoWork += worker_DoWork; worker.RunWorkerCompleted += worker_RunWorkerCompleted; worker.RunWorkerAsync(); }