private void FormatChart(BaseChartAbs chart, string name, string sqlConn, bool RealTime, int yAxisCnt, ChartTypes chType, ChartSeries[] chSeries) { chart.FormatChart(name, RealTime); chart.SqlConnectString = sqlConn; foreach (ChartSeries series in chSeries) { SeeSeriesOptions serOpt = SeeChartParams.GetSeriesOptions(series); chart._chartParams.AddSeries(serOpt); } chart.ApplySeriesOptions(chType, yAxisCnt); }
private TreeNode[] FormatChart(BaseChartDelt chart, string name, string sqlConn, bool RealTime, int yAxisCnt, ChartTypes chType, ChartSeries[] chSeries) { chart.FormatChart(name, RealTime); chart.SqlConnectString = sqlConn; TreeNode[] tNodes = new TreeNode[chSeries.Length]; int tCnt = 0; foreach (ChartSeries series in chSeries) { SeeSeriesOptions serOpt = SeeChartParams.GetSeriesOptions(series); chart._chartParams.AddSeries(serOpt); TreeNode tNode = new TreeNode(serOpt.SeriesName); tNode.Tag = serOpt; tNode.Checked = true; tNodes[tCnt] = tNode; tCnt++; } chart.ApplySeriesOptions(chType, yAxisCnt); return(tNodes); }