/// <summary> /// Shows next chart. /// </summary> void ShowNextChart() { currentChartNumber++; if (currentChartNumber >= tableReport.Length) { currentChartNumber = 0; } currentChart.Parent = this; currentChart.InitChart(tableReport[currentChartNumber]); currentChart.Invalidate(); }
/// <summary> /// Opens next chart. /// </summary> void BtnNextCharts_Click(object sender, EventArgs e) { currentChartNumber++; if (currentChartNumber >= tableReport.Length) { currentChartNumber = 0; } currentChart.Parent = this; currentChart.InitChart(tableReport[currentChartNumber]); currentChart.Invalidate(); }