public PerfilClienteMasterVM()
        {
            usuario = new UsuarioModel();

            //RECUPERA O USUARIO LOGADO
            var cpf = Xamarin.Forms.Application.Current.Properties["Cpf_user"].ToString();

            usuario = conexao.ObterUsuario(cpf);

            GoContaCommand     = new Command(GoConta);
            GoLogoutCommand    = new Command(Logout);
            GoRelatorioCommand = new Command(GoRelatorio);
        }
Beispiel #2
0
        public ContaClienteVM()
        {
            User = new UsuarioModel();

            //PARA PREENCHER PLACEHOLDER
            var cpf = Xamarin.Forms.Application.Current.Properties["Cpf_user"].ToString();

            User     = conexao.ObterUsuario(cpf);
            oldSenha = User.senha;

            AlterarCommand      = new Command(UpdateConta);
            ExcluirContaCommand = new Command(ExcluirConta);
        }