コード例 #1
0
        public IssueVisualizationViewModel(IAnalysisIssueSelectionService selectionService,
                                           ILocationNavigator locationNavigator,
                                           IFileNameLocationListItemCreator fileNameLocationListItemCreator,
                                           INavigateToCodeLocationCommand navigateToCodeLocationCommand,
                                           INavigateToRuleDescriptionCommand navigateToRuleDescriptionCommand,
                                           INavigateToDocumentationCommand navigateToDocumentationCommand)
        {
            this.selectionService  = selectionService;
            this.locationNavigator = locationNavigator;
            this.fileNameLocationListItemCreator = fileNameLocationListItemCreator;

            NavigateToCodeLocationCommand    = navigateToCodeLocationCommand;
            NavigateToRuleDescriptionCommand = navigateToRuleDescriptionCommand;
            NavigateToDocumentationCommand   = navigateToDocumentationCommand;

            selectionService.SelectionChanged += SelectionEvents_OnSelectionChanged;

            UpdateState(SelectionChangeLevel.Issue,
                        selectionService.SelectedIssue,
                        selectionService.SelectedFlow,
                        selectionService.SelectedLocation);
        }
コード例 #2
0
 public ErrorTagTooltipProvider(IVsThemeColorProvider vsThemeColorProvider, INavigateToRuleDescriptionCommand navigateToRuleDescriptionCommand)
 {
     this.vsThemeColorProvider             = vsThemeColorProvider;
     this.navigateToRuleDescriptionCommand = navigateToRuleDescriptionCommand;
 }