void Init() { BackgroundColor = Constants.BackgroundColor; Lbl_FirstName.TextColor = Constants.MainTextColor; Lbl_LastName.TextColor = Constants.MainTextColor; Lbl_Birthdate.TextColor = Constants.MainTextColor; Lbl_Gender.TextColor = Constants.MainTextColor; Lbl_Email.TextColor = Constants.MainTextColor; Lbl_Password.TextColor = Constants.MainTextColor; Lbl_RepeatPassword.TextColor = Constants.MainTextColor; ActivitySpinner.IsVisible = false; LoginIcon.HeightRequest = Constants.LoginIconHeight; //check for internet connection App.StartCheckIfInternet(Lbl_NoInternet, this); //after the firstname is entered, the focus should be on the lastname field Entry_FirstName.Completed += (s, e) => Entry_LastName.Focus(); //after the lastname is entered, the focus should be on the birthday field Entry_LastName.Completed += (s, e) => DatePicker_Birthday.Focus(); //after the birthday is entered, the focus should be on the gender field DatePicker_Birthday.DateSelected += (s, e) => Picker_Gender.Focus(); //after the gender is entered, the focus should be on the email entry field Picker_Gender.SelectedIndexChanged += (s, e) => Entry_Email.Focus(); //after the email is entered, the focus should be on the password entry field Entry_Email.Completed += (s, e) => Entry_Password.Focus(); //after the password is entered, the focus should be on the repeat password entry field Entry_Password.Completed += (s, e) => Entry_RepeatPassword.Focus(); //after the username and the password have been entered, the login function should be triggered Entry_RepeatPassword.Completed += (s, e) => RegisterProcedure(s, e); }
void Init() { BackgroundColor = Constants.BackgroundColor; Lbl_Username.TextColor = Constants.MainTextColor; Lbl_Password.TextColor = Constants.MainTextColor; Lbl_RepeatPassword.TextColor = Constants.MainTextColor; LoginIcon.HeightRequest = Constants.LoginIconHeight; Btn_Register.TextColor = Constants.MainTextColor; Entry_Username.Completed += (s, e) => Entry_Password.Focus(); Entry_Password.Completed += (s, e) => Entry_RepeatPassword.Focus(); }