예제 #1
0
        private void DrawShape(StrategyShape shape)
        {
            switch (shape.GetShapeType())
            {
            case PriceShapeType.PolyLine:
                DrawPolyLineInternal((StrategyPolyLine)shape);
                break;

            case PriceShapeType.Point:
                DrawPointsInternal((StrategyPoints)shape);
                break;
            }
        }
예제 #2
0
 private void Record(StrategyShape shape)
 {
     this.shapes.Add(shape);
 }
예제 #3
0
 private void RecordStrategyShape(StrategyShape shape)
 {
     Record(shape);
     DrawShape(shape);
 }