public void LoadConfig(string path) { Config = XmlTool.ReadXmlClas( Config, Path.GetDirectoryName(path), Path.GetFileName(path)); }
public void InitCore() { LogName = TodayLogPath(); Lggr = new TextLogger(LogDirPath, LogName) .Act(x => Err = new IPSErrorMsgData(x)); Config = XmlTool.ReadXmlClas( new IPSDefualtSetting().ToConfig(), // Defulat Setting ConfigBasePath.CheckAndCreateDir(), ConfigName.CheckAndCreateFile()); }