Beispiel #1
0
        public DataSourceManager(IDataSourceProviderDiscovery discovery)
        {
            if (discovery == null)
                throw new ArgumentNullException("discovery");

            this.Providers = discovery.Providers;

            if (this.Providers == null)
                throw new ArgumentException("Providers cannot be null.", "discovery");
        }
Beispiel #2
0
        public DataSourceManager(IDataSourceProviderDiscovery discovery)
        {
            if (discovery == null)
            {
                throw new ArgumentNullException("discovery");
            }

            this.Providers = discovery.Providers;

            if (this.Providers == null)
            {
                throw new ArgumentException("Providers cannot be null.", "discovery");
            }
        }
Beispiel #3
0
 public MainViewModel(IDataSourceProviderDiscovery dataSources, IIndicatorBindingDiscovery indicators)
 {
     this.Providers  = dataSources.Providers.Select(o => new DataSourceProviderViewModel(o));
     this.Indicators = indicators.Indicators.Select(o => new IndicatorViewModel(o));
     this.Data       = new DataViewModel("Please Select a Data Source.");
 }
Beispiel #4
0
 public MainViewModel(IDataSourceProviderDiscovery dataSources, IIndicatorBindingDiscovery indicators)
 {
     this.Providers = dataSources.Providers.Select(o => new DataSourceProviderViewModel(o));
     this.Indicators = indicators.Indicators.Select(o => new IndicatorViewModel(o));
     this.Data = new DataViewModel("Please Select a Data Source.");
 }