Пример #1
0
        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);
        }
Пример #2
0
 public Setting_Form()
 {
     InitializeComponent();
     settings = new ModuleSettings();
     settings = ModuleConfig.GetSettings();
 }
Пример #3
0
        int _errsendnum; //发送错误的数据

        public CSend_Model()
        {
            settings = ModuleConfig.GetSettings();
        }
Пример #4
0
 public CIncept_Model()
 {
     settings = ModuleConfig.GetSettings();
 }