public ProductsManagementUserControlVM(ProductsManagementUserControl view) { this.View = view; new Thread(() => { FetchingFromDB = true; Initialize(new ProductsManagementUserControlM().GetProducts()); }).Start(); }
public ProductsManagementUserControlVM(ProductsManagementUserControl view, List <Product> products) { this.View = view; new Thread(() => { FetchingFromDB = true; Initialize(products); }).Start(); }