public void RemplirCombo() { try { AddressServiceClient asc = new AddressServiceClient(); cbListeAdr.ItemsSource = asc.get_list_address().ToList(); cbListeAdr.DisplayMemberPath = "AddressName"; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public void RemplirDataGrid() { try { AddressServiceClient asc = new AddressServiceClient(); List <Address> listAdr = asc.get_list_address().ToList(); dg.ItemsSource = listAdr; } catch (Exception ex) { MessageBox.Show(ex.Message); } }