示例#1
0
        private static void UpdateKeyComboValue(SettingsRegKey key, string valueName, ref string member, KeyCombo value)
        {
            string text = _disableKeyCombo;

            if (value != null && value.IsValid)
            {
                text = value.ToString();
            }

            SettingsRegKey.UpdateStringValue(key, valueName, ref member, text);
        }
示例#2
0
 /// <summary>
 /// Store the user entered API key.
 /// </summary>
 /// <param name="keyName">Name of the service, whose key is to be updated</param>
 /// <param name="keyValue">Updated key to be stored and used</param>
 internal static void SetKey(string keyName, string keyValue)
 {
     SettingsRegKey.UpdateStringValue(SettingsKey, keyName, ref _key, keyValue);
 }