public PullRequestsNavigationItem(IGitHubServiceProvider serviceProvider, ISimpleApiClientFactory apiFactory, ITeamExplorerServiceHolder holder, IOpenPullRequestsCommand openPullRequests) : base(serviceProvider, apiFactory, holder, Octicon.git_pull_request) { this.openPullRequests = openPullRequests; Text = Resources.PullRequestsNavigationItemText; ArgbColor = Colors.RedNavigationItem.ToInt32(); }
public PullRequestStatusBarManager( IUsageTracker usageTracker, IOpenPullRequestsCommand openPullRequestsCommand, IShowCurrentPullRequestCommand showCurrentPullRequestCommand, Lazy <IPullRequestSessionManager> pullRequestSessionManager, Lazy <ITeamExplorerContext> teamExplorerContext) { this.openPullRequestsCommand = new UsageTrackingCommand(openPullRequestsCommand, usageTracker, x => x.NumberOfStatusBarOpenPullRequestList); this.showCurrentPullRequestCommand = new UsageTrackingCommand(showCurrentPullRequestCommand, usageTracker, x => x.NumberOfShowCurrentPullRequest); this.pullRequestSessionManager = pullRequestSessionManager; this.teamExplorerContext = teamExplorerContext; }
public PullRequestStatusBarManager( Lazy <IUsageTracker> usageTracker, IOpenPullRequestsCommand openPullRequestsCommand, IShowCurrentPullRequestCommand showCurrentPullRequestCommand, Lazy <IPullRequestSessionManager> pullRequestSessionManager, Lazy <ITeamExplorerContext> teamExplorerContext, Lazy <IConnectionManager> connectionManager) { this.openPullRequestsCommand = new UsageTrackingCommand(usageTracker, x => x.NumberOfStatusBarOpenPullRequestList, openPullRequestsCommand); this.showCurrentPullRequestCommand = new UsageTrackingCommand(usageTracker, x => x.NumberOfShowCurrentPullRequest, showCurrentPullRequestCommand); this.pullRequestSessionManager = pullRequestSessionManager; this.teamExplorerContext = teamExplorerContext; this.connectionManager = connectionManager; }