public CustomerListViewModel(CustomerList customerList, INorthwindDAL northwindDAL) { DeleteEntryCommand = new DelegateCommand(DeleteEntry); OrderCount = new AsyncProperty <int?>(LoadOrderCountLazy); this.northwindDAL = northwindDAL; CustomerList = customerList; }
public MainWindowViewModel(INorthwindDAL northwindDAL) { this.northwindDAL = northwindDAL; RefreshDataCommand = new DelegateCommand(RefreshData); }