void ReleaseDesignerOutlets() { if (ButtonLogin != null) { ButtonLogin.Dispose(); ButtonLogin = null; } if (txtEmpresaLogin != null) { txtEmpresaLogin.Dispose(); txtEmpresaLogin = null; } if (txtSenhaLogin != null) { txtSenhaLogin.Dispose(); txtSenhaLogin = null; } if (txtUsuarioLogin != null) { txtUsuarioLogin.Dispose(); txtUsuarioLogin = null; } }
void ReleaseDesignerOutlets() { if (ButtonLogin != null) { ButtonLogin.Dispose(); ButtonLogin = null; } if (ButtonNewUser != null) { ButtonNewUser.Dispose(); ButtonNewUser = null; } if (TextFieldPassword != null) { TextFieldPassword.Dispose(); TextFieldPassword = null; } if (TextFieldUsername != null) { TextFieldUsername.Dispose(); TextFieldUsername = null; } }
void ReleaseDesignerOutlets() { if (LabelLoginInfo != null) { LabelLoginInfo.Dispose(); LabelLoginInfo = null; } if (ActivityLoggingIn != null) { ActivityLoggingIn.Dispose(); ActivityLoggingIn = null; } if (ButtonLogin != null) { ButtonLogin.Dispose(); ButtonLogin = null; } if (LabelLoggingIn != null) { LabelLoggingIn.Dispose(); LabelLoggingIn = null; } }
private void PasswordBox_KeyDown(object sender, System.Windows.Input.KeyEventArgs e) { if (e.Key == System.Windows.Input.Key.Enter) { ButtonLogin.RaiseEvent(new RoutedEventArgs(Button.ClickEvent)); e.Handled = true; } }
private void Localize() { Title = Strings.LOGIN; TextFieldUsername.Placeholder = Strings.USERNAME; TextFieldPassword.Placeholder = Strings.PASSWORD; ButtonLogin.SetTitle(Strings.LOGIN, UIControlState.Normal); ButtonNewUser.SetTitle(Strings.NEW_USER, UIControlState.Normal); }
public void SignIn(User user) { PersonalAccount.Click(); PersonalAccountEmail.Click(); PersonalAccountEmail.SendKeys(user.Email); PersonalAccountPassword.Click(); PersonalAccountPassword.SendKeys(user.Password); ButtonLogin.Click(); log.Info("Person signed up"); }
private void PassField_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { ButtonLogin.PerformClick(); } if (e.KeyCode == Keys.Up || e.KeyCode == Keys.Down || e.KeyCode == Keys.Left || e.KeyCode == Keys.Right) { NameField.Focus(); } }
public DashBoardPage Loging(string username, string pass) { Console.WriteLine("Find for the form to login"); Utils.FindElementVisible(By.Id("txtUsername")); Console.WriteLine("Fill Login and password with values: " + username + " and " + pass); UserName.SendKeys(username); UserPassword.Clear(); UserPassword.SendKeys(pass); Console.WriteLine("Click on Loging button"); ButtonLogin.Click(); return(new DashBoardPage()); }
public override void ViewDidLoad() { base.ViewDidLoad(); // Perform any additional setup after loading the view, typically from a nib. Button.AccessibilityIdentifier = "myButton"; Button.TouchUpInside += delegate { var title = string.Format("{0} clicks!", count++); Button.SetTitle(title, UIControlState.Normal); IApiProviderService apiProviderService = AppDelegate.Resolve <IApiProviderService>(); Task.Run(async() => { ParametersRequest request = new ParametersRequest(); request.data = new List <ParametersData>(); request.data.Add(new ParametersData { type = "RemoteConfigInformation", id = "111", attributes = new ParametersAttributes { appID = "co.com.bancolombia.canalesmoviles.apppyme", } }); RequestService requestService = new RequestService(); requestService.EndPoint = "/adapters/RemoteConfiAdapter_V2/remote-config/remote-config-list"; requestService.Request = request; requestService.Scope = "noAuthenticityScope"; var abc = await apiProviderService.Provider(ProviderType.MobileFirst, AppDelegate.Resolve <IMobileFirstClients>()).Post(requestService); }); }; ButtonLogin.AccessibilityIdentifier = "myButtonLogin"; ButtonLogin.TouchUpInside += delegate { var title = string.Format("{0} Login!", count++); ButtonLogin.SetTitle(title, UIControlState.Normal); IApiProviderService apiProviderService = AppDelegate.Resolve <IApiProviderService>(); Task.Run(async() => { ProviderResult response = await apiProviderService.Provider(ProviderType.MobileFirst, AppDelegate.Resolve <IMobileFirstClients>()) .Login(this, "UserAuthenticationSecurityCheck_V2", new Newtonsoft.Json.Linq.JObject()); }); }; }
void ReleaseDesignerOutlets() { if (ButtonLogin != null) { ButtonLogin.Dispose(); ButtonLogin = null; } if (ConfirmPasswordField != null) { ConfirmPasswordField.Dispose(); ConfirmPasswordField = null; } if (ImageView != null) { ImageView.Dispose(); ImageView = null; } if (PasswordField != null) { PasswordField.Dispose(); PasswordField = null; } if (RegisterButton != null) { RegisterButton.Dispose(); RegisterButton = null; } if (ScrollView != null) { ScrollView.Dispose(); ScrollView = null; } if (UsernameField != null) { UsernameField.Dispose(); UsernameField = null; } if (ActivityIndicator != null) { ActivityIndicator.Dispose(); ActivityIndicator = null; } }
public Login() { InitializeComponent(); //Strings.strings.Culture = new System.Globalization.CultureInfo("en-US"); imgLogo.Source = ibanking.Models.Shared.Institucion.Logo; txtUsername.Completed += (sender, e) => { txtPassword.Focus(); }; txtPassword.Completed += (sender, e) => { ButtonLogin.Focus(); }; ButtonLogin.Clicked += async(sender, e) => { if (!string.IsNullOrEmpty(txtUsername.Text) && !string.IsNullOrEmpty(txtPassword.Text)) { var dialog = DependencyService.Get <ILoadingDIalog>(); dialog.Show(); bool IsLogged = await LoginService.DoLogin(txtUsername.Text, txtPassword.Text); dialog.Hide(); if (IsLogged) { //var resumen = new NavigationPage(new Resumen.Resumen()); //Application.Current.MainPage = resumen; //await Navigation.PopToRootAsync(true); Models.Utils.ClearNavigationStack(Navigation); //await Navigation.PushAsync(new ibanking.NavDrawerPage(), true); Application.Current.MainPage = new NavDrawerPage(); } else { await DisplayAlert(i18n.getString("L_NO_INICIO_SESION"), i18n.getString("L_USUARIO_CONTRASENA"), i18n.getString("L_ACEPTAR")); } } else { await DisplayAlert("", i18n.getString("L_USUARIO_CONTRASENA_REQUERIDA"), i18n.getString("L_ACEPTAR")); } }; }
public void Login(string email, string password) { TextEmail.SendKeys(email); TextPassword.SendKeys(password); ButtonLogin.Click(); }