Пример #1
0
        internal override void Dispose(bool disposing)
        {
            if (disposing)
            {
                // Free managed
                if (_seriescollection != null)
                {
                    _seriescollection.Dispose();
                    _seriescollection = null;
                }

                if (_axes != null)
                {
                    _axes.Dispose();
                    _axes = null;
                }

                if (_chartTitle != null)
                {
                    _chartTitle.Dispose();
                    _chartTitle = null;
                }

                if (_chartArea != null)
                {
                    _chartArea.Dispose();
                    _chartArea = null;
                }

                if (_plotArea != null)
                {
                    _plotArea.Dispose();
                    _plotArea = null;
                }

                if (_legend != null)
                {
                    _legend.Dispose();
                    _legend = null;
                }
            }

            base.Dispose(true);
        }
Пример #2
0
        internal override void Dispose(bool disposing)
        {
            if (disposing)
            {
                // Free managed
                if (_seriescollection != null)
                {
                    _seriescollection.Dispose();
                    _seriescollection = null;
                }

                if (_axes != null)
                {
                    _axes.Dispose();
                    _axes = null;
                }

                if (_chartTitle != null)
                {
                    _chartTitle.Dispose();
                    _chartTitle = null;
                }

                if (_chartArea != null)
                {
                    _chartArea.Dispose();
                    _chartArea = null;
                }

                if (_plotArea != null)
                {
                    _plotArea.Dispose();
                    _plotArea = null;
                }

                if (_legend != null)
                {
                    _legend.Dispose();
                    _legend = null;
                }
            }

            base.Dispose(true);
        }