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);
 }
Beispiel #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);
            }
        }
Beispiel #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());
 }
Beispiel #6
0
        private void ClickMeButton_Click(object sender, RoutedEventArgs e)
        {
            PersonServiceClient serviceProxy = new PersonServiceClient();

            PersonListBox.ItemsSource = serviceProxy.GetPeople();
        }