예제 #1
0
 private static bool IsParameterlessSwitchEnabled(ParameterlessSwitchInfo parameterlessSwitch)
 {
     if (parameterlessSwitch.lightUpKey == null)
     {
         return(true);
     }
     if (!parameterlessSwitch.lightUpKeyRead)
     {
         parameterlessSwitch.lightUpKeyRead   = true;
         parameterlessSwitch.lightUpKeyResult = ReadLightupBool(parameterlessSwitch.lightUpKey);
     }
     return(parameterlessSwitch.lightUpKeyResult);
 }
예제 #2
0
 /// <summary>
 /// Returns true if the switch is enabled. Handles lightup logic.
 /// </summary>
 private static bool IsParameterlessSwitchEnabled(ParameterlessSwitchInfo parameterlessSwitch)
 {
     if (parameterlessSwitch.lightUpKey == null)
     {
         return(true);
     }
     if (parameterlessSwitch.lightUpKeyRead)
     {
         return(parameterlessSwitch.lightUpKeyResult);
     }
     // Need to read the registry
     parameterlessSwitch.lightUpKeyRead   = true;
     parameterlessSwitch.lightUpKeyResult = ReadLightupBool(parameterlessSwitch.lightUpKey);
     return(parameterlessSwitch.lightUpKeyResult);
 }
예제 #3
0
 /// <summary>
 /// Returns true if the switch is enabled. Handles lightup logic.
 /// </summary>
 private static bool IsParameterlessSwitchEnabled(ParameterlessSwitchInfo parameterlessSwitch)
 {
     if (parameterlessSwitch.lightUpKey == null)
     {
         return true;
     }
     if (parameterlessSwitch.lightUpKeyRead)
     {
         return parameterlessSwitch.lightUpKeyResult;
     }
     // Need to read the registry
     parameterlessSwitch.lightUpKeyRead = true;
     parameterlessSwitch.lightUpKeyResult = ReadLightupBool(parameterlessSwitch.lightUpKey);
     return parameterlessSwitch.lightUpKeyResult;
 }