public CustomerUIObjects GetCustomers() { CustomerUIObjects customers = new CustomerUIObjects(); List <CustomerDataObject> customerDataObjects = _dataAccessLayer.GetCustomers(); foreach (var customerDataObject in customerDataObjects) { customers.Add(new CustomerUIObject(customerDataObject)); } customers.ItemEndEdit += CustomersOnItemEndEdit; customers.CollectionChanged += new NotifyCollectionChangedEventHandler(CustomersCollectionChanged); return(customers); }