Example #1
0
        private void SetupMoreOptionsBoxSubviews()
        {
            MoreOptionsBox.AddGestureRecognizer(new NSClickGestureRecognizer(this, Selector.MoreOptions_));

            MoreOptionsImageView.Image = Image.MoreOptions;
            MoreOptionsImageView.RefusesFirstResponder = true;

            SetupHeaderTextField(MoreOptionsHeaderTextField, String.MoreOptions.Header);
            SetupDescriptionTextField(MoreOptionsDescriptionTextField, String.MoreOptions.Description);
        }
        void ReleaseDesignerOutlets()
        {
            if (ResendCodeBox != null)
            {
                ResendCodeBox.Dispose();
                ResendCodeBox = null;
            }

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

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

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

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

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

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

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

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

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

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

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