Пример #1
0
 public PmViewErrorHandler(
     PmView view,
     AsyncProcessor asyncProcessor)
 {
     _view           = view;
     _asyncProcessor = asyncProcessor;
 }
Пример #2
0
 public PmViewAsyncHandler(
     PmView view,
     AsyncProcessor asyncProcessor,
     PmSettings pmSettings)
 {
     _pmSettings     = pmSettings;
     _asyncProcessor = asyncProcessor;
     _view           = view;
 }
Пример #3
0
 public PmWindowInitializer(
     PmProjectHandler projectHandler,
     PmPackageHandler packageHandler,
     PmReleasesHandler releasesHandler,
     AsyncProcessor asyncProcessor)
 {
     _releasesHandler = releasesHandler;
     _packageHandler  = packageHandler;
     _projectHandler  = projectHandler;
     _asyncProcessor  = asyncProcessor;
 }
 public PmCreateNewProjectPopupHandler(
     PmView view,
     AsyncProcessor asyncProcessor,
     PrjCommandHandler commandHandler,
     PmWindowInitializer windowInitializer)
 {
     _windowInitializer = windowInitializer;
     _commandHandler    = commandHandler;
     _asyncProcessor    = asyncProcessor;
     _view = view;
 }
Пример #5
0
 public PmInputHandler(
     PmView view,
     PmModel model,
     PmPackageHandler packageHandler,
     AsyncProcessor asyncProcessor)
 {
     _asyncProcessor = asyncProcessor;
     _packageHandler = packageHandler;
     _model          = model;
     _view           = view;
 }
Пример #6
0
 public PmVsSolutionViewHandler(
     PmModel model,
     PmView view,
     AsyncProcessor asyncProcessor,
     PrjCommandHandler prjCommandHandler,
     PmProjectHandler projectHandler)
 {
     _projectHandler    = projectHandler;
     _prjCommandHandler = prjCommandHandler;
     _asyncProcessor    = asyncProcessor;
     _model             = model;
     _view = view;
 }
Пример #7
0
 public PmPackageViewHandler(
     PmView view,
     AsyncProcessor asyncProcessor,
     PmPackageHandler packageHandler,
     PrjCommandHandler prjCommandHandler,
     PmSettings pmSettings)
 {
     _pmSettings        = pmSettings;
     _prjCommandHandler = prjCommandHandler;
     _packageHandler    = packageHandler;
     _asyncProcessor    = asyncProcessor;
     _view = view;
 }
Пример #8
0
 public PmDragDropHandler(
     PmModel model,
     PmView view,
     AsyncProcessor asyncProcessor,
     PmPackageHandler packageHandler,
     PrjCommandHandler prjCommandHandler)
 {
     _prjCommandHandler = prjCommandHandler;
     _packageHandler    = packageHandler;
     _asyncProcessor    = asyncProcessor;
     _view  = view;
     _model = model;
 }
 public PmCreateNewProjectPopupHandler(
     PmView view,
     AsyncProcessor asyncProcessor,
     PrjCommandHandler commandHandler,
     PmWindowInitializer windowInitializer,
     PmSettings pmSettings)
 {
     _settings          = pmSettings.CreateNewPopup;
     _pmSettings        = pmSettings;
     _windowInitializer = windowInitializer;
     _commandHandler    = commandHandler;
     _asyncProcessor    = asyncProcessor;
     _view = view;
 }
Пример #10
0
 public PmProjectViewHandler(
     PmModel model,
     PmView view,
     PmProjectHandler projectHandler,
     AsyncProcessor asyncProcessor,
     PrjCommandHandler prjCommandHandler,
     PmViewErrorHandler errorHandler)
 {
     _errorHandler      = errorHandler;
     _prjCommandHandler = prjCommandHandler;
     _asyncProcessor    = asyncProcessor;
     _model             = model;
     _view           = view;
     _projectHandler = projectHandler;
 }
Пример #11
0
 public PmReleasesViewHandler(
     PmModel model,
     PmView view,
     AsyncProcessor asyncProcessor,
     PmReleasesHandler releasesHandler,
     PmPackageHandler packageHandler,
     PrjCommandHandler prjCommandHandler,
     PmSettings pmSettings)
 {
     _pmSettings        = pmSettings;
     _prjCommandHandler = prjCommandHandler;
     _packageHandler    = packageHandler;
     _releasesHandler   = releasesHandler;
     _asyncProcessor    = asyncProcessor;
     _view  = view;
     _model = model;
 }
Пример #12
0
        void SetupDependencies()
        {
            // We could use a DI framework like zenject here but it's overkill
            // and also we'd like to keep the dependencies for Projeny low
            // So just do poor man's DI instead
            _asyncProcessor = new AsyncProcessor();

            _settings = Resources.Load <PmSettings>("Projeny/PmSettings");
            _view     = new PmView(_viewModel, _settings);

            _prjCommandHandler = new PrjCommandHandler(_view);

            _packageHandler  = new PmPackageHandler(_model, _prjCommandHandler, _view);
            _releasesHandler = new PmReleasesHandler(_model, _prjCommandHandler);

            _inputHandler       = new PmInputHandler(_view, _model, _packageHandler, _asyncProcessor);
            _viewErrorHandler   = new PmViewErrorHandler(_view, _asyncProcessor);
            _viewAsyncHandler   = new PmViewAsyncHandler(_view, _asyncProcessor, _settings);
            _viewModelSyncer    = new PmModelViewSyncer(_model, _view, _settings);
            _projectHandler     = new PmProjectHandler(_model, _view);
            _dragDropHandler    = new PmDragDropHandler(_model, _view, _asyncProcessor, _packageHandler, _prjCommandHandler);
            _packageViewHandler = new PmPackageViewHandler(_view, _asyncProcessor, _packageHandler, _prjCommandHandler, _settings);

            _windowInitializer       = new PmWindowInitializer(_projectHandler, _packageHandler, _releasesHandler, _asyncProcessor);
            _createNewProjectHandler = new PmCreateNewProjectPopupHandler(_view, _asyncProcessor, _prjCommandHandler, _windowInitializer);

            _projectViewHandler = new PmProjectViewHandler(
                _model, _view, _projectHandler, _asyncProcessor,
                _prjCommandHandler, _viewErrorHandler);

            _solutionViewHandler = new PmVsSolutionViewHandler(
                _model, _view, _asyncProcessor,
                _prjCommandHandler, _viewErrorHandler, _projectHandler);

            _releasesViewHandler = new PmReleasesViewHandler(
                _model, _view, _asyncProcessor, _releasesHandler, _packageHandler, _prjCommandHandler, _settings);
        }