Exemple #1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            var options = new List <string> {
                "Welcome", "Projects", "Parts", "Welcome", "Consent"
            };

            OBImage.Image  = UIImage.FromBundle($"Onboarding{options[Index]}");
            OBTitle.Text   = OBCTitle;
            OBContent.Text = OBCContent;
            // Only show the view on the final screen otherwise space is taken; similar to .GONE on android.
            if (Index < 4)
            {
                OnboardingActions.RemoveFromSuperview();
            }
            // TODO: animate OnboardingActions when the user is on the final page
            OnboardingActions.Hidden &= Index != 4;

            OBRegister.SetTitle(StringResources.register_ui_submit_button, UIControlState.Normal);
            OBRegister.Layer.BorderWidth = 1.0f;
            OBRegister.Layer.BorderColor = UIColor.FromRGB(.43f, .80f, .79f).CGColor;

            OBLogin.SetTitle(StringResources.login_ui_submit_button, UIControlState.Normal);
            OBLogin.Layer.BorderWidth = OBRegister.Layer.BorderWidth;
            OBLogin.Layer.BorderColor = OBRegister.Layer.BorderColor;
        }
        void ReleaseDesignerOutlets()
        {
            if (OBContent != null)
            {
                OBContent.Dispose();
                OBContent = null;
            }

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

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

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

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

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