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
        private void AddBookForm_Load(object sender, EventArgs e)
        {
            AddImageButton.BackColor = Color.Transparent;
            AddImageButton.Parent    = BookImagePictureBox;
            AddImageButton.Location  = new Point(40, 77);
            AddImageButton.BringToFront();

            IDTextBox.Text = ClassTime.getNextIsbn();            //max 99 books per day
        }
Example #3
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);
        }
Example #4
0
        void ReleaseDesignerOutlets()
        {
            if (AddImageButton != null)
            {
                AddImageButton.Dispose();
                AddImageButton = null;
            }

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

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

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

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

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

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

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

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

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

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

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