// 讀取ini設定檔 private void readIni(string iniPath) { _ini_ = new TINI(iniPath + "\\config.ini"); //username = _ini_.getKeyValue("AutoTrading", "Account"); //password = _ini_.getKeyValue("AutoTrading", "Pass"); int _mode = int.Parse(_ini_.getKeyValue("AutoTrading", "mode")); g_curMode = (_mode == 0) ? operationMode.eAutrMode_FakeTrader : operationMode.eAutrMode_DuringMarket; }