Пример #1
0
        async Task ExecuteLoadItemsCommand()
        {
            if (IsBusy)
            {
                return;
            }

            IsBusy = true;

            try
            {
                ItemsBooks.Clear();
                var allBoks = await conection.GetAllVehicles();


                //var items = await DataStore.GetItemsAsync(true);
                foreach (var libro in allBoks)
                {
                    ItemsBooks.Add(libro);
                }
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex);
            }
            finally
            {
                IsBusy = false;
            }
        }
Пример #2
0
        async Task llenarDeComienzo()
        {
            var allBoks = await conection.GetAllBooks();

            foreach (var libro in allBoks)
            {
                ItemsBooks.Add(libro);
            }
        }
Пример #3
0
        async Task llenarDeComienzo()
        {
            var allVehiculos = await conection.GetAllVehicles();

            foreach (var _vehiculo in allVehiculos)
            {
                ItemsBooks.Add(_vehiculo);
            }
        }
Пример #4
0
        async Task llenarDeComienzo()
        {
            var allBoks = await conection.GetAllBooks();

            foreach (var libro in allBoks)
            {
                var valor = Application.Current.Properties["id_User"];
                if (libro.idUser == valor.ToString())
                {
                    ItemsBooks.Add(libro);
                }
            }
        }