private void prepareTextFields()
        {
            var placeholderAttributes = new CTStringAttributes(
                new UIStringAttributes {
                ForegroundColor = UIColor.White.ColorWithAlpha(0.5f)
            }.Dictionary
                );

            EmailTextField.ReturnKeyType         = UIReturnKeyType.Next;
            EmailTextField.TintColor             = UIColor.White;
            EmailTextField.AttributedPlaceholder =
                new NSAttributedString(Resources.LoginSignUpEmailPlaceholder, placeholderAttributes);

            PasswordTextField.ReturnKeyType         = UIReturnKeyType.Next;
            PasswordTextField.TintColor             = UIColor.White;
            PasswordTextField.AttributedPlaceholder =
                new NSAttributedString(Resources.LoginSignUpPasswordPlaceholder, placeholderAttributes);

            ForgotPasswordButton.SetTitle(Resources.LoginForgotPassword, UIControlState.Normal);

            var underscoreAttributes = new CTStringAttributes(new UIStringAttributes
            {
                UnderlineColor  = UIColor.White,
                ForegroundColor = UIColor.White,
                UnderlineStyle  = NSUnderlineStyle.Single,
                Font            = UIFont.SystemFontOfSize(12, UIFontWeight.Medium)
            }.Dictionary);

            PrivacyPolicyButton.SetAttributedTitle(
                new NSAttributedString(Resources.PrivacyPolicy, underscoreAttributes), UIControlState.Normal);
            TermsOfServiceButton.SetAttributedTitle(
                new NSAttributedString(Resources.TermsOfService, underscoreAttributes), UIControlState.Normal);
        }
Exemple #2
0
        void ReleaseDesignerOutlets()
        {
            if (ActivityIndicator != null)
            {
                ActivityIndicator.Dispose();
                ActivityIndicator = null;
            }

            if (BottomConstraint != null)
            {
                BottomConstraint.Dispose();
                BottomConstraint = null;
            }

            if (GoogleSignInImage != null)
            {
                GoogleSignInImage.Dispose();
                GoogleSignInImage = null;
            }

            if (EmailTextField != null)
            {
                EmailTextField.Dispose();
                EmailTextField = null;
            }

            if (ForgotPasswordButton != null)
            {
                ForgotPasswordButton.Dispose();
                ForgotPasswordButton = null;
            }

            if (GoogleSignInButton != null)
            {
                GoogleSignInButton.Dispose();
                GoogleSignInButton = null;
            }

            if (InfoLabel != null)
            {
                InfoLabel.Dispose();
                InfoLabel = null;
            }

            if (TryLoggingInInsteadButton != null)
            {
                TryLoggingInInsteadButton.Dispose();
                TryLoggingInInsteadButton = null;
            }

            if (PasswordManagerButton != null)
            {
                PasswordManagerButton.Dispose();
                PasswordManagerButton = null;
            }

            if (PasswordTextField != null)
            {
                PasswordTextField.Dispose();
                PasswordTextField = null;
            }

            if (PrivacyPolicyButton != null)
            {
                PrivacyPolicyButton.Dispose();
                PrivacyPolicyButton = null;
            }

            if (ShowPasswordButton != null)
            {
                ShowPasswordButton.Dispose();
                ShowPasswordButton = null;
            }

            if (SignUpLabels != null)
            {
                SignUpLabels.Dispose();
                SignUpLabels = null;
            }

            if (TermsOfServiceButton != null)
            {
                TermsOfServiceButton.Dispose();
                TermsOfServiceButton = null;
            }
        }