コード例 #1
0
 public PmCreateNewProjectPopupHandler(
     PmView view,
     AsyncProcessor asyncProcessor,
     PrjCommandHandler commandHandler,
     PmWindowInitializer windowInitializer)
 {
     _windowInitializer = windowInitializer;
     _commandHandler    = commandHandler;
     _asyncProcessor    = asyncProcessor;
     _view = view;
 }
コード例 #2
0
 public PmCreateNewProjectPopupHandler(
     PmView view,
     AsyncProcessor asyncProcessor,
     PrjCommandHandler commandHandler,
     PmWindowInitializer windowInitializer)
 {
     _windowInitializer = windowInitializer;
     _commandHandler = commandHandler;
     _asyncProcessor = asyncProcessor;
     _view = view;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 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;
 }
コード例 #5
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);
        }
コード例 #6
0
ファイル: PmCompositionRoot.cs プロジェクト: Phrohdoh/Projeny
        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);
        }