public OrderDetails() { InitializeComponent(); serv = new DemoWCFService.DemoServiceServerClient(); customers = serv.GetCustomerIds().ToList(); this.CustomerIds.ItemsSource = customers; }
public CustomerDetails() { InitializeComponent(); serv = new DemoWCFService.DemoServiceServerClient(); customerViewSource = serv.GetCustomers().ToList(); if (customerViewSource.Count > 0) { this.existingCustomerGrid.DataContext = customerViewSource.FirstOrDefault(); this.currentIndex = 0; } // Populate customer id combo box customerIds = customerViewSource.Select(c => c.CustomerID).ToList(); CustomerIds.ItemsSource = customerIds; }