示例#1
0
 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);
     }
 }
示例#2
0
 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);
     }
 }