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; }
public CachingSingleDataSource(ISingleDataSource <T> realDataSource) : base(realDataSource) { }