Esempio n. 1
0
        /// <summary>
        /// 获取配置
        /// </summary>
        public void getConfig1()
        {
            string cfgStr = new FnFile().getConfig1();

            if (cfgStr.Trim().Length != 0)
            {
                JObject obj = (JObject)JsonConvert.DeserializeObject(cfgStr);
                config1 = new Config1(obj);
            }
            else
            {
                config1 = new Config1();
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 获取配置
        /// </summary>
        public void getCommParam()
        {
            string paramStr = new FnFile().getCommParam();

            if (paramStr.Trim().Length != 0)
            {
                JObject obj = (JObject)JsonConvert.DeserializeObject(paramStr);
                sysparam = new CommParam(obj);
            }
            else
            {
                sysparam = new CommParam();
            }
        }