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

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

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


            if (LinkLabel != null)
            {
                LinkLabel.Dispose();
                LinkLabel = null;
            }
        }
Example #2
0
        protected void UpdateLabels()
        {
            AddLinkButton.SetTitle((string.IsNullOrWhiteSpace(chosenLink)) ?
                                   "Add an External Link" :
                                   "Edit Link", UIControlState.Normal);

            AddImageButton.SetTitle((string.IsNullOrWhiteSpace(currentImagePath + previousImage)) ?
                                    "Add an Accompanying Image (optional)" :
                                    "Change Image", UIControlState.Normal);
        }