コード例 #1
0
        public override void DisposeScreen()
        {
            if (AnimatedThreadWorker.IsBusy)
            {
                AnimatedThreadWorker.CancelAsync();
            }

            AnimatedThreadWorker.Dispose();

            if (InitialDirectiveArray != null)
            {
                InitialDirectiveArray.Clear();
            }
            InitialDirectiveArray = null;

            if (ResultDirectiveArray != null)
            {
                ResultDirectiveArray.Clear();
            }
            ResultDirectiveArray = null;


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

            Dispose(true);
        }
コード例 #2
0
        public override void DisposeScreen()
        {
            if (AnimatedThreadWorker.IsBusy)
            {
                AnimatedThreadWorker.CancelAsync();
            }

            AnimatedThreadWorker.Dispose();

            if (InitialDirectiveArray != null)
            {
                InitialDirectiveArray.Clear();
            }
            InitialDirectiveArray = null;

            if (ResultDirectiveArray != null)
            {
                ResultDirectiveArray.Clear();
            }
            ResultDirectiveArray = null;

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

            if (_openPubWorkPackages != null)
            {
                _openPubWorkPackages.Clear();
            }
            _openPubWorkPackages = null;

            _openPubQuotations.Clear();
            _openPubQuotations = null;

            if (_toolStripMenuItemsWorkPackages != null)
            {
                foreach (var item in _toolStripMenuItemsWorkPackages.Items)
                {
                    item.Click -= AddToWorkPackageItemClick;
                }
                _toolStripMenuItemsWorkPackages.Items.Clear();
                _toolStripMenuItemsWorkPackages.Dispose();
            }

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

            Dispose(true);
        }