Ejemplo n.º 1
0
        public static TabViewModel ForHistogram(IEnumerable<SignalCache> signals)
        {
            Contract.Requires(signals != null);

            var tab = new TabViewModel(null, null) {DisplayName = "Гистограмма"};
            tab.Items.AddRange(signals.Select((x, i) => new HistogramViewModel(x, i)));
            return tab;
        }
Ejemplo n.º 2
0
        public static TabViewModel ForSpectrum(IEnumerable<SignalCache> signals, SliceChartController controller)
        {
            Contract.Requires(signals != null);
            Contract.Requires(controller != null);

            var tab = new TabViewModel(controller, null) {DisplayName = "Cпектр"};
            tab.Items.AddRange(signals.Select((x, i) => new SpectrumViewModel(x, i)));
            return tab;
        }
Ejemplo n.º 3
0
        public static TabViewModel ForRawSignal(IEnumerable<SignalCache> signals, SliceChartController controller,
            IEventAggregator eventAggregator)
        {
            Contract.Requires(signals != null);
            Contract.Requires(controller != null);

            var tab = new TabViewModel(controller, eventAggregator) {DisplayName = "Сигнал"};
            var vms = signals.Select((x, i) => new RawSignalViewModel(x, i)).ToList();
            tab.Items.AddRange(vms);
            return tab;
        }