private void galatee_OkClickedChoixClient(object sender, EventArgs e)
        {
            Galatee.Silverlight.MainView.UcListeGenerique ctrs = sender as Galatee.Silverlight.MainView.UcListeGenerique;
            if (ctrs.isOkClick)
            {
                Galatee.Silverlight.ServiceAccueil.CsClient _UnClient = (Galatee.Silverlight.ServiceAccueil.CsClient)ctrs.MyObject;

                this.Txt_NomClient.Text      = _UnClient.NOMABON;
                this.Txt_AdresseClient.Text  = !string.IsNullOrEmpty(_UnClient.ADRMAND1) ? _UnClient.ADRMAND1 : string.Empty;
                this.Txt_ReferenceClient.Tag = _UnClient;
            }
        }
        //private void GetData()
        //{
        //    try
        //    {
        //        FraudeServiceClient client = new FraudeServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Fraude"));
        //        client.SelectAllClientCompleted += (ssender, args) =>
        //        {
        //            if (args.Cancelled || args.Error != null)
        //            {
        //                string error = args.Error.Message;
        //                throw new Exception(error);
        //            }
        //            if (args.Result == null)
        //            {
        //                Message.ShowError(Galatee.Silverlight.Resources.Devis.Languages.msgErreurChargementDonnees, Galatee.Silverlight.Resources.Devis.Languages.lbl_Client);
        //                return;
        //            }
        //            DonnesDatagrid.Clear();
        //            foreach (var item in args.Result)
        //            {
        //                DonnesDatagrid.Add(item);
        //                LeClientRecherche.Add(item);

        //            }
        //            dtgrdClient.ItemsSource = DonnesDatagrid;
        //        };
        //        client.SelectAllClientAsync();
        //    }
        //    catch (Exception ex)
        //    {
        //        throw ex;
        //    }
        //}

        private void btn_Rechercher_Click_1(object sender, RoutedEventArgs e)
        {
            if (this.Txt_CodeCentre.Tag != null && !string.IsNullOrEmpty(this.Txt_CodeCentre.Text) && !string.IsNullOrEmpty(this.Txt_Client.Text))
            {
                Galatee.Silverlight.ServiceAccueil.CsClient leClient = new Galatee.Silverlight.ServiceAccueil.CsClient();
                leClient.FK_IDCENTRE = (int)this.Txt_CodeCentre.Tag;
                leClient.CENTRE      = this.Txt_CodeCentre.Text;
                leClient.REFCLIENT   = this.Txt_Client.Text;
                leClient.ORDRE       = this.Txt_Ordre.Text;
                RechercheClient(leClient);
            }
        }
        private void RechercheClient(Galatee.Silverlight.ServiceAccueil.CsClient leClient)
        {
            try
            {
                Galatee.Silverlight.ServiceAccueil.AcceuilServiceClient service = new Galatee.Silverlight.ServiceAccueil.AcceuilServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Accueil"));

                //FraudeServiceClient service = new FraudeServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Fraude"));
                service.RetournelstClientCompleted += (s, args) =>
                {
                    if (args.Cancelled || args.Error != null)
                    {
                        string error = args.Error.Message;
                        Message.ShowError(error, "");
                        return;
                    }
                    if (args.Result == null)
                    {
                        //Message.ShowError(Languages.msgErreurChargementDonnees, Languages.Parametrage);
                        Message.ShowError(Galatee.Silverlight.Resources.Devis.Languages.msgErreurChargementDonnees, "");
                        return;
                    }
                    else if (args.Result.Count() <= 0)
                    {
                        //Message.ShowError(Languages.msgErreurChargementDonnees, Languages.Parametrage);
                        Message.ShowError(Galatee.Silverlight.Resources.Devis.Languages.msgErreurChargementDonnees, "");
                        return;
                    }

                    DonnesDatagrid.Clear();
                    foreach (var item in args.Result)
                    {
                        DonnesDatagrid.Add(item);
                    }
                    dtgrdClient.ItemsSource = DonnesDatagrid;
                };
                service.RetournelstClientAsync(leClient.FK_IDCENTRE.Value, leClient.CENTRE, leClient.REFCLIENT, leClient.ORDRE);
                service.CloseAsync();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 private void AfficherInformationClient(Galatee.Silverlight.ServiceAccueil.CsClient _LeClient)
 {
     DonnesDatagrid.Clear();
     DonnesDatagrid.Add(_LeClient);
     dtgrdClient.ItemsSource = DonnesDatagrid;
 }