示例#1
0
        void ReleaseDesignerOutlets()
        {
            if (GoBackButton != null)
            {
                GoBackButton.Dispose();
                GoBackButton = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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