示例#1
0
        public SingleDataSourceViewModel(ISingleDataSource dataSource,
                                         IActionCenter actionCenter)
            : base(dataSource)
        {
            if (actionCenter == null)
            {
                throw new ArgumentNullException(nameof(actionCenter));
            }

            _actionCenter          = actionCenter;
            _dataSource            = dataSource;
            _fileName              = Path.GetFileName(dataSource.FullFileName);
            _folder                = Path.GetDirectoryName(dataSource.FullFileName);
            _openInExplorerCommand = new DelegateCommand(OpenInExplorer);
            Update();

            UpdateDisplayNoTimestampCount();
            PropertyChanged += OnPropertyChanged;
        }
示例#2
0
 public CachingSingleDataSource(ISingleDataSource <T> realDataSource)
     : base(realDataSource)
 {
 }