Пример #1
0
        protected override async void OnAppearing()
        {
            base.OnAppearing();
            dialog = DependencyService.Get <ILoadingDIalog>();
            dialog.Show();
            var config = await Config.db.Table <Settings>().ToListAsync();

            foreach (var item in config)
            {
                item.DisplayName = i18n.getString(item.DisplayName);
            }
            lstConfig.ItemsSource = config;
            dialog.Hide();
        }
Пример #2
0
        public OtherInfo()
        {
            InitializeComponent();
            Title               = i18n.getString("L_OTRAS_INFORMACIONES");
            webView.Source      = Services.Config.OtherInfo.ToString();
            this.BindingContext = this;
            dialog              = DependencyService.Get <ILoadingDIalog>();
            webView.Navigating += (sender, e) =>
            {
                dialog.Show();
            };

            webView.Navigated += (sender, e) =>
            {
                dialog.Hide();
            };
        }
Пример #3
0
        public Historico()
        {
            InitializeComponent();
            this.BindingContext = this;
            lblFechaDesde.Text  = DateTime.Now.ToString("dd-MM-yyyy");
            lblFechaHasta.Text  = DateTime.Now.ToString("dd-MM-yyyy");

            vm = new HistoricoVm()
            {
                Transaccion = new Models.ChooseTransaccionItem()
                {
                    Index = 0, Descripcion = i18n.getString("L_TODAS")
                }
            };
            var tap    = new TapGestureRecognizer();
            var tapTrs = new TapGestureRecognizer();

            tap.Tapped    += Cuentas_Tapped;
            tapTrs.Tapped += Transacciones_Tapped;

            scrollCuentas.GestureRecognizers.Add(tap);
            scrollTransacciones.GestureRecognizers.Add(tapTrs);
            lblCuenta.TextColor      = Color.FromHex("#ddd");
            lblTransaccion.TextColor = Color.FromHex("#ddd");

            if (Device.RuntimePlatform == Device.iOS)
            {
                btnBuscar.IsVisible = false;
                ToolbarItems.Add(new ToolbarItem()
                {
                    Text    = i18n.getString("L_BUSCAR"),
                    Order   = ToolbarItemOrder.Primary,
                    Command = new Command((obj) =>
                    {
                        Search();
                    })
                });
            }
            lblTransaccion.Text = vm.Transaccion.Descripcion;
            dialog = DependencyService.Get <ILoadingDIalog>();
        }
Пример #4
0
        void Initialize()
        {
            this.vm             = new TransferenciaVM();
            dialog              = DependencyService.Get <ILoadingDIalog>();
            this.BindingContext = this;
            this.Title          = GetTitle();
            var onOrigenTap  = new TapGestureRecognizer();
            var onDestinoTap = new TapGestureRecognizer();

            onOrigenTap.Tapped  += (CuentaOrigen_Tapped);
            onDestinoTap.Tapped += (CuentaDestino_Tapped);

            if (Device.RuntimePlatform == Device.iOS)
            {
                scrollCuentaOrigen.GestureRecognizers.Add(onOrigenTap);
                scrollCuentaDestino.GestureRecognizers.Add(onDestinoTap);
                lblCuentaOrigen.TextColor  = Color.FromHex("#ddd");
                lblCuentaDestino.TextColor = Color.FromHex("#ddd");

                vm.Cuenta_Origen = new Models.ChooseCuentaItem()
                {
                    NOMBRE_PUBLICO = i18n.getString("L_SELECCIONE_CUENTA")
                };
                vm.Cuenta_Destino = new Models.ChooseCuentaItem()
                {
                    NOMBRE_PUBLICO = i18n.getString("L_SELECCIONE_CUENTA")
                };
                ToolbarItems.Add(new ToolbarItem()
                {
                    Text    = i18n.getString("L_TRANSFERIR"),
                    Command = new Command(Transferir)
                });
            }

            if (Device.RuntimePlatform == Device.Android)
            {
                btnCuentaOrigen.GestureRecognizers.Add(onOrigenTap);
                btnCuentaDestino.GestureRecognizers.Add(onDestinoTap);
            }
        }
Пример #5
0
        public BloqueoTarjetas()
        {
            InitializeComponent();
            var tarjetasTapped    = new TapGestureRecognizer();
            var tipoBloqueoTapped = new TapGestureRecognizer();

            tarjetasTapped.Tapped    += Tarjetas_Tapped;
            tipoBloqueoTapped.Tapped += TiposBloqueo_Tapped;

            scrollTarjeta.GestureRecognizers.Add(tarjetasTapped);
            scrollTipoBloqueo.GestureRecognizers.Add(tipoBloqueoTapped);


            dialog = DependencyService.Get <ILoadingDIalog>();
            toast  = DependencyService.Get <IToast>();
            this.BindingContext      = this;
            this.vm                  = new BloqueoTarjetaVM();
            lblTarjeta.TextColor     = Color.FromHex("#ddd");
            lblTipoBloqueo.TextColor = Color.FromHex("#ddd");


            this.vm.Tarjeta = new Models.ChooseTarjetaItem()
            {
                tarjetaEncriptada = i18n.getString("L_CHOOSE_CARD")
            };
            this.vm.Tipo_Bloqueo = new Models.ChooseTipoBloqueoItem()
            {
                T_TiposDeBloqueo_Descripcion = i18n.getString("L_CHOOSE_BLOCK_TYPE")
            };

            if (Device.RuntimePlatform == Device.iOS)
            {
                ToolbarItems.Add(new ToolbarItem()
                {
                    Text    = i18n.getString("L_ACEPTAR"),
                    Command = new Command(Bloquear)
                });
            }
        }