/*
         * void ButtOkOrNot_Click(object sender, RoutedEventArgs e)
         * {
         *  //throw new NotImplementedException();
         *  FORTSStatusWindow wfs = new FORTSStatusWindow();
         *  wfs.WindowStartupLocation = WindowStartupLocation.CenterScreen;
         *  wfs.ControlFORTSStatus.BindButtons((object)Plaza2Connector.GUIBox);
         *  m_mainWindow.DummyButton.Focus();
         *  wfs.ShowDialog();
         *
         * }
         *
         * private bool RetrieveInstTF(string buttName, ref string isin, ref  string tf, ref string stDt)
         * {
         *
         *  Regex reg = new Regex(@"([\w0-9\-\.]+)_([\w0-9]+)");
         *  Match m = reg.Match(buttName);
         *  if (m.Groups.Count > 2)
         *  {
         *      isin = Convert.ToString(m.Groups[1]);
         *      tf = Convert.ToString(m.Groups[2]);
         *
         *      DateTime dt = Plaza2Connector.ServerTime;
         *
         *      stDt = CUtilTime.NormalizeDay(dt).ToString();
         *      return true;
         *  }
         *
         *  return false;
         * }
         *
         *
         *
         *
         *
         */



        private void ThreadFunc()
        {
            //Plaza2Connector = new CPlaza2Connector();
            _dealingServer = new CASTSDealingServer();
            _dealingServer.PasswordChangeReply = OnPasswordChangeReply;
            _dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(BindData));

            _dealingServer.Process();


            // Plaza2Connector.Process();
        }
Example #2
0
        static void TestASTSDealingServer()
        {
            IAlarmable         alarmer       = new StubAlarmer();
            CASTSDealingServer dealingServer = new CASTSDealingServer(/*alarmer*/);

            dealingServer.Process();



            while (true)
            {
                Thread.Sleep(100);
            }
        }