コード例 #1
0
 public ToolWindowViewModel(InstallBakerEventAggregator eventAggregator, DependenciesRegistry dependenciesRegistry)
 {
     _eventAggregator = eventAggregator;
     _dependenciesRegistry = dependenciesRegistry;
     Initialize();
     HookEvents();
 }
コード例 #2
0
 public BuildProgressService(InstallBakerEventAggregator eventAggregator, BuildEvents buildEvents, Solution currentSolution)
     : base(eventAggregator)
 {
     _buildEvents = buildEvents;
     _currentSolution = currentSolution;
     _availableProjectsDict = new Dictionary<string, ProjectInfo>();
     HookEvents();
 }
コード例 #3
0
 public InstallerProjectManagementService(InstallBakerEventAggregator eventAggregator, SolutionEvents solutionEvents, Solution solution)
     : base(eventAggregator)
 {
     _solutionEvents = solutionEvents;
     _currentSolution = solution;
     LoadInstallerProject();
     HookEvents();
 }
コード例 #4
0
 protected override void OnClose()
 {
     _toolWindowViewModel.Dispose();
     _dependenciesRegistry.Dispose();
     _buildProgressService.Dispose();
     _installerProjectManagementService.Dispose();
     _eventAggreagator = null;
     _toolWindowViewModel = null;
     _dependenciesRegistry = null;
     _buildProgressService = null;
     _installerProjectManagementService = null;
     base.OnClose();
 }
コード例 #5
0
        protected override void Initialize()
        {
            base.Initialize();
            _basePackage = (InstallBakerPackage)Package;
            _eventAggreagator = new InstallBakerEventAggregator();
            _dependenciesRegistry = new DependenciesRegistry(_eventAggreagator);
            _toolWindowViewModel = new ToolWindowViewModel(_eventAggreagator, _dependenciesRegistry);
            ((ToolWindowView) Content).DataContext = _toolWindowViewModel;

            _installerProjectManagementService = new InstallerProjectManagementService(_eventAggreagator,
                                                                       _basePackage.IDE.Events.SolutionEvents, _basePackage.IDE.Solution);
            // TODO Find a better way
            _dependenciesRegistry.ItsInstallerProjectManagementService = _installerProjectManagementService;
            _buildProgressService = new BuildProgressService(_eventAggreagator, _basePackage.IDE.Events.BuildEvents, _basePackage.IDE.Solution);
        }
コード例 #6
0
 public DependenciesRegistry(InstallBakerEventAggregator eventAggregator)
 {
     _eventAggregator = eventAggregator;
     Initialize();
     HookEvents();
 }
コード例 #7
0
 public BaseEventsService(InstallBakerEventAggregator eventAggregator)
 {
     _eventAggregator = eventAggregator;
 }