Exemple #1
0
 private void valider_Click(object sender, RoutedEventArgs e)
 {
     ServiceReference2.Address a = new ServiceReference2.Address();
     ServiceReference2.AddressServiceClient client = new ServiceReference2.AddressServiceClient();
     a.AddressDistrict   = district.Text;
     a.AddressLastUpdate = DateTime.Now;
     a.AddressName       = addressname.Text;
     a.AddressPostalCode = postalcode.Text;
     a.AddressPostalCode = phone.Text;
     client.Add(a);
 }
        public ajouter_user()
        {
            InitializeComponent();
            ServiceReference2.Address a = new ServiceReference2.Address();
            ServiceReference2.AddressServiceClient client = new ServiceReference2.AddressServiceClient();
            List <ServiceReference2.Address>       li     = new List <ServiceReference2.Address>();

            li = client.get_list_address().ToList();
            addressem.ItemsSource       = li;
            addressem.DisplayMemberPath = "AddressName";

            ServiceReference14.Store s = new ServiceReference14.Store();
            ServiceReference14.StoreServiceClient client1 = new ServiceReference14.StoreServiceClient();
            List <ServiceReference14.Store>       ls      = client1.get_list_store().ToList();

            Storem.ItemsSource       = ls;
            Storem.DisplayMemberPath = "StoreName";
        }