private void ChargeGrid() { List <aImportFichier> LstImport = new List <aImportFichier>(); AdministrationServiceClient service1 = new AdministrationServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Administration")); service1.GetAllImportCompleted += (sr, res) => { if (res != null && res.Cancelled) { return; } LstImport = res.Result; if (LstImport != null && LstImport.Count > 0) { dgImport.ItemsSource = LstImport; } }; service1.GetAllImportAsync(); service1.CloseAsync(); }