public void GivenIngresoALaPaginaPrincipalDeBancolombiaYALaOpcionDeSimulador() { driver = DriverFactory.GetDriver(TipoDriver.Chrome); principalPage = new PrincipalPage(driver); principalPage.IngresoSimuladorCreditoSolucionInmobiliaria(); //ScenarioContext.Current.Pending(); }
protected override void OnStart() { // Handle when your app starts MessagingCenter.Subscribe <String>("", "LoginSucesso", (sender) => { MainPage = new PrincipalPage(); }); }
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(); } }
protected override void OnStart() { MessagingCenter.Subscribe <LoginViewModel>(this, "LoginSucesso", (sender) => { MainPage = new PrincipalPage(); }); MessagingCenter.Subscribe <String>("", "Logoff", (sender) => { new LogoffBusiness().Logoff(); MainPage = new LoginPage(); }); }
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(); * });*/ }
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; }); }
public App() { InitializeComponent(); MainPage = new PrincipalPage(); }