예제 #1
0
 /// <summary>
 /// オブジェクト開放メソッド
 /// </summary>
 public void ReleaseComponent()
 {
     if (chart != null)
     {
         chart.Dispose();
     }
     if (chartArea != null)
     {
         chartArea.Dispose();
     }
     if (legend != null)
     {
         legend.Dispose();
     }
     if (series != null)
     {
         series.Dispose();
     }
     if (title != null)
     {
         title.Dispose();
     }
 }
예제 #2
0
        /// <summary>
        /// オブジェクトコンポーネント開放メソッド
        /// </summary>
        public void ReleaseComponent()
        {
            //confirmForm.Close();
            gofdisplayForm.Close();

            //確認用ディスプレイ開放
            if (confirmForm != null)
            {
                confirmForm.Close();
            }
            if (confirmChart != null)
            {
                confirmChart.Dispose();
            }
            if (confirmChartArea != null)
            {
                confirmChartArea.Dispose();
            }
            if (confirmLegend != null)
            {
                confirmLegend.Dispose();
            }
            if (confirmSeries != null)
            {
                confirmSeries.Dispose();
            }
            if (confirmtTitle != null)
            {
                confirmtTitle.Dispose();
            }
            if (confirmForm != null)
            {
                confirmForm.Dispose();
            }

            //結果表示用
            if (gofdisplayForm != null)
            {
                gofdisplayForm.Close();
            }
            if (gofChart != null)
            {
                gofChart.Dispose();
            }
            if (gofChartArea != null)
            {
                gofChartArea.Dispose();
            }
            if (gofLegend != null)
            {
                gofLegend.Dispose();
            }
            if (gofSeries != null)
            {
                gofSeries.Dispose();
            }
            if (gofTitle != null)
            {
                gofTitle.Dispose();
            }
            if (gofdisplayForm != null)
            {
                gofdisplayForm.Dispose();
            }

            //画像コンポーネントの開放
            if (resultimage != null)
            {
                resultimage.Image.Dispose();
                resultimage.Dispose();
            }
        }