//-------------------------------------------------------------------------------------------------------
        //Нарисовать график
        private static void DrawChart(ZedGraphInfo graphInfo, GraphPane graphPane)
        {
            Point2D[]     points        = graphInfo.GraphPoints;
            PointPairList pointPairList = new PointPairList();

            for (int pointIndex = 0; pointIndex < points.Length; pointIndex++)
            {
                Point2D point = points[pointIndex];
                pointPairList.Add(point.X, point.Y);
            }
            Color graphColor = graphInfo.GraphColor;

            System.Drawing.Color color =
                System.Drawing.Color.FromArgb(graphColor.A, graphColor.R, graphColor.G, graphColor.B);
            SymbolType symbolType = graphInfo.ZedGraphSymbolType;
            LineItem   curve      = graphPane.AddCurve(graphInfo.GraphName, pointPairList, color, symbolType);

            curve.Line.IsVisible   = graphInfo.LineVisibility;
            curve.Symbol.Fill.Type = FillType.Solid;
            curve.Symbol.Size      = graphInfo.ZedGraphSymbolSize;
        }
        //-------------------------------------------------------------------------------------------------------
        private static void GraphInfoCollectionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ZedGraphChartControl zedGraphChart = d as ZedGraphChartControl;

            GraphPane graphPane = zedGraphChart.zedGraphControl.GraphPane;

            graphPane.CurveList.Clear();
            ZedGraphChartControl.SetDefaultGraphPaneSettings(graphPane);

            IList <ZedGraphInfo> graphInfoCollection = (IList <ZedGraphInfo>)e.NewValue;

            if (graphInfoCollection == null)
            {
                return;
            }

            for (int index = 0; index < graphInfoCollection.Count; index++)
            {
                ZedGraphInfo graphInfo = graphInfoCollection[index];
                ZedGraphChartControl.DrawChart(graphInfo, graphPane);
            }

            zedGraphChart.zedGraphControl.AxisChange();
        }