コード例 #1
0
        void InitializeComponents()
        {
            //Booleano para el botón edit.
            editModeEnabled = false;

            //A ambos se les pone ese atributo.
            LblProfile.Hidden = LblBottom.Hidden = true;

            //El Enabled = false es para que esté deshabilitada la gestura por default.
            //Para el profile.
            profileTapGesture = new UITapGestureRecognizer(ShowOptions)
            {
                Enabled = false
            };
            ViewProfile.AddGestureRecognizer(profileTapGesture);


            //Para el bottom.
            bottomTapGesture = new UITapGestureRecognizer(ShowOptions)
            {
                Enabled = false
            };
            ViewBottom.AddGestureRecognizer(bottomTapGesture);



            BtnEdit.Clicked += BtnEdit_Clicked;
        }
コード例 #2
0
        void ReleaseDesignerOutlets()
        {
            if (ImgProfile != null)
            {
                ImgProfile.Dispose();
                ImgProfile = null;
            }

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

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

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

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

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

            if (ViewBottom != null)
            {
                ViewBottom.Dispose();
                ViewBottom = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (ButtonBack != null)
            {
                ButtonBack.Dispose();
                ButtonBack = null;
            }

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

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

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

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

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