BCR.GlobalSettings.Set C# (CSharp) Method

Set() public method

public Set ( string key, string value ) : void
key string
value string
return void
        public void Set(string key, string value)
        {
            string test;
              if (mSettings.TryGetValue(key, out test))
              {
            Database.Instance.ExecuteNonQuery("UPDATE settings SET value='" + value + "' WHERE key='"+key+"';");
              }
              else
              {
            Database.Instance.ExecuteNonQuery("INSERT INTO settings (key,value) VALUES ('"+key+"','"+value+"');");
              }

              mSettings[key] = value;
        }