private void AfficheDevis()
        {
            if (!string.IsNullOrEmpty(this.Txt_NumDevis.Text))
            {
                int devis = 0;
                if (int.TryParse(Txt_NumDevis.Text, out devis))
                {
                    string format = "00000000";
                    this.Txt_NumDevis.Text = (devis).ToString(format);
                }
                else
                {
                    Message.ShowInformation("Le format du numéro dévis n'est pas valide.Veuillez réessayer svp", "Information");
                    return;
                }

                CaisseServiceClient service2 = new CaisseServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Caisse"));
                service2.RetourneLeDevisCompleted += (send, es) =>
                {
                    try
                    {
                        if (es.Cancelled || es.Error != null)
                        {
                            Message.ShowError(Langue.msg_error_remote, Langue.errorTitle);
                            return;
                        }

                        if (es.Result == null)
                        {
                            Message.ShowInformation("Ce numéro de devis n'est pas connu du système. Veuillez resaisir svp !", Langue.errorTitle);
                            return;
                        }


                        LeDevis = new CsLclient();
                        LeDevis = es.Result;
                        if (!string.IsNullOrEmpty(LeDevis.CLIENT))
                        {
                            //if( LeDevis.EXIGIBLE == null)
                            //{
                            //if (LeDevis.NUMETAPE == SessionObject.Enumere.EtapeEncaissementDevis)
                            //{
                            //    this.Txt_NomClient.Text = LeDevis.NOM;
                            //    this.Txt_NumClient.Text = LeDevis.CLIENT;
                            //    this.Txt_MontantDevis.Text =Convert.ToDecimal( LeDevis.MONTANT).ToString(SessionObject.FormatMontant );
                            //    this.Txt_Avance.Text = Convert.ToDecimal(LeDevis.AVANCE).ToString(SessionObject.FormatMontant);
                            //    this.Txt_MontantTotal.Text = Convert.ToDecimal(LeDevis.MONTANT).ToString(SessionObject.FormatMontant);

                            //}
                            //else
                            //    Message.ShowInformation(Langue.MsgEtapeDevis, "Info");

                            //}
                            //else
                            //    Message.ShowInformation(SessionObject.Enumere.MessageDevisRegler,"Info");
                        }
                    }
                    catch (Exception ex)
                    {
                        Message.ShowError(ex, "Erreur");
                    }
                };
                service2.RetourneLeDevisAsync(this.Txt_NumDevis.Text);
            }
        }