Esempio n. 1
0
        void _vm_desbloqueoTokenCompleted(DesbloqueoArgs args)
        {
            if (!args.error)
            {
                switch (args.clave)
                {
                    case Errors.Generic.OK:
                        horaOp = args.hora;
                        fechaOp = args.fecha;
                        refOp = args.referencia;
                        (Application.Current as App).EstatusToken = EstatusToken.A;
                        navigate(views.Desbloqueo2de2);
                        break;

                    case Errors.Generic.GBL_03:
                        this._vm.CerrarSesion();
                        this.NavigateTo(Views._PanoramaPublicoView);
                        this.App().SesionIniciada = false;
                        break;

                    case Errors.Generic.GBL_07:
                        (Application.Current as App).EstatusToken = EstatusToken.B;
                        break;

                }
            }
            Progress.Hide();
        }
 public DesbloqueoTokenViewModel(System.Windows.Threading.Dispatcher dispatcher) : base (dispatcher)
 {
     args = new DesbloqueoArgs();
 }