private void DrawShape(StrategyShape shape) { switch (shape.GetShapeType()) { case PriceShapeType.PolyLine: DrawPolyLineInternal((StrategyPolyLine)shape); break; case PriceShapeType.Point: DrawPointsInternal((StrategyPoints)shape); break; } }
private void Record(StrategyShape shape) { this.shapes.Add(shape); }
private void RecordStrategyShape(StrategyShape shape) { Record(shape); DrawShape(shape); }