Exemplo n.º 1
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Constructor for instantiating an object for setting\retrieving a string registry
 /// value.
 /// </summary>
 /// <remarks>Use this version of the constructor for user-specific settings. Use the
 /// other version for settings that are both user- AND DB-specific.
 /// </remarks>
 /// <param name="subKeyName">The subkey under FieldWorks (typically an app name)</param>
 /// <param name="keyName">The key whose value is to be stored/retrieved</param>
 /// <param name="defaultValue">The default value to use when retrieving the value of an
 /// unitialized key</param>
 /// ------------------------------------------------------------------------------------
 public RegistryStringSetting(string subKeyName, string keyName, string defaultValue) :
     this(FwSubKey.SettingsKey(subKeyName), keyName, defaultValue)
 {
 }
Exemplo n.º 2
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Constructor for instantiating an object for setting\retrieving a DWORD registry
 /// value that is DB-specific.
 /// </summary>
 /// <remarks>Use the other version for settings that are both user- AND DB-specific.
 /// Use the other version of the constructor for user-specific settings.
 /// </remarks>
 /// <param name="subKeyName">The subkey under FieldWorks (typically an app name)</param>
 /// <param name="sServerName">The name of the database server</param>
 /// <param name="sDbName">The name of the database</param>
 /// <param name="keyName">The key whose value is to be stored/retrieved</param>
 /// <param name="defaultValue">The default value to use when retrieving the value of an
 /// unitialized key</param>
 /// ------------------------------------------------------------------------------------
 public RegistryIntSetting(string subKeyName, string sServerName, string sDbName,
                           string keyName, int defaultValue) :
     this(FwSubKey.SettingsKey(subKeyName, sServerName, sDbName), keyName, defaultValue)
 {
 }