Exemplo n.º 1
0
 private void cleanMemory()
 {
     CleanUpHelper.ReleaseEvents(_inputParametersControl);
     if (_inputParametersControl != null)
     {
         _inputParametersControl.Dispose();
     }
     CleanUpHelper.ReleaseEvents(_dimensionComboBox);
     if (_dimensionComboBox != null)
     {
         _dimensionComboBox.Dispose();
     }
     CleanUpHelper.ReleaseEvents(_unitComboBox);
     if (_unitComboBox != null)
     {
         _unitComboBox.Dispose();
     }
     CleanUpHelper.ReleaseEvents(_importDataColumn);
     if (_importDataColumn != null)
     {
         _importDataColumn.Dispose();
     }
     CleanUpHelper.ReleaseControls(Controls);
     Controls.Clear();
 }
        private void cleanMemory()
        {
            foreach (var edit in _inputParameterEditors)
            {
                CleanUpHelper.ReleaseEvents(edit);
                edit.Dispose();
            }
            _inputParameterEditors.Clear();

            CleanUpHelper.ReleaseEvents(this);
            CleanUpHelper.ReleaseControls(Controls);
            Controls.Clear();
        }
Exemplo n.º 3
0
        private void cleanMemory()
        {
            _namingView = null;
            if (_openSourceFileControl != null)
            {
                _openSourceFileControl.OnOpenSourceFile -= openSourceFileEvent;
                _openSourceFileControl = null;
            }

            if (_imports != null)
            {
                foreach (ImportDataTable table in _imports.Tables)
                {
                    table.MetaData?.Dispose();
                    table.Dispose();
                }
                _imports.Dispose();
            }
            if (_importDataTable != null)
            {
                _importDataTable.MetaData?.Dispose();
                _importDataTable.Dispose();
            }

            CleanUpHelper.ReleaseEvents(_dataSetControl);
            _dataSetControl?.Dispose();
            CleanUpHelper.ReleaseEvents(_sourceFilePreviewControl);
            _sourceFilePreviewControl?.Dispose();
            CleanUpHelper.ReleaseControls(Controls);
            Controls.Clear();

            _imports = null;
            _openSourceFileControl    = null;
            _sourceFilePreviewControl = null;
            _columnMappingControl     = null;
            _dataSetControl           = null;
            _importDataTable          = null;
            _importer             = null;
            _presenter            = null;
            _dataRepositoryMapper = null;
            _importMapper         = null;
            _columnInfos          = null;

            cleanColumnMappingControls();
            _columnMappingControls?.Clear();
            _columnMappingControls = null;

            columnMappingControlPanel.Controls.Clear();
        }
        private void cleanMemory()
        {
            if (_data != null)
            {
                foreach (DataTable table in _data.Tables)
                {
                    table.Dispose();
                }
                _data.Dispose();
            }

            CleanUpHelper.ReleaseEvents(_dataSetControl);
            if (_dataSetControl != null)
            {
                _dataSetControl.Dispose();
            }

            CleanUpHelper.ReleaseEvents(this);
            CleanUpHelper.ReleaseControls(Controls);
            Controls.Clear();
        }
Exemplo n.º 5
0
 private void cleanMemory()
 {
     CleanUpHelper.ReleaseEvents(this);
 }