public static StockSetttings GetSettings() { StockSetttings setting= XmlUtil<StockSetttings>.XmlDeserializeFromFile(SettingPath); if (setting == null) { setting = new StockSetttings(); setting.SetttingList = new List<SettingEntity>(); } return setting; }
private static void SaveSetting(StockSetttings setting) { XmlUtil<StockSetttings>.XmlSerializeToFile(setting,SettingPath); }