protected override void Dispose( bool disposing ) { this.Events.Dispose(); mChartToDraw=null; m_hashTable.Clear(); if(ds!=null) { try { ds.Clear(); ds.Dispose(); } catch{} ds=null; } if(dt!=null) { try { dt.Clear(); dt.Dispose(); } catch{} dt=null; } if( disposing ) { this.Events.Dispose(); if(components != null) { components.Dispose(); } } base.Dispose( disposing ); }
private void initializeClientChart(AbstractChart chart) { mChartToDraw = chart; chart.BackgroundColor = System.Drawing.SystemColors.ActiveCaptionText ; if(chart is CartesianChart) { ((CartesianChart)chart).IsShowLabel = true; } chart.DataSource = m_source; chart.Enable3D = true; canvasPanel.Refresh(); legendPanel.Refresh(); }