public void AddListener(ILogFileIssueListener listener)
 {
     try
     {
         _inner.AddListener(listener);
     }
     catch (Exception e)
     {
         Log.ErrorFormat("Caught unexpected exception: {0}", e);
     }
 }
Пример #2
0
        public IssuesViewModel(ILogSourceIssueAnalyser analyser,
                               INavigationService navigationService)
        {
            _allIssues         = new List <IssueViewModel>();
            _filteredIssues    = new ObservableCollection <IssueViewModel>();
            _viewModelsByIssue = new Dictionary <ILogSourceIssue, IssueViewModel>();

            _showCritical = true;
            _showMajor    = true;
            _showMinor    = true;

            _analyser          = analyser;
            _navigationService = navigationService;
            _analyser.AddListener(this);
            _analyser.Start();
        }