private void AddMarker(ZedGraphControl gc, DateTime date, Color color, GraphMarkerType markerType) { var ymax = gc.GraphPane.YAxis.Scale.Max; LineObj line = new LineObj(color, (double)new XDate(date), (double)0, (double)new XDate(date), ymax); line.Tag = markerType; line.ZOrder = ZOrder.E_BehindCurves; gc.GraphPane.GraphObjList.Add(line); }
private void AddMarker(ZedGraphControl gc, DateTime date, Color color, GraphMarkerType markerType) { var ymax = gc.GraphPane.YAxis.Scale.Max; LineObj line = new LineObj(color, (double)new XDate(date), (double)0, (double)new XDate(date), ymax); line.Tag = markerType; line.ZOrder = ZOrder.E_BehindCurves; gc.GraphPane.GraphObjList.Add(line); }