Пример #1
0
 public void GivenIngresoALaPaginaPrincipalDeBancolombiaYALaOpcionDeSimulador()
 {
     driver        = DriverFactory.GetDriver(TipoDriver.Chrome);
     principalPage = new PrincipalPage(driver);
     principalPage.IngresoSimuladorCreditoSolucionInmobiliaria();
     //ScenarioContext.Current.Pending();
 }
Пример #2
0
 protected override void OnStart()
 {
     // Handle when your app starts
     MessagingCenter.Subscribe <String>("", "LoginSucesso",
                                        (sender) =>
     {
         MainPage = new PrincipalPage();
     });
 }
Пример #3
0
 public App()
 {
     InitializeComponent();
     LoadGlobalVariables();
     // Definindo se deve apresentar tela de login ou ir para tela principal
     if (Model.Global.UsuarioLogado != null)
     {
         MainPage = new PrincipalPage();
     }
     else
     {
         MainPage = new LoginPage();
     }
 }
Пример #4
0
        protected override void OnStart()
        {
            MessagingCenter.Subscribe <LoginViewModel>(this, "LoginSucesso",
                                                       (sender) =>
            {
                MainPage = new PrincipalPage();
            });


            MessagingCenter.Subscribe <String>("", "Logoff",
                                               (sender) =>
            {
                new LogoffBusiness().Logoff();
                MainPage = new LoginPage();
            });
        }
Пример #5
0
        protected override void OnStart()
        {
            // Handle when your app starts
            MessagingCenter.Subscribe <LoginViewModel>(this, "LoginSucesso",
                                                       (sender) =>
            {
                MainPage = new PrincipalPage();
                //Model.Global.usuario = new Layers.Service.UsuarioService().Get();
            });

            MessagingCenter.Subscribe <LoginViewModel>(this, "Cadastrar",
                                                       (sender) =>
            {
                MainPage = new CadastroPage();
            });

            MessagingCenter.Subscribe <CadastroViewModel>(this, "Voltar",
                                                          (sender) =>
            {
                MainPage = new LoginPage();
            });

            MessagingCenter.Subscribe <CadastroViewModel>(this, "Cadastrar",
                                                          (sender) =>
            {
                MainPage = new LoginPage();
            });

            MessagingCenter.Subscribe <String>("", "Logoff",
                                               (sender) =>
            {
                new LogoffBusiness().Logoff();

                MainPage = new LoginPage();
            });

            /*MessagingCenter.Subscribe<String>("", "Logoff",
             *  (sender) =>
             *  {
             *      MainPage = new LoginPage();
             *      //Model.Global.usuario = new Layers.Service.UsuarioService().Get();
             *  });*/
        }
Пример #6
0
        protected override void OnStart()
        {
            // Handle when your app starts
            MessagingCenter.Subscribe <LoginViewModel>(this, "LoginSucesso",
                                                       (sender) =>
            {
                DependencyService.Get <IMessage>().ShortAlert("Teste Subscribe");
                MainPage = new PrincipalPage();
            });

            // Handle when your app starts
            MessagingCenter.Subscribe <String>("", "Logoff",
                                               (sender) =>
            {
                // new LogoffBusiness().Logoff();

                MainPage = new LoginPage();
            });

            // Handle when your app starts
            MessagingCenter.Subscribe <PessoaFisicaViewModel>(this, "RelatorioPageAbrir",
                                                              (sender) =>
            {
                var principalPage = new PrincipalPage();

                principalPage.Detail      = new NavigationPage(new RelatorioPage());
                principalPage.IsPresented = false;

                MainPage = principalPage;
            });

            MessagingCenter.Subscribe <PessoaJuridicaViewModel>(this, "RelatorioPageAbrir",
                                                                (sender) =>
            {
                var principalPage = new PrincipalPage();

                principalPage.Detail      = new NavigationPage(new RelatorioPage());
                principalPage.IsPresented = false;

                MainPage = principalPage;
            });
        }
Пример #7
0
        public App()
        {
            InitializeComponent();

            MainPage = new PrincipalPage();
        }