コード例 #1
0
ファイル: Modele.cs プロジェクト: gfourny/UWPExam
        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();
        }