public TaskBoardCardsModel(GeneralOptions options, WorkItemSelectionService workItemSelectionService,
                            IVisualStudioAdapter visualStudioAdapter)
 {
     this.options = options;
     this.workItemSelectionService = workItemSelectionService;
     this.visualStudioAdapter = visualStudioAdapter;
 }
示例#2
0
 public TaskBoardCardsModel(GeneralOptions options, WorkItemSelectionService workItemSelectionService,
                            IVisualStudioAdapter visualStudioAdapter)
 {
     this.options = options;
     this.workItemSelectionService = workItemSelectionService;
     this.visualStudioAdapter      = visualStudioAdapter;
 }
示例#3
0
        public WorkItemContextMenuViewModel(GeneralOptions options, WorkItemSelectionService workItemSelectionService,
                                            IVisualStudioAdapter visualStudioAdapter)
        {
            this.options = options;
            this.workItemSelectionService = workItemSelectionService;
            this.visualStudioAdapter      = visualStudioAdapter;

            commandHandlerMappings = new Dictionary <int, Action>
            {
                { MenuCommands.ShowAffectedChangesetFiles, ShowAffectedChangesetFiles },
                { MenuCommands.ShowChangesetsWithAffectedFiles, ShowChangesetsWithAffectedFiles },
                { MenuCommands.ShowReviewWindow, ShowReviewWindow }
            };

            commandFeatureMappings = new Dictionary <int, Feature>
            {
                { MenuCommands.ShowAffectedChangesetFiles, Feature.ShowAffectedChangesetFiles },
                { MenuCommands.ShowChangesetsWithAffectedFiles, Feature.ShowChangesetsWithAffectedFiles },
                { MenuCommands.ShowReviewWindow, Feature.Review }
            };
        }