コード例 #1
0
        void ReleaseDesignerOutlets()
        {
            if (AddColorButton != null)
            {
                AddColorButton.Dispose();
                AddColorButton = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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