public void Initialize(DataSource dataSource, RepositoryJsonDataSource dataSourceRepository, RepositoryCustomMarketInfo marketInfoRepository) {
			if (base.DesignMode) return;
			this.dataSource = dataSource;
			this.dataSourceRepository = dataSourceRepository;
			this.marketInfoRepository = marketInfoRepository;
			this.populateMarketFromDataSource();
		}
Beispiel #2
0
 public void Initialize(DataSource dataSource, RepositoryJsonDataSource dataSourceRepository, RepositoryCustomMarketInfo marketInfoRepository)
 {
     if (base.DesignMode)
     {
         return;
     }
     this.dataSource           = dataSource;
     this.dataSourceRepository = dataSourceRepository;
     this.marketInfoRepository = marketInfoRepository;
     this.populateMarketFromDataSource();
 }
Beispiel #3
0
//		[Obsolete("looks illogical, move IStatusReporter to Initialize() and use Assembler.InstanceInitialized instead of Assembler.Constructed")]
//		protected Assembler(IStatusReporter mainForm) : this() {
//			this.StatusReporter = mainForm;
//			Assembler.instance = this;
//		}
        public Assembler()
        {
            this.RepositoryCustomSymbolInfo = new RepositoryCustomSymbolInfo();
            this.MarketInfoRepository       = new RepositoryCustomMarketInfo();
            this.RepositoryJsonDataSource   = new RepositoryJsonDataSource();
            this.RepositoryDllJsonStrategy  = new RepositoryDllJsonStrategy();

            this.RepositoryDllStaticProvider    = new RepositoryDllStaticProvider();
            this.RepositoryDllStreamingProvider = new RepositoryDllStreamingProvider();
            this.RepositoryDllBrokerProvider    = new RepositoryDllBrokerProvider();
            this.RepositoryDllReporters         = new RepositoryDllReporters();

            this.WorkspacesRepository = new RepositoryFoldersNoJson();

            //this.ChartRendererConfigured = new ChartRenderer();
            this.OrderProcessor = new OrderProcessor();
            this.AlertsForChart = new DictionaryManyToOne <ChartShadow, Alert>();

            this.AssemblerDataSnapshot           = new AssemblerDataSnapshot();
            this.AssemblerDataSnapshotSerializer = new Serializer <AssemblerDataSnapshot>();
        }
//		[Obsolete("looks illogical, move IStatusReporter to Initialize() and use Assembler.InstanceInitialized instead of Assembler.Constructed")]
//		protected Assembler(IStatusReporter mainForm) : this() {
//			this.StatusReporter = mainForm;
//			Assembler.instance = this;
//		}
		public Assembler() {
			this.RepositoryCustomSymbolInfo = new RepositoryCustomSymbolInfo();
			this.MarketInfoRepository = new RepositoryCustomMarketInfo();
			this.RepositoryJsonDataSource = new RepositoryJsonDataSource();
			this.RepositoryDllJsonStrategy = new RepositoryDllJsonStrategy();

			this.RepositoryDllStaticProvider = new RepositoryDllStaticProvider();
			this.RepositoryDllStreamingProvider = new RepositoryDllStreamingProvider();
			this.RepositoryDllBrokerProvider = new RepositoryDllBrokerProvider();
			this.RepositoryDllReporters = new RepositoryDllReporters();
			
			this.WorkspacesRepository = new RepositoryFoldersNoJson();

			//this.ChartRendererConfigured = new ChartRenderer();
			this.OrderProcessor = new OrderProcessor();
			this.AlertsForChart = new DictionaryManyToOne<ChartShadow, Alert>();
			
			this.AssemblerDataSnapshot = new AssemblerDataSnapshot();
			this.AssemblerDataSnapshotSerializer = new Serializer<AssemblerDataSnapshot>();
		}