コード例 #1
0
        private void RechercheClient(CsReclamationRcl leClient)
        {
            try
            {
                Galatee.Silverlight.ServiceAccueil.AcceuilServiceClient service1 = new Galatee.Silverlight.ServiceAccueil.AcceuilServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Accueil"));
                service1.RetourneReclamationCompleted += (s, args) =>
                {
                    if (args != null && args.Cancelled)
                    {
                        return;
                    }

                    DonnesDatagrid.Clear();
                    foreach (var item in args.Result)
                    {
                        DonnesDatagrid.Add(item);
                    }
                    dtgrdClient.ItemsSource = DonnesDatagrid;
                };
                service1.RetourneReclamationAsync(leClient.Fk_IdCentre.Value, leClient.CENTRE, leClient.Client, leClient.Ordre, leClient.NumeroReclamation);
                service1.CloseAsync();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }