/// <summary> /// Disposes the chart. /// </summary> public void DisposeChart() { if (chart != null) { try { chart.Dispose(); } finally { chart = null; } } return; }
/// <summary> /// Creates a new chart. /// </summary> void CreateChart() { if (TabControlBase.SelectedTab != TabPageChart) return; ChartData chartData = GetChartDataObject(); _chart = new Chart(chartData) {Parent = TabPageChart, Dock = DockStyle.Fill}; _chart.InitChart(chartData); }
/// <summary> /// Disposes the chart. /// </summary> private void DisposeChart() { if (_chart != null) { try { _chart.Dispose(); } finally { _chart = null; } } }
/// <summary> /// Creates a new chart. /// </summary> void CreateChart() { if (tabControlBase.SelectedTab == tabPageChart) { Chart_Data chartData = GetChartDataObject(); chart = new Chart(chartData); chart.Parent = tabPageChart; chart.Dock = DockStyle.Fill; chart.InitChart(chartData); } return; }