protected ChangesetProviderBase(IServiceProvider serviceProvider)
        {
            _serviceProvider = serviceProvider;
            _changesetService = new Lazy<ChangesetService>(InitChangesetService);

            var componentModel = (IComponentModel)_serviceProvider.GetService(typeof (SComponentModel));
            _settings = componentModel.DefaultExportProvider.GetExportedValue<Settings>();
        }
Example #2
0
        public BranchFactory(string sourceBranch,
			string sourceFolder,
			ChangesetVersionSpec changesetVersion,
			BranchValidator branchValidator,
			IEventAggregator eventAggregator,
            Settings settings)
        {
            _sourceBranch = sourceBranch;
            _sourceFolder = sourceFolder;
            _changesetVersion = changesetVersion;
            _branchValidator = branchValidator;
            _eventAggregator = eventAggregator;
            _settings = settings;
        }
Example #3
0
        public BranchesViewModel(Settings settings, ILogger logger)
            : base(logger)
        {
            Title = Resources.BrancheSectionName;
            IsVisible = true;
            IsExpanded = true;
            IsBusy = false;

            MergeCommand = new DelegateCommand<MergeMode?>(MergeExecute, m => MergeCanEcexute());
            SelectWorkspaceCommand = new DelegateCommand<Workspace>(SelectWorkspaceExecute);
            OpenSourceControlExplorerCommand = new DelegateCommand(OpenSourceControlExplorerExecute, OpenSourceControlExplorerCanExecute);

            _settings = settings;
            _eventAggregator = EventAggregatorFactory.Get();
            _merging = false;
        }