/// <summary> /// Shows previous chart. /// </summary> private void ShowPreviousChart() { _currentChartNumber--; if (_currentChartNumber < 0) { _currentChartNumber = TableReport.Length - 1; } CurrentChart.Parent = this; CurrentChart.InitChart(TableReport[_currentChartNumber]); CurrentChart.Invalidate(); }
/// <summary> /// Shows next chart. /// </summary> private void ShowNextChart() { _currentChartNumber++; if (_currentChartNumber >= TableReport.Length) { _currentChartNumber = 0; } CurrentChart.Parent = this; CurrentChart.InitChart(TableReport[_currentChartNumber]); CurrentChart.Invalidate(); }