Example #1
0
        void ReleaseDesignerOutlets()
        {
            if (RadiusSlider != null)
            {
                RadiusSlider.Dispose();
                RadiusSlider = null;
            }

            if (RadiusValue != null)
            {
                RadiusValue.Dispose();
                RadiusValue = null;
            }
        }
Example #2
0
        void ReleaseDesignerOutlets()
        {
            if (DesignPreview != null)
            {
                DesignPreview.Dispose();
                DesignPreview = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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