public static void setValue(DAOContext con, string strgKey, string strgValue)
        {
            SettingsDAO dao = new SettingsDAO(con);

            dao.mergeSettings(strgKey, strgValue);
            SettingsSingleton.cache_[strgKey] = new values(Int32.MinValue, strgValue);
        }
 public static void setValue(string strgKey, string strgValue)
 {
     using (DAOContext con = new DAOContext(AccessConstring.SettingConString))
     {
         con.OpenConnection();
         SettingsDAO dao = new SettingsDAO(con);
         dao.mergeSettings(strgKey, strgValue);
         con.CloseConnection();
     }
     SettingsSingleton.cache_[strgKey] = new values(Int32.MinValue, strgValue);
 }