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;
            }
        }
Esempio n. 2
0
 void HighlightButton(GoodButton button)
 {
     if (button.ButtonHighlighted() && button.isBaseSize)
     {
         button.transform.localScale = Vector3.one * 1.1f;
         button.isBaseSize           = false;
     }
     else if (!button.ButtonHighlighted() && !button.isBaseSize)
     {
         button.transform.localScale = Vector3.one * 1.0f;
         button.isBaseSize           = true;
     }
 }
Esempio n. 3
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;
            }
        }