void addinfo() { ServClient proxy = new ServClient(); proxy.AddPerson(); proxy.Close(); }
void getall() { ServClient proxy = new ServClient(); lstBx.ItemsSource = proxy.GetPeople(); proxy.Close(); }
void getinfo() { ServClient proxy = new ServClient(); List <Person> l = new List <Person>(); l.Add(proxy.GetPerson(2)); lstBx.ItemsSource = l; proxy.Close(); }