Example #1
0
        public SamplePattern()
        {
            Console.WriteLine("Pattern Recognize program has started");
            TickData tickData = new TickData();

            tickData.TickUpdated += OnTickUpdated;
        }   //TO DO: Create a second thread that will listen to the tick data event to process...right now I don't think this program is active to listen to the event.
Example #2
0
        static void Main(string[] args)
        {
            SamplePattern runSamplePattern = new SamplePattern();
            TickData      runPublisher     = new TickData();

            runPublisher.TickUpdated += OnTickUpdated;

            Thread runTickThread = new Thread(runPublisher.PublishTickData);

            runTickThread.Start();

            Console.ReadKey();
        }