コード例 #1
0
        private void InitializeAllStrings()
        {
            // login
            EmailTextField.Placeholder    = Application.LocalizedString("EmailAddress");
            PasswordTextField.Placeholder = Application.LocalizedString("Password");
            LoginButton.SetTitle(Application.LocalizedString("Login"), UIControlState.Normal);
            WhatIsSeekiosButton.SetTitle(Application.LocalizedString("WhatIsSeekios"), UIControlState.Normal);

            // double action forget/create
            ForgetPasswordButton.SetTitle(Application.LocalizedString("ForgetPassword"), UIControlState.Normal);
            CreateAccountButton.SetTitle(Application.LocalizedString("CreateAccount"), UIControlState.Normal);
            BackButton.SetTitle(Application.LocalizedString("Back"), UIControlState.Normal);

            // createAccount
            FirstNameTextField.Placeholder = Application.LocalizedString("FirstName");
            LastNameTextField.Placeholder  = Application.LocalizedString("LastName");
            PasswordTextFieldOfRegistration.Placeholder = Application.LocalizedString("Password");
            ConfirmPasswordTextField.Placeholder        = Application.LocalizedString("ConfirmPassword");
            RegistrationButton.SetTitle(Application.LocalizedString("CreateMyAccount"), UIControlState.Normal);
            EmailTextFieldOfRegistration.Placeholder = Application.LocalizedString("EmailAddress");
            ErrorMessageLabel.Text = Application.LocalizedString("PasswordErrorLength");

            // forget Password
            EmailTextFieldOfForgetPassword.Placeholder = Application.LocalizedString("EmailAddress");
            ResetPasswordButton.SetTitle(Application.LocalizedString("ResetPassword"), UIControlState.Normal);
        }
コード例 #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            BackButton.SetCommand(ViewModel.BackCommand);
            BackButton.SetTitle(ViewModel.BackText, UIControlState.Normal);
        }