public MergingService(IRepositoryService repositoryService, IProjectPathsReadonlyService projectPathsService) { IsMergingCompleted = false; _conflictToBeMerged = 0; _repositoryService = repositoryService; projectPathsService.ProjectPathChanged += ProjectPathsServiceOnProjectPathChanged; _repositoryService.RepositoryInitalized += RepositoryServiceOnRepositoryInitalized; }
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; }
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(); }
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; }
public StorageService(IFileService fileService, IProjectPathsReadonlyService projectPathsService) { _fileService = fileService; _projectPathsService = projectPathsService; _dataObjectKeyProperty = KeyAttribute.GetKeyProperty(typeof(TDataObject)); }