Esempio n. 1
0
        public App()
        {
            IsRunning = true;
            LoadConfig();
            _dataSource = new CDataSource(this,
                                          System.Windows.Threading.Dispatcher.CurrentDispatcher,
                                          _tradeManagerConf.IP_DB, _tradeManagerConf.Port_DB,
                                          _tradeManagerConf.LstStockExhId,
                                          _tradeManagerConf.LstModelStockExchState,
                                          _tradeManagerConf.LstModelDBCon);

            _commandProcessor = new CCommandProcessor(_dataSource);

            GUIDispatcher = System.Windows.Threading.Dispatcher.CurrentDispatcher;
            _alarmer      = new CAlarmer(this);
            CUtil.TaskStart(TaskBindAlarm);
        }
Esempio n. 2
0
 public void BindDataSource()
 {
     _dataSource = _app.DataSource;
 }