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); }
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); }