public PendingChangesSection( IAppServiceProvider appServiceProvider, IYouTrackClientService youTrackClient, IPendingChangesSectionView sectionView) : base(sectionView) { _appServiceProvider = appServiceProvider; Title = "YouTrack"; }
public ConnectSection( IAppServiceProvider appServiceProvider, IYouTrackClientService youTrackClient, IConnectSectionView sectionView) : base(sectionView) { _appServiceProvider = appServiceProvider; Title = youTrackClient.Title; }
public AppInitializer( IStorageService storageService, IYouTrackClientService youTrackClient, IUserInformationService userInformationService ) { _storageService = storageService; _youTrackClient = youTrackClient; _userInformationService = userInformationService; }
public PublishSection( IPublishSectionView view, IAppServiceProvider appServiceProvider, IYouTrackClientService youTrackClientService, IGitWatcher gitWatcher, IUserInformationService userInformationService, IEventAggregatorService eventAggregator ) : base(view) { _appServiceProvider = appServiceProvider; _userInformationService = userInformationService; _eventAggregator = eventAggregator; Title = $"{Resources.PublishSectionTitle} to {youTrackClientService.Origin}"; IsVisible = IsGitLocalRepoAndLoggedIn(gitWatcher.ActiveRepo); _obs = _eventAggregator.GetEvent <ActiveRepositoryChangedEvent>() .Subscribe(x => IsVisible = IsGitLocalRepoAndLoggedIn(x.ActiveRepository)); }
public PullRequestNavigationItem( IYouTrackClientService youTrackClientService, IGitService gitService, IEventAggregatorService eventAggregator, IUserInformationService userInformationService, ICommandsService commandService ) : base(null) { _youTrackClientService = youTrackClientService; _gitService = gitService; _eventAggregator = eventAggregator; _userInformationService = userInformationService; _commandService = commandService; Text = Resources.PullRequestNavigationItemTitle; Image = Resources.PullRequest; IsVisible = ShouldBeVisible(_userInformationService.ConnectionData); var connectionObs = _eventAggregator.GetEvent <ConnectionChangedEvent>(); var repoObs = _eventAggregator.GetEvent <ActiveRepositoryChangedEvent>(); _observable = connectionObs.Select(x => Unit.Default).Merge(repoObs.Select(x => Unit.Default)).Subscribe(_ => ValidateVisibility()); }
public CreateIssueViewModel( IYouTrackClientService youTrackClientService, IPageNavigationService <IYouTrackIssuesWindow> pageNavigationService, IEventAggregatorService eventAggregator, IUserInformationService userInfoService, ICommandsService commandsService, IDataNotifier dataNotifier, IPullRequestDiffViewModel pullRequestDiffViewModel ) { _youTrackClientService = youTrackClientService; _pageNavigationService = pageNavigationService; _eventAggregator = eventAggregator; _dataNotifier = dataNotifier; PullRequestDiffViewModel = pullRequestDiffViewModel; _userInfoService = userInfoService; SelectedReviewers = new ReactiveList <GitUser>(); }