public PmReleasesHandler( PmModel model, PrjCommandHandler prjCommandHandler) { _prjCommandHandler = prjCommandHandler; _model = model; }
public PmProjectHandler( PmModel model, PmView view) { _view = view; _model = model; }
public PmModelViewSyncer( PmModel model, PmView view, PmSettings pmSettings) { _pmSettings = pmSettings; _model = model; _view = view; }
public PmPackageHandler( PmModel model, PrjCommandHandler prjCommandHandler, PmView view) { _view = view; _prjCommandHandler = prjCommandHandler; _model = model; }
public PmInputHandler( PmView view, PmModel model, PmPackageHandler packageHandler, AsyncProcessor asyncProcessor) { _asyncProcessor = asyncProcessor; _packageHandler = packageHandler; _model = model; _view = view; }
public PmVsSolutionViewHandler( PmModel model, PmView view, AsyncProcessor asyncProcessor, PrjCommandHandler prjCommandHandler, PmProjectHandler projectHandler) { _projectHandler = projectHandler; _prjCommandHandler = prjCommandHandler; _asyncProcessor = asyncProcessor; _model = model; _view = view; }
public PmDragDropHandler( PmModel model, PmView view, AsyncProcessor asyncProcessor, PmPackageHandler packageHandler, PrjCommandHandler prjCommandHandler) { _prjCommandHandler = prjCommandHandler; _packageHandler = packageHandler; _asyncProcessor = asyncProcessor; _view = view; _model = model; }
public PmPackageViewHandler( PmView view, AsyncProcessor asyncProcessor, PmPackageHandler packageHandler, PrjCommandHandler prjCommandHandler, PmSettings pmSettings, PmModel model) { _model = model; _pmSettings = pmSettings; _prjCommandHandler = prjCommandHandler; _packageHandler = packageHandler; _asyncProcessor = asyncProcessor; _view = view; }
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; }
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; }
void Initialize() { bool isFirstLoad = false; if (!_hasInitialized) { isFirstLoad = true; _model = new PmModel(); _viewModel = new PmView.Model(); for (int i = 0; i < (int)DragListTypes.Count; i++) { _viewModel.ListModels.Add(new DragList.Model()); } } _root = new PmCompositionRoot(_model, _viewModel, isFirstLoad); _root.Initialize(); // Put the _hasInitialized here so that if it fails to initialize it will try again next assembly reload // Otherwise it might serialize half-initialized data _hasInitialized = true; }
void OnEnable() { bool isFirstLoad = false; if (!_hasInitialized) { _hasInitialized = true; isFirstLoad = true; Assert.IsNull(_model); Assert.IsNull(_viewModel); _model = new PmModel(); _viewModel = new PmView.Model(); for (int i = 0; i < (int)DragListTypes.Count; i++) { _viewModel.ListModels.Add(new DragList.Model()); } } _root = new PmCompositionRoot(_model, _viewModel, isFirstLoad); _root.Initialize(); }
public PmCompositionRoot(PmModel model, PmView.Model viewModel, bool isFirstLoad) { _model = model; _viewModel = viewModel; _isFirstLoad = isFirstLoad; }