Пример #1
0
        //public void Connected(Connected cb)
        //{
        //    _connectCallback = cb;
        //}

        //public void Notify(Notify notify)
        //{
        //    _notify = notify;
        //}
        #endregion

        private void InitServiceThread(object obj)
        {
            int sleepTime = (int)obj;

            Thread.Sleep(sleepTime);

            //TODO: start the service
            _tdfQuote.Start();

            //_waitHandle.WaitOne();
        }
Пример #2
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var buttonConfig = ConfigManager.Instance.GetButtonConfig();

            TDFQuote quote = new TDFQuote();

            quote.Start();

            //while (true)
            //{
            //    autoResetEvent.WaitOne();
            //}

            Application.Run(new TDFQuoteForm(quote));
        }