Пример #1
0
        //画线

        private void createLines()
        {
            if (this.InvokeRequired)
            {
                Action action = createLines;
                this.Invoke(action);
            }
            else
            {
                if (pointData.getAllKey().Count > 0)
                {
                    GraphPane graphPanel = base.GraphPane;
                    graphPanel.CurveList.Clear();
                    refreshPane();
                    foreach (string key in pointData.getAllKey())
                    {
                        if (showLineKey == "All" || showLineKey == key)
                        {
                            //string[] arr = key.Split(new string[] { "_" }, StringSplitOptions.RemoveEmptyEntries);
                            LineItem lt = graphPanel.AddCurve(key, pointData.getPointPairListByKey(key),
                                                              zedgraphHelper.getRandomColor());
                            lt.Line.Width       = 2;
                            lt.Line.IsAntiAlias = true;
                            lt.Symbol.IsVisible = false;
                        }
                    }

                    refreshPane();
                }
            }
        }
Пример #2
0
        //画线
        private void createLines()
        {
            if (this.InvokeRequired)
            {
                Action action = createLines;
                this.Invoke(action);
            }
            else
            {
                if (pointData.getAllKey().Count > 0)
                {
                    GraphPane gp = base.GraphPane;

                    foreach (string key in pointData.getAllKey())
                    {
                        LineItem lt = gp.AddCurve(key, pointData.getPointPairListByKey(key),
                                                  Color.Red, SymbolType.Default);

                        lt.Line.Width = 2;
                    }
                    refreshPane();
                }
            }
        }