public void DrawLine(GraphLine line, DateTime date, float val) { if (line.visible) { if (line.horizontal) { DrawLineH(line.evaluationDel == null ? val : line.evaluationDel(val), false, line.pen); } else { DrawLineV(date, true, line.pen); } } }
GraphLine AddLine(bool horizontal, Color color, float thickness = 1, EvalDel evalDel = null) { GraphLine newLine = new GraphLine(); newLine.Color = color; newLine.Thickness = thickness; newLine.visible = true; newLine.horizontal = horizontal; newLine.evaluationDel = evalDel; lines.Add(newLine); return(newLine); }