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

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

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

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

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

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

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

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

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

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

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