private void ChargerCategorie()
 {
     try
     {
         if (SessionObject.LstCategorie != null && SessionObject.LstCategorie.Count != 0)
         {
             this.CboCATEG.ItemsSource       = null;
             this.CboCATEG.DisplayMemberPath = "LIBELLE";
             this.CboCATEG.ItemsSource       = SessionObject.LstCategorie;
             return;
         }
         Galatee.Silverlight.ServiceAccueil.AcceuilServiceClient service = new Galatee.Silverlight.ServiceAccueil.AcceuilServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Accueil"));
         service.RetourneCategorieCompleted += (s, args) =>
         {
             if (args != null && args.Cancelled)
             {
                 return;
             }
             SessionObject.LstCategorie      = args.Result;
             this.CboCATEG.ItemsSource       = null;
             this.CboCATEG.DisplayMemberPath = "LIBELLE";
             this.CboCATEG.ItemsSource       = SessionObject.LstCategorie;
         };
         service.RetourneCategorieAsync();
         service.CloseAsync();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
        private void ChargerCategorie()
        {
            try
            {
                int handler___ = LoadingManager.BeginLoading("Recuperation des Catégories ...");
                Galatee.Silverlight.ServiceAccueil.AcceuilServiceClient service = new Galatee.Silverlight.ServiceAccueil.AcceuilServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Accueil"));
                service.RetourneCategorieCompleted += (s, args) =>
                {
                    try
                    {
                        if (args != null && args.Cancelled)
                        {
                            return;
                        }
                        SessionObject.LstCategorie = args.Result;
                        ListeCategorie             = SessionObject.LstCategorie;
                        //Utility.ConvertListType<CsCategorieClient, Galatee.Silverlight.ServiceAccueil.CsCategorieClient>(SessionObject.LstCategorie);
                        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;
                        }

                        btnCategorie.IsEnabled = true;
                        LoadingManager.EndLoading(handler___);
                    }
                    catch (Exception e)
                    {
                        LoadingManager.EndLoading(handler___);
                        throw e;
                    }
                };
                service.RetourneCategorieAsync();
                service.CloseAsync();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 private void ChargerCategorie()
 {
     try
     {
         Galatee.Silverlight.ServiceAccueil.AcceuilServiceClient service = new Galatee.Silverlight.ServiceAccueil.AcceuilServiceClient(Utility.Protocole(), Utility.EndPoint("Accueil"));
         service.RetourneCategorieCompleted += (s, args) =>
         {
             if (args != null && args.Cancelled)
             {
                 return;
             }
             SessionObject.LstCategorie = args.Result;
         };
         service.RetourneCategorieAsync();
         service.CloseAsync();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }