public override void ExecuteFigureCreationCommand(string[] splitFigString) { switch (splitFigString[0]) { case "circle": { Vector3D center = Vector3D.Parse(splitFigString[1]); double radius = Double.Parse(splitFigString[2]); currentFigure = new Circle(center, radius); break; } case "cylinder": { Vector3D top = Vector3D.Parse(splitFigString[1]); Vector3D bottom = Vector3D.Parse(splitFigString[2]); double radius = Double.Parse(splitFigString[3]); currentFigure = new Cylinder(top, bottom, radius); break; } } base.ExecuteFigureCreationCommand(splitFigString); }