예제 #1
0
        public async void Sair()
        {
            bool confirmacao = await this.page.DisplayAlert("Confirmação", "Deseja realmente sair?", "Sim", "Não");

            if (confirmacao)
            {
                pesquisador.logado = 0;
                DAO_Pesquisa08 dao08 = DAO_Pesquisa08.Instance;
                dao08.AtualizarPesquisador(pesquisador);

                await this.page.Navigation.PopAsync();
            }
        }
예제 #2
0
        public LoginPageViewModel(ContentPage page)
        {
            this.page = page;

            ws = WSUtil.Instance;

            IsRunning = false;

            dao08 = DAO_Pesquisa08.Instance;

            CmdEntrar = new Command(() => {
                Entrar();
            });
        }
예제 #3
0
        public static CE_Pesquisa08 ObterPesquisadorLogado()
        {
            DAO_Pesquisa08 dao08 = DAO_Pesquisa08.Instance;

            return(dao08.ObterPesquisadorLogado());
        }