Exemplo n.º 1
0
        private void GetData(string repositoryType)
        {
            ClearListBox();

            ICustomerRepository repository = CustomerRepositoryFactory.GetRepository(repositoryType);
            var customers = repository.GetCustomers();

            CustomerListBox.ItemsSource = customers;
            DisplayRepositoryType(repository);
        }
Exemplo n.º 2
0
        private void GetData()
        {
            ClearListBox();

            ICustomerRepository repository = CustomerRepositoryFactory.GetRepository();
            var customers = repository.GetCustomers();

            foreach (var cust in customers)
            {
                CustomerListBox.Items.Add(cust.Name);
            }
        }