Esempio n. 1
0
 public OrderDetails()
 {
     InitializeComponent();
     serv      = new DemoWCFService.DemoServiceServerClient();
     customers = serv.GetCustomerIds().ToList();
     this.CustomerIds.ItemsSource = customers;
 }
Esempio n. 2
0
        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;
        }