Ejemplo n.º 1
0
        private void RemoveNotLongerUsedModules(object sender, RunWorkerCompletedEventArgs e)
        {
            _view.SortModulesViewByColumn(0);

            var worker = (BackgroundWorker)sender;

            _view.MarkAsSelectedIfSelectionIsNull(_moduleToKeepSelected[worker], worker, _jobOrder);

            _view.SetHookingUnhookingAndUnhookingAllFlags(false, false, true, worker, _jobOrder);
            _moduleToKeepSelected.Remove(worker);
            _modulesShownByWorker.Remove(worker);
            _newModulesToShowByWorker.Remove(worker);
            //_workers.Remove(worker);

            _view.RemoveUpdateCancellationStatusByWorker(worker);
        }