private void GetColonneImport(int codeImport) { AdministrationServiceClient service1 = new AdministrationServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Administration")); service1.GetAllImportFichierColonneCompleted += (sr, res) => { if (res != null && res.Cancelled) { return; } listColonne = res.Result; if (listColonne != null && listColonne.Count > 0) { dgColonne.ItemsSource = listColonne; } }; service1.GetAllImportFichierColonneAsync(codeImport); service1.CloseAsync(); }
private void GetColonneImport(int codeImport) { List <aImportFichierColonne> listColonne = new List <aImportFichierColonne>(); AdministrationServiceClient service1 = new AdministrationServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Administration")); service1.GetAllImportFichierColonneCompleted += (sr, res) => { if (res != null && res.Cancelled) { return; } listColonne = res.Result; if (listColonne != null && listColonne.Count > 0) { txtNbCol.Text = listColonne.Count.ToString(); } }; service1.GetAllImportFichierColonneAsync(codeImport); service1.CloseAsync(); }