Interaction logic for Tfs.xaml
Inheritance: System.Windows.Controls.UserControl, INotifyPropertyChanged
Example #1
0
        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;
        }