コード例 #1
0
        /// <summary>
        /// Disposes the chart.
        /// </summary>
        public void DisposeChart()
        {
            if (chart != null)
            {
                try
                {
                    chart.Dispose();
                }
                finally
                {
                    chart = null;
                }
            }

            return;
        }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 /// <summary>
 /// Disposes the chart.
 /// </summary>
 private void DisposeChart()
 {
     if (_chart != null)
     {
         try
         {
             _chart.Dispose();
         }
         finally
         {
             _chart = null;
         }
     }
 }
コード例 #4
0
        /// <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;
        }