Exemplo n.º 1
0
        private void ShowAffectedChangesetFiles()
        {
            TfsTeamProjectCollection tpc = visualStudioAdapter.GetCurrent();
            var workItemStore            = tpc.GetService <WorkItemStore>();
            var versionControlServer     = tpc.GetService <VersionControlServer>();
            var workItemCollector        = new WorkItemCollector(workItemStore);
            var model = new ShowChangesetItemsModel(workItemSelectionService, workItemCollector, workItemStore, versionControlServer, visualStudioAdapter);

            var dte  = (EnvDTE.DTE)Package.GetGlobalService(typeof(EnvDTE.DTE));
            var view = new ShowChangesetItemsView(dte);

            view.ConnectTo(model);

            model.Execute();
        }
Exemplo n.º 2
0
        public void Review(int workItemId, IReviewItemFilter filter)
        {
            if (workItemId <= 0)
            {
                ItemsToReview = new ReviewItemModel[0];
            }

            var workItemCollector = new WorkItemCollector(workItemStore);
            var collectorStrategy = new ReviewItemCollectorStrategy(workItemStore, versionControlServer, teamProjectCollectionProvider, filter);

            workItemCollector.CollectItems(workItemId, collectorStrategy);

            ItemsToReview = collectorStrategy.Items;

            var workItem = workItemStore.GetWorkItem(workItemId);

            Title = string.Format("Review - {0} {1} - {2}", workItem.Type.Name, workItem.Id, workItem.Title);
        }
Exemplo n.º 3
0
        public void Review(int workItemId, IReviewItemFilter filter)
        {
            if (workItemId <= 0)
            {
                ItemsToReview = new ReviewItemModel[0];
            }

            var workItemCollector = new WorkItemCollector(workItemStore);
            var collectorStrategy = new ReviewItemCollectorStrategy(workItemStore, versionControlServer, teamProjectCollectionProvider, filter);

            workItemCollector.CollectItems(workItemId, collectorStrategy);

            ItemsToReview = collectorStrategy.Items;

            var workItem = workItemStore.GetWorkItem(workItemId);

            Title = string.Format("Review - {0} {1} - {2}", workItem.Type.Name, workItem.Id, workItem.Title);
        }