private async void ActualizarServicios()
        {
            try
            {
                _loadingSpinner.Visibility = ViewStates.Visible;

                _servicios = await servicioService.ObtenerServicios();

                _filteredList         = _servicios.ToList();
                _servicioSeleccionado = null;
                _listView.Adapter     = new ServicioListAdapter(this.Activity, _filteredList);

                ConfigurarAlturaListView();

                LimpiarCampos();
            }
            catch
            {
                //
            }
            finally
            {
                _loadingSpinner.Visibility = ViewStates.Gone;
            }
        }
Пример #2
0
        private async void LoadFuentes()
        {
            _servicios = (await _servicioService.ObtenerServicios()).ToList();

            var adapter = new ArrayAdapter <Servicio>(this.Activity, Android.Resource.Layout.SimpleSpinnerItem, _servicios.ToArray());

            _servicio.Adapter = adapter;
        }
        private async void LoadServicios()
        {
            var array = await servicioService.ObtenerServicios();

            var adapter = new ArrayAdapter <Servicio>(this.Activity, Android.Resource.Layout.SimpleSpinnerItem, array.ToArray());

            _servicioDropDown.Adapter = adapter;
        }