private void ImpressionHabilitation(string code) { AdministrationServiceClient client = new AdministrationServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Administration")); client.RetourneFonctionProfilMenuCompleted += (ss, res) => { try { if (res.Cancelled || res.Error != null) { string error = res.Error.Message; Message.ShowError(error, "Erreur de donnée"); return; } if (res.Result == null || res.Result.Count == 0) { Message.ShowInformation("Aucune données trouvé", "Information"); return; } lstAImprimer = res.Result; //Utility.ActionDirectOrientation<ServicePrintings.CsHabilitationMenu, ServiceAdministration.CsHabilitationMenu>(res.Result, null , SessionObject.CheminImpression , "ReportHabillitationMenu", "Administration", false); Galatee.Silverlight.Shared.FrmOptionEditon ctrl = new Shared.FrmOptionEditon(); ctrl.Closed += ctrl_Closed; this.IsEnabled = false; ctrl.Show(); } catch (Exception ex) { Message.ShowError(ex.Message, "Information"); } }; client.RetourneFonctionProfilMenuAsync(code); }