void ReleaseDesignerOutlets() { if (BoyButton != null) { BoyButton.Dispose(); BoyButton = null; } if (BubbleImg != null) { BubbleImg.Dispose(); BubbleImg = null; } if (BubbleImgTopOffset != null) { BubbleImgTopOffset.Dispose(); BubbleImgTopOffset = null; } if (ContinueBtn != null) { ContinueBtn.Dispose(); ContinueBtn = null; } if (GirlButton != null) { GirlButton.Dispose(); GirlButton = null; } if (Input != null) { Input.Dispose(); Input = null; } if (NavBarBlendView != null) { NavBarBlendView.Dispose(); NavBarBlendView = null; } if (NavBarBlendViewHeightConstraint != null) { NavBarBlendViewHeightConstraint.Dispose(); NavBarBlendViewHeightConstraint = null; } if (NickName != null) { NickName.Dispose(); NickName = null; } if (SwitchSignUpType != null) { SwitchSignUpType.Dispose(); SwitchSignUpType = null; } if (ThemeSelectorContainerView != null) { ThemeSelectorContainerView.Dispose(); ThemeSelectorContainerView = null; } }
public override void ViewDidLoad() { base.ViewDidLoad(); viewModel = App.SignUpViewModel; resigner = new FirstResponderResigner(View, Input); #if DEBUG // debugGesture = new TapGestureAttacher (View, 3, ChangeThemeProps); debugGesture = new TapGestureAttacher(View, 3, Theme.SetNextTheme); #endif ContinueBtn.TouchUpInside += ContinueHandler; SwitchSignUpType.TouchUpInside += SwitchSignUpTypeHandler; Input.EditingChanged += InputChangedHandler; NickName.EditingChanged += NickNameInputHandler; SausageButtons.SetUp(ContinueBtn); SausageButtons.SetUp(SwitchSignUpType); SwitchSignUpType.Layer.BorderWidth = 1.5f; #region Theme switcher BoyButton.SetTitle("Blue", UIControlState.Normal); GirlButton.SetTitle("Red", UIControlState.Normal); BoyButton.TouchUpInside += BlueThemeSelected; GirlButton.TouchUpInside += RedThemeSelected; ThemeSelectorContainerView.BackgroundColor = Theme.Current.BackgroundColor; SausageButtons.SetUp(BoyButton); SausageButtons.ApplyTheme(AppDelegate.BlueTheme, BoyButton); SausageButtons.UpdateBackgoundColor(AppDelegate.BlueTheme, BoyButton); SausageButtons.SetUp(GirlButton); SausageButtons.ApplyTheme(AppDelegate.RedTheme, GirlButton); SausageButtons.UpdateBackgoundColor(AppDelegate.RedTheme, GirlButton); #endregion UpdateText(); }