public SignalViewContainerViewModel(RootViewModel root, Action onRemove) : base(root) { if (onRemove == null) { throw new ArgumentNullException(nameof(onRemove)); } this.onRemove = onRemove; SignalViewSelector = new SignalViewSelectorViewModel(root, this); SignalFiltersPipeline = new SignalFiltersPipelineViewModel(root, SignalViewSelector); }
public SignalFiltersPipelineViewModel(RootViewModel root, SignalViewSelectorViewModel signalViewSelector) : base(root) { if (signalViewSelector == null) { throw new ArgumentNullException(nameof(signalViewSelector)); } this.signalViewSelector = signalViewSelector; AvailableSignalFilterFactories = root.SignalFilterFactories; SignalFilters = new ReorderableObservableCollection <SignalFilterViewModel>(); SignalFilters.ChildReordered += SignalFilters_ChildReordered; }
public DataSourceInstanceViewModel(RootViewModel root, SignalViewSelectorViewModel parent, IDataSource dataSource) : base(root) { if (parent == null) { throw new ArgumentNullException(nameof(parent)); } if (dataSource == null) { throw new ArgumentNullException(nameof(dataSource)); } this.parent = parent; DataSource = dataSource; Name = dataSource.Name; ComponentCount = dataSource.ComponentNames.Length; Components = dataSource.ComponentNames; }