public CFATManager(ERUN_MODE nMode = ERUN_MODE.BACKTEST, string sMode = "") { m_configGeneral = new TGeneralInfo(); CConfigMng.load_config_general(ref m_configGeneral); CMQClient.connectToMQ(m_configGeneral.sHost, m_configGeneral.sUser, m_configGeneral.sPwd); CFATLogger.output_proc(string.Format("###### Start Mode = {0} #######", sMode)); CFATManager.m_nRunMode = nMode; m_lstLogics = new List <CLogic>(); m_configLogics = new List <Dictionary <string, string> >(); m_configSites = new List <Dictionary <string, string> >(); m_configWorkTimes = new List <TWorkTimeInterval>(); }
public bool init() { if (!CConfigMng.load_config_site(ref m_configSites)) { return(false); } if (!CConfigMng.load_config_logic(ref m_configLogics)) { return(false); } if (!CConfigMng.load_config_workTime(ref m_configWorkTimes)) { return(false); } return(true); }
public MainViewModel() { ProgramSettings = new CConfigMng(); ProgramSettings.LoadConfig(); }