private void GetConnexionInfos() { try { AdministrationServiceClient connex = new AdministrationServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Administration")); connex.RetourneBdConfigCompleted += (_, rest) => { if (rest.Cancelled || rest != null) { Message.Show(Langue.wcf_error, Langue.errorTitle); return; } if (rest.Result == null && rest.Result.Count == 0) { Message.Show(Langue.msgNodata, Langue.errorTitle); return; } dbs.AddRange(rest.Result); }; connex.RetourneBdConfigAsync(); } catch (Exception ex) { throw ex; } }