示例#1
0
        public StatementGridViewModel(IStatementProvider statementProvider,
                                      IEventAggregator eventAggregator)
        {
            _statementProvider = statementProvider;
            _eventAggregator   = eventAggregator;
            SubscribeToEvents();

            Statements = new ObservableCollection <StatementWrapper>(
                _statementProvider.GetAllStatements().Select(x => new StatementWrapper(x)));
            LoadLocalizationStrings();
        }
示例#2
0
 public Service(IStatementProvider statement, ITagsProvider tags)
 {
     _statement = statement;
     _tags      = tags;
 }