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); }
public void BindDataSource() { _dataSource = _app.DataSource; }