Interaction logic for Tfs.xaml
Inheritance: System.Windows.Controls.UserControl, INotifyPropertyChanged
コード例 #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);
        }
コード例 #2
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;
        }