public FiltersViewModel(IMergingService mergingService, ProjectMembersSetsViewModel projectMembersSetsViewModel, CurrentUserViewModel currentUserViewModel) { _projectMembersSetsViewModel = projectMembersSetsViewModel; _areFiltersEnabled = mergingService.IsMergingCompleted; mergingService.MergingCompleted += OnProjectPathChanged; currentUserViewModel.CurrentUserSet += CurrentUserViewModelOnCurrentUserSet; _currentUser = currentUserViewModel.CurrentUser; }
public ProjectQueryService(IStorageService <Project> storageService, IMergingService mergingService) { _storageService = storageService; mergingService.MergingCompleted += InitializeDataFromStorage; if (mergingService.IsMergingCompleted) { InitializeDataFromStorage(); } }
public QueryService(IStorageService <TModel> storageService, IMergingService mergingService) { _storageService = storageService; _recentlyChanged = new HashSet <object>(); _recentlyDeleted = new HashSet <object>(); mergingService.MergingCompleted += InitializeDataFromStorage; _data = new Dictionary <object, TModel>(); InitializeDataFromStorage(); }
public ButtonsViewModel(IRepositoryService repositoryService, IMergingService mergingService) { _isHistoryBeingResolved = false; _repositoryService = repositoryService; _resolveHistoryCommand = new RelayCommand(OnResolveHistoryCommand); _addTaskStateCommand = new RelayCommand(OnAddTaskStateCommand); _setCurrentUserCommand = new RelayCommand(OnSetCurrentUserCommand); mergingService.MergingCompleted += OnProjectPathChanged; _areButtonsEnabled = mergingService.IsMergingCompleted; }
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; }