public AnalyzerConfigurationViewModel()
 {
     _issuesAnalyzer = ServiceLocator.Resolve<IssuesAnalyzerService>();
     Analyzers = new ListCollectionView(_issuesAnalyzer.AnalyzerContext.Analyzers);
     Analyzers.GroupDescriptions.Add(new PropertyGroupDescription("Category"));
     Analyzers.MoveCurrentToFirst();
 }
예제 #2
0
        public IssuesListViewModel()
        {
            _selectedTreeItemService = ServiceLocator.Resolve<SelectedTreeItemService>();
            _issuesAnalyzerService = ServiceLocator.Resolve<IssuesAnalyzerService>();
            Issues = new ListCollectionView(_issuesAnalyzerService.AnalyzerContext.Issues);
            Issues.SortDescriptions.Add(new SortDescription("Severity", ListSortDirection.Descending));
            Issues.Filter = FilterIssues;
            _issuesAnalyzerService.AnalyzerContext.IssuesChanged += (s, e) => IssuesChanged();

            ConfigureAnalyzersCommand = new Command<object>( o => new AnalyzerConfigurationWindow().Show());
        }