コード例 #1
0
        public ShapeNode(Box2CS.Shape shape) :
            base(shape.ShapeType.ToString())
        {
            Shape = shape;

            if (Shape is CircleShape)
            {
                ImageIndex = SelectedImageIndex = 1;
            }
            else if (Shape is PolygonShape)
            {
                ImageIndex = SelectedImageIndex = 2;
            }
        }