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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (ButtonClear != null)
            {
                ButtonClear.Dispose();
                ButtonClear = null;
            }
        }
Пример #2
0
        void ReleaseDesignerOutlets()
        {
            if (ButtonEight != null)
            {
                ButtonEight.Dispose();
                ButtonEight = null;
            }

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

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

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

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

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

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

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

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

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

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

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