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()
 {
     if (_grid != null)
     {
         CleanUpHelper.ReleaseControls(_grid.Controls);
         _grid.DataSource = null;
         _grid.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();
        }
        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()
        {
            _gridPresenter.CopyMetaDataColumnControlEvent -= onCopyMetaDataColumnControl;
            _gridPresenter.SetUnitEvent -= onSetUnitClick;

            if (_metaDataControl != null)
            {
                _metaDataControl.OnCopyMetaData       -= onCopyMetaDataTableControl;
                _metaDataControl.OnBroadCastMetaData  -= onBroadCastMetaDataTableControl;
                _metaDataControl.OnIsDataValidChanged -= metaDataControlOnIsDataValidChanged;
            }
            _gridPresenter.MetaDataChangedEvent -= rePlot;
            _gridPresenter?.Clear();
            _metaDataControl?.Dispose();
            _metaDataControl = null;
            CleanUpHelper.ReleaseControls(Controls);
            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();
        }
Exemple #7
0
        private void cleanMemory()
        {
            if (_dataSet != null)
            {
                foreach (DataTable table in _dataSet.Tables)
                {
                    table.Dispose();
                }
                _dataSet.Dispose();
            }

            if (_tabControl != null)
            {
                foreach (XtraTabPage page in _tabControl.TabPages)
                {
                    CleanUpHelper.ReleaseControls(page.Controls);
                    page.Controls.Clear();
                }
                _tabControl.Dispose();
            }

            CleanUpHelper.ReleaseControls(Controls);
            Controls.Clear();
        }
Exemple #8
0
 private void cleanMemory()
 {
     CleanUpHelper.ReleaseEvents(this);
 }
Exemple #9
0
 public void Clear()
 {
     gridControl.DataSource = null;
     CleanUpHelper.ReleaseControls(Controls);
     Dispose();
 }
 private void cleanMemory()
 {
     _metaDataControl.Dispose();
     CleanUpHelper.ReleaseControls(Controls);
     Controls.Clear();
 }