public void ReadSetting() { try { if (System.IO.File.Exists(this.SETTING_PATH)) { RegSetting._instance = ObjectXmlSerializer.LoadFromXml <RegSetting>(this.SETTING_PATH); } } catch (System.Exception err) { Log.WriteError("读取配置信息错误", err); } }
public void ReadSetting() { try { if (System.IO.File.Exists(this.SETTING_PATH)) { RegSetting._instance = ObjectXmlSerializer.LoadFromXml<RegSetting>(this.SETTING_PATH); } } catch (System.Exception err) { Log.WriteError("读取配置信息错误", err); } }