public AlgorithmController(IObservable <Type> types /*IObservable<IEnumerable<KeyValuePair<DateTime, double>>> Measurements*/) { AlgoViewModels = types .Select(_ => VMFactory.ViewModelSelector(_)) .Where(_ => _ != null); }
public TimeSeriesController(ISubject <IEnumerable <KeyValuePair <DateTime, double> > > observable, Dispatcher dis) { Buttons = VMFactory.BuildButtons(observable); TimeValueSeries = observable.Select(_ => new CollectionViewModel <KeyValuePair <DateTime, double> >(_, dis)); }