public UserControl CreateUserControl(IEnumerable <IReport> supportedReports, IEnumerable <IReport> allReports) { uc = new TfsUserControl(supportedReports, allReports); foreach (var teamConfiguration in teamConfig.GetTeamConfigurationsForUser(new[] { projInfo.Uri })) { uc.Teams.Add(teamConfiguration); if (teamConfiguration.IsDefaultTeam) { uc.SelectedTeam = teamConfiguration; uc.SelectedIterationPath = teamConfiguration.TeamSettings.CurrentIterationPath; } } uc.workItemStoreService = workItemStoreService; return(uc); }
public UserControl CreateUserControl(IEnumerable<IReport> supportedReports, IEnumerable<IReport> allReports) { uc = new TfsUserControl(supportedReports, allReports); foreach (var teamConfiguration in teamConfig.GetTeamConfigurationsForUser(new[] { projInfo.Uri })) { uc.Teams.Add(teamConfiguration); if (teamConfiguration.IsDefaultTeam) { uc.SelectedTeam = teamConfiguration; uc.SelectedIterationPath = teamConfiguration.TeamSettings.CurrentIterationPath; } } uc.workItemStoreService = workItemStoreService; return uc; }