void UpdateAdmStrategieSecurite(ServiceAdministration.CsStrategieSecurite pStrategyUpdate) { try { AdministrationServiceClient majStrategy = new AdministrationServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Administration")); majStrategy.UpdateStrategieSecuriteCompleted += (majs, resultmaj) => { if (resultmaj.Cancelled || resultmaj.Error != null) { string error = resultmaj.Error.Message; Message.Show(error, Galatee.Silverlight.Resources.Langue.informationTitle); return; } if (resultmaj.Result == false) { Message.Show(Galatee.Silverlight.Resources.Administration.Langue.MsgErrorMajUser, Galatee.Silverlight.Resources.Langue.errorTitle); return; } else { Message.Show(Galatee.Silverlight.Resources.Langue.updateSuccess, Galatee.Silverlight.Resources.Langue.ConfirmationTitle); MiseAJourDonnees(pStrategyUpdate, gridView); this.DialogResult = true; } }; majStrategy.UpdateStrategieSecuriteAsync(pStrategyUpdate); } catch (Exception ex) { Message.Show(ex.Message, Galatee.Silverlight.Resources.Langue.errorTitle); } }