private void AbstractFetchButton_Click(object sender, RoutedEventArgs e)
 {
     var proxy = new PersonServiceClient();
     IEnumerable<Person> people = proxy.GetPeople();
     foreach (var person in people)
         PersonListBox.Items.Add(person);
 }
Ejemplo n.º 2
0
        private void AbstractFetchButton_Click(object sender, RoutedEventArgs e)
        {
            var proxy = new PersonServiceClient();
            IEnumerable <Person> people = proxy.GetPeople();

            foreach (var person in people)
            {
                PersonListBox.Items.Add(person);
            }
        }
Ejemplo n.º 3
0
        private void ClickMeButton_Click(object sender, RoutedEventArgs e)
        {
            var proxy  = new PersonServiceClient();
            var people = proxy.GetPeople();

            foreach (var person in people)
            {
                PersonListBox.Items.Add(person);
            }
        }
 public IEnumerable <Person> GetPeople()
 {
     return(proxy.GetPeople());
 }
 public IEnumerable <Person> GetPeople()
 {
     return(serviceProxy.GetPeople());
 }
Ejemplo n.º 6
0
        private void ClickMeButton_Click(object sender, RoutedEventArgs e)
        {
            PersonServiceClient serviceProxy = new PersonServiceClient();

            PersonListBox.ItemsSource = serviceProxy.GetPeople();
        }