public Stereo3DRegistryKey(string keyName, uint keyValue)
 {
     KeyName         = keyName;
     KeyValue        = keyValue;
     KeyDefaultValue = Stereo3DRegistryKeyDefaults.GetDefaultKeyValue(keyName);
     KeyIsHotkey     = Stereo3DRegistryKeyDefaults.KeyIsHotkey(keyName);
 }
Beispiel #2
0
        private uint ReadKeyValue(string keyToRead)
        {
            object keyValue = _stereo3DKey.GetValue(keyToRead);

            if (keyValue == null)
            {
                keyValue = Stereo3DRegistryKeyDefaults.GetDefaultKeyValue(keyToRead);
                _stereo3DKey.SetValue(keyToRead, keyValue);
            }
            int keyValueInt = Convert.ToInt32(keyValue);

            return(unchecked ((uint)keyValueInt));
        }