void GetListeProfil() { try { if (SessionObject.ListeDesProfils != null && SessionObject.ListeDesProfils.Count != 0) { ProfilListe = SessionObject.ListeDesProfils; return; } AdministrationServiceClient admClient = new AdministrationServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Administration")); admClient.RetourneListeAllProfilUserCompleted += (sen, result) => { if (result.Cancelled || result.Error != null) { string error = result.Error.Message; Message.Show(Galatee.Silverlight.Resources.Langue.wcf_error, "GetAllRole"); return; } if (result.Result != null && result.Result.Count > 0) { SessionObject.ListeDesProfils = result.Result; ProfilListe = result.Result; } }; admClient.RetourneListeAllProfilUserAsync(); } catch (Exception ex) { throw ex; } }