/// <summary> /// Отрисовать графики /// </summary> private void DrawGraphicsTimer(DateTime currentTime) { Graphic[] graphics = parent.Graphics; if (graphics != null) { for (int index = 0; index < graphics.Length; index++) { Graphic graphic = graphics[index]; if (graphic != null) { PointF[] pts = graphic.CalculateReduceTimer(point, size, Parent as Panel, currentTime); if (pts != null) { List <Intervals> Intrv = getIntervals(pts); if (Intrv.Count > 0) { foreach (Intervals i in Intrv) { if ((i.end - i.beg) > 0) { int cLng = i.end - i.beg + 1; PointF[] pts2 = new PointF[cLng]; int cJ = i.beg; for (int j = 0; j < cLng; j++) { pts2[j] = pts[cJ++]; } using (Pen pen = new Pen(graphic.Color, graphic.Width)) { Parent.Drawter.Graphics.DrawLines(pen, pts2); } } } } } } } } }