public override Shape CreateNewShape() { ShapeConst shape = (ShapeConst)base.CreateNewShape(); shape.Size = Size; return(shape); }
public ShapeConst CreateNewShape(Point newLocation) { ShapeConst shape = (ShapeConst)base.CreateNewShape(); shape.Size = Size; shape.Location = newLocation; return(shape); }
public int CompareTo(object obj) { if (obj is ShapeConst) { ShapeConst shape = (ShapeConst)obj; return(Area - shape.Area); } return(-1); }