Beispiel #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();
        }
        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));
        }