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

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

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

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

            if (GreatButton != null) {
                GreatButton.Dispose ();
                GreatButton = null;
            }
        }
Beispiel #2
0
        void ReleaseDesignerOutlets()
        {
            if (bmiLabel != null)
            {
                bmiLabel.Dispose();
                bmiLabel = null;
            }

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

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

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

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

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