//private void ChargerTournee()
        //{
        //    int handler = LoadingManager.BeginLoading("Recuperation des tournées ...");
        //    Galatee.Silverlight.ServiceAccueil.AcceuilServiceClient service = new Galatee.Silverlight.ServiceAccueil.AcceuilServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Accueil"));
        //    service.ChargerLesTourneesCompleted  += (s, args) =>
        //    {
        //        if (args != null && args.Cancelled)
        //            return;
        //        SessionObject.LstZone = args.Result;
        //        if (args.Cancelled || args.Error != null)
        //        {
        //            Message.ShowInformation("Erreur d'invocation du service !", Galatee.Silverlight.Resources.Langue.wcf_error);
        //            LoadingManager.EndLoading(handler);
        //            return;
        //        }
        //        if (args.Result == null | args.Result.Count == 0)
        //        {
        //            Message.ShowInformation("Aucune donnée retournée du système ! ", Galatee.Silverlight.Resources.Langue.errorTitle);
        //            LoadingManager.EndLoading(handler);
        //            return;
        //        }
        //        btnzone.IsEnabled = true ;
        //        btnController .IsEnabled = true ;
        //        LoadingManager.EndLoading(handler);
        //    };
        //    service.ChargerLesTourneesAsync ();
        //    service.CloseAsync();
        //}
        private void ChargerCodeConso()
        {
            try
            {
                int handler___ = LoadingManager.BeginLoading("Récupération des codes consommateur...");
                Galatee.Silverlight.ServiceAccueil.AcceuilServiceClient service = new Galatee.Silverlight.ServiceAccueil.AcceuilServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Accueil"));
                service.RetourneCodeConsomateurCompleted += (s, args) =>
                {
                    try
                    {
                        if (args != null && args.Cancelled)
                        {
                            return;
                        }
                        SessionObject.LstCodeConsomateur = args.Result;
                        //ListeCodeConsomateur= Utility.ConvertListType<CsCodeConsomateur , Galatee.Silverlight.ServiceAccueil.CsCodeConsomateur >(SessionObject.LstCodeConsomateur);
                        ListeCodeConsomateur    = SessionObject.LstCodeConsomateur;
                        btn_CodeConso.IsEnabled = true;

                        if (args.Cancelled || args.Error != null)
                        {
                            Message.ShowError("Erreur d'invocation du service. Réessayer svp! ", Galatee.Silverlight.Resources.Langue.wcf_error);
                            LoadingManager.EndLoading(handler___);
                            return;
                        }

                        if (args.Result == null | args.Result.Count == 0)
                        {
                            Message.ShowInformation("Aucune donnée retournée du service. Réessayer svp! ", Galatee.Silverlight.Resources.Langue.errorTitle);
                            LoadingManager.EndLoading(handler___);
                            return;
                        }

                        LoadingManager.EndLoading(handler___);
                    }
                    catch (Exception e)
                    {
                        LoadingManager.EndLoading(handler___);
                        throw e;
                    }
                };
                service.RetourneCodeConsomateurAsync();
                service.CloseAsync();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }