Beispiel #1
0
        private async void Precedent_PointerPressed(object sender, PointerRoutedEventArgs e)
        {
            if (Plus < 0)
            {
                Plus = 0;
            }
            Plus -= 3;
            YnovServiceClient MyService = new YnovServiceClient();
            ObservableCollection <MyWebService.Vente> IVente = await MyService.VentesAsync();

            (AreaChart.Series[0] as AreaSeries).ItemsSource = IVente.Skip(Plus).Take(3);
        }
Beispiel #2
0
        private async void Suivant_PointerPressed(object sender, PointerRoutedEventArgs e)
        {
            YnovServiceClient MyService = new YnovServiceClient();
            ObservableCollection <MyWebService.Vente> IVente = await MyService.VentesAsync();

            if (Plus > IVente.Count - 14)
            {
                Plus = 0;
            }
            else
            {
                Plus += 3;
            }
            (AreaChart.Series[0] as AreaSeries).ItemsSource = IVente.Skip(Plus).Take(3);
        }
Beispiel #3
0
        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();
        }