Exemplo n.º 1
0
        public Core()
        {
            LoadNewMarketActionEventHandler = LoadNewMarket;
            MarketProcessorThreadStatusChangedEventHandler = MarketProcessorThreadStatusChanged;
            MarketDataUpdatedEventHandler = MarketDataUpdated;
            EngineMessageEventHandler = NewMessage;
            MarketProcessorMessageEventHandler = NewMessage;
            AutoMarketLoaderMessageEventHandler = NewMessage;

            // Clear and create the event broker
            SubscribeToPublicEvents();

            if (File.Exists(Directory.GetCurrentDirectory() + "\\lignite.configuration.xml"))
            {
                // Load the config settings
                settings = new XmlFileOperations().Read(Directory.GetCurrentDirectory() + "\\lignite.configuration.xml");

                //Load plugins
                Loadplugins();
            }
        }
Exemplo n.º 2
0
        public Core()
        {
            LoadNewMarketActionEventHandler = LoadNewMarket;
            MarketProcessorThreadStatusChangedEventHandler = MarketProcessorThreadStatusChanged;
            MarketDataUpdatedEventHandler       = MarketDataUpdated;
            EngineMessageEventHandler           = NewMessage;
            MarketProcessorMessageEventHandler  = NewMessage;
            AutoMarketLoaderMessageEventHandler = NewMessage;

            // Clear and create the event broker
            SubscribeToPublicEvents();

            if (File.Exists(Directory.GetCurrentDirectory() + "\\lignite.configuration.xml"))
            {
                // Load the config settings
                settings = new XmlFileOperations().Read(Directory.GetCurrentDirectory() + "\\lignite.configuration.xml");

                //Load plugins
                Loadplugins();
            }
        }