예제 #1
0
 public MergingService(IRepositoryService repositoryService, IProjectPathsReadonlyService projectPathsService)
 {
     IsMergingCompleted  = false;
     _conflictToBeMerged = 0;
     _repositoryService  = repositoryService;
     projectPathsService.ProjectPathChanged  += ProjectPathsServiceOnProjectPathChanged;
     _repositoryService.RepositoryInitalized += RepositoryServiceOnRepositoryInitalized;
 }
예제 #2
0
 public RepositoryService(IProjectPathsReadonlyService projectPathsService, IFileService fileService)
 {
     IsRepositoryInitialized = false;
     _projectPathsService    = projectPathsService;
     _fileService            = fileService;
     _projectPathsService.ProjectPathChanged += OnProjectPathChanged;
     _historyResolvingService = new HistoryResolvingService(fileService);
     OnProjectPathChanged();
 }
 public ProjectMembersSetsViewModel(IProjectQueryService projectQueryService,
                                    IProjectPathsReadonlyService projectPathsService,
                                    ProjectMembersViewModel projectMembersViewModel)
 {
     _projectMembersViewModel           = projectMembersViewModel;
     _projectMembersNamesSetsDictionary = new Dictionary <string, int>();
     _projectMembersSets                     = new List <HashSet <ProjectMember> >();
     projectQueryService.UserAdded          += ProjectQueryServiceOnUserAdded;
     projectPathsService.ProjectPathChanged += ProjectPathsServiceOnProjectPathChanged;
 }
예제 #4
0
        public MainViewModel(IProjectPathsReadonlyService projectPathsService,
                             RegistryViewModel registryViewModel,
                             IMergingService mergingService)
        {
            _isTaskBoardVisible          = false;
            _isMergingToolVisible        = false;
            _isProjectInitializerVisible = true;

            _isTaskBoardVisible = projectPathsService.IsProjectPathChosen;
            projectPathsService.ProjectPathChanged += OnProjectPathChanged;
            mergingService.MergingCompleted        += MergingServiceOnMergingCompleted;
            registryViewModel.InitializeRegistry();
        }
예제 #5
0
        public MergingViewModel(IMergingService mergingService,
                                IProjectPathsReadonlyService projectPathsService,
                                IRepositoryService repositoryService,
                                IStorageService <TaskState> taskStateStorageService)
        {
            _mergingService          = mergingService;
            _repositoryService       = repositoryService;
            _taskStateStorageService = taskStateStorageService;
            _isLoading         = mergingService.IsMergingCompleted;
            _isOkButtonEnabled = false;
            _okCommand         = new RelayCommand(OnOkCommand);

            projectPathsService.ProjectPathChanged += ProjectPathsServiceOnProjectPathChanged;
            mergingService.MergingConflictsAquired += MergingServiceOnMergingConflictsAquired;
        }
예제 #6
0
 public StorageService(IFileService fileService, IProjectPathsReadonlyService projectPathsService)
 {
     _fileService           = fileService;
     _projectPathsService   = projectPathsService;
     _dataObjectKeyProperty = KeyAttribute.GetKeyProperty(typeof(TDataObject));
 }