Example #1
0
 public SettingVal Val()
 {
     if (settingVal_ == null)
     {
         settingVal_ = new SettingVal();
     }
     return(settingVal_);
 }
Example #2
0
        public void Load()
        {
            var    p      = SavePath();
            string cfgStr = "";

            try
            {
                if (File.Exists(p))
                {
                    cfgStr      = File.ReadAllText(p);
                    settingVal_ = JsonConvert.DeserializeObject <SettingVal>(cfgStr);
                }
                else
                {
                }
            }
            catch (Exception ex)
            {
            }
        }