/// <summary>
        /// Производит очистку ресурсов страницы
        /// </summary>
        public override void DisposeScreen()
        {
            if (AnimatedThreadWorker.IsBusy)
            {
                AnimatedThreadWorker.CancelAsync();
            }

            AnimatedThreadWorker.DoWork             -= AnimatedThreadWorkerDoWork;
            AnimatedThreadWorker.RunWorkerCompleted -= AnimatedThreadWorkerRunWorkerCompleted;

            AnimatedThreadWorker.Dispose();

            _initialDirectiveArray.Clear();
            _resultDirectiveArray.Clear();

            _initialDirectiveArray = null;
            _resultDirectiveArray  = null;

            if (_additionalFilter != null)
            {
                _additionalFilter.Filters.Clear();
                _additionalFilter = null;
            }

            if (_toolStripMenuItemOpen != null)
            {
                _toolStripMenuItemOpen.Dispose();
            }
            if (_toolStripMenuItemShowTaskCard != null)
            {
                _toolStripMenuItemShowTaskCard.Dispose();
            }
            if (_directivesViewer != null)
            {
                _directivesViewer.Dispose();
            }

            Dispose(true);
        }
        public override void DisposeScreen()
        {
            if (AnimatedThreadWorker.IsBusy)
            {
                AnimatedThreadWorker.CancelAsync();
            }
            AnimatedThreadWorker.Dispose();

            _itemsArray.Clear();
            _itemsArray = null;

            if (_toolStripMenuItemOpen != null)
            {
                _toolStripMenuItemOpen.Dispose();
            }
            if (_toolStripMenuItemHighlight != null)
            {
                _toolStripMenuItemHighlight.Dispose();
            }
            if (_toolStripSeparator1 != null)
            {
                _toolStripSeparator1.Dispose();
            }
            if (_toolStripSeparator2 != null)
            {
                _toolStripSeparator2.Dispose();
            }
            if (_toolStripSeparator4 != null)
            {
                _toolStripSeparator4.Dispose();
            }

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

            Dispose(true);
        }
        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;

            _currentForecast.Dispose();
            _currentForecast = null;

            _openPubQuotations.Clear();
            _openPubQuotations = null;

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

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

            Dispose(true);
        }
Exemple #4
0
        public override void DisposeScreen()
        {
            CancelAsync();

            AnimatedThreadWorker.Dispose();

            if (_itemPrintReportHistory != null)
            {
                _itemPrintReportHistory.Dispose();
            }
            if (_itemPrintReportRecords != null)
            {
                _itemPrintReportRecords.Dispose();
            }
            if (_buttonPrintMenuStrip != null)
            {
                _buttonPrintMenuStrip.Dispose();
            }

            _currentDirective = null;

            Dispose(true);
        }
Exemple #5
0
        public override void DisposeScreen()
        {
            if (AnimatedThreadWorker.IsBusy)
            {
                AnimatedThreadWorker.CancelAsync();
            }
            AnimatedThreadWorker.Dispose();

            _initialDirectiveArray.Clear();
            _initialDirectiveArray = null;

            if (_toolStripMenuItemsWorkPackages != null)
            {
                foreach (RadMenuItem item in _toolStripMenuItemsWorkPackages)
                {
                    item.Dispose();
                }
            }

            if (_toolStripMenuItemOpen != null)
            {
                _toolStripMenuItemOpen.Dispose();
            }
            if (_toolStripMenuItemHighlight != null)
            {
                _toolStripMenuItemHighlight.Dispose();
            }
            if (_toolStripMenuItemPublish != null)
            {
                _toolStripMenuItemPublish.Dispose();
            }
            if (_toolStripSeparator1 != null)
            {
                _toolStripSeparator1.Dispose();
            }
            if (_toolStripSeparator2 != null)
            {
                _toolStripSeparator2.Dispose();
            }
            if (_toolStripMenuItemEdit != null)
            {
                _toolStripMenuItemEdit.Dispose();
            }
            if (_toolStripMenuItemClose != null)
            {
                _toolStripMenuItemClose.Dispose();
            }
            if (_toolStripMenuItemPrintWP != null)
            {
                _toolStripMenuItemPrintWP.Dispose();
            }
            if (_toolStripMenuItemPrintWorkscope != null)
            {
                _toolStripMenuItemPrintWorkscope.Dispose();
            }

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

            Dispose(true);
        }
Exemple #6
0
        public override void DisposeScreen()
        {
            if (AnimatedThreadWorker.IsBusy)
            {
                AnimatedThreadWorker.CancelAsync();
            }

            AnimatedThreadWorker.DoWork             -= AnimatedThreadWorkerDoWork;
            AnimatedThreadWorker.RunWorkerCompleted -= AnimatedThreadWorkerRunWorkerCompleted;

            AnimatedThreadWorker.Dispose();

            _resultDirectiveArray.Clear();
            _resultDirectiveArray = null;

            _initialDirectiveArray.Clear();
            _initialDirectiveArray = null;

            _openPubWorkPackages.Clear();
            _openPubWorkPackages = null;

            _openPubQuotations.Clear();
            _openPubQuotations = null;

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

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

            if (_toolStripMenuItemShowADFile != null)
            {
                _toolStripMenuItemShowADFile.Dispose();
            }
            if (_toolStripMenuItemShowSBFile != null)
            {
                _toolStripMenuItemShowSBFile.Dispose();
            }
            if (_toolStripMenuItemShowEOFile != null)
            {
                _toolStripMenuItemShowEOFile.Dispose();
            }
            if (_toolStripMenuItemOpen != null)
            {
                _toolStripMenuItemOpen.Dispose();
            }
            if (_toolStripMenuItemHighlight != null)
            {
                foreach (RadMenuItem ttmi in _toolStripMenuItemHighlight.Items)
                {
                    ttmi.Click -= HighlightItemClick;
                }
                _toolStripMenuItemHighlight.Items.Clear();
                _toolStripMenuItemHighlight.Dispose();
            }
            if (_toolStripSeparator1 != null)
            {
                _toolStripSeparator1.Dispose();
            }
            if (_toolStripSeparator2 != null)
            {
                _toolStripSeparator2.Dispose();
            }
            if (_toolStripSeparator4 != null)
            {
                _toolStripSeparator4.Dispose();
            }

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

            Dispose(true);
        }