internal ProcessModulesDisplayer(ApplicationPresenter presenter, IApplicationView view)
        {
            _presenter = presenter;
            _view      = view;

            _modulesShownByWorker     = new Dictionary <BackgroundWorker, IEnumerable <Module> >();
            _newModulesToShowByWorker = new Dictionary <BackgroundWorker, IEnumerable <Module> >();
            _moduleToKeepSelected     = new Dictionary <BackgroundWorker, Module>();
            _workers = new List <BackgroundWorker>();
        }
        internal ProcessModulesDisplayer(ApplicationPresenter presenter, IApplicationView view)
        {
            _presenter = presenter;
            _view = view;

            _modulesShownByWorker = new Dictionary<BackgroundWorker, IEnumerable<Module>>();
            _newModulesToShowByWorker = new Dictionary<BackgroundWorker, IEnumerable<Module>>();
            _moduleToKeepSelected = new Dictionary<BackgroundWorker, Module>();
            _workers = new List<BackgroundWorker>();

        } 
Beispiel #3
0
 public abstract void AddHookUsing(Module aModule, Function aFunction, ApplicationPresenter applicationPresenter);
 public override void AddHookUsing(Module aModule, Function aFunction, ApplicationPresenter applicationPresenter)
 {
     applicationPresenter.AddHookForProcessToBeHooked(this, aModule, aFunction);
 }
Beispiel #5
0
 private void InitializeApplicationPresenter()
 {
     _presenter = ApplicationPresenter.For(this);
 }
Beispiel #6
0
 public void HandleSelectedNode(ApplicationPresenter presenter)
 {
     var nodeHandler = DeviareNodeHandler.ForProcesses(
         processNode =>
             {
                 var collector = new Collector();
                 processNode.Accept(collector);
                 presenter.SelectedProcessesChanged(
                     collector.CollectedProcesses);
                 return true;
             },
         processGroupNode =>
             {
                 var collector = new Collector();
                 processGroupNode.Accept(collector);
                 presenter.SelectedProcessesChanged(
                     collector.CollectedProcesses);
                 return true;
             },
         processCategoryNode => false,
         presenter.ClearSelectedProcesses);
     
     SelectedDeviareNode().Accept(nodeHandler);
 }
Beispiel #7
0
 public void AddHookUsing(Module aModule, Function aFunction, ApplicationPresenter applicationPresenter)
 {
     throw new NotImplementedException();
 }