public static ModuleSettings GetSettings() { ModuleSettings data = null; XmlSerializer serializer = new XmlSerializer(typeof(ModuleSettings)); try { string fileName = "zk.config"; FileStream fs = new FileStream(fileName, FileMode.Open); data = (ModuleSettings)serializer.Deserialize(fs); fs.Close(); } catch { data = new ModuleSettings(); } return(data); }
public Setting_Form() { InitializeComponent(); settings = new ModuleSettings(); settings = ModuleConfig.GetSettings(); }
int _errsendnum; //发送错误的数据 public CSend_Model() { settings = ModuleConfig.GetSettings(); }
public CIncept_Model() { settings = ModuleConfig.GetSettings(); }