public async static Task LoadData() { YnovServiceClient ysc = new YnovServiceClient(); VariableGlobale.IVente = await ysc.VentesAsync(); VariableGlobale.IResultat = await ysc.ResultatsAsync(); VariableGlobale.IClient = await ysc.ClientsAsync(); VariableGlobale.Fournisseurs = await ysc.GetAllSuppliersAsync(); VariableGlobale.Clients = await ysc.GetCustomersAsync(); VariableGlobale.Produits = await ysc.GetAllProductsAsync(); VariableGlobale.Factures = await ysc.GetAllOrderAsync(); VariableGlobale.FacturesElement = await ysc.GetAllOrderItemAsync(); await ysc.CloseAsync(); }