Illumilib/IllumilibLighting.cs
/// <summary>
/// Initializes Illumilib, starting all of the supported lighting systems.
/// Any lighting systems that are not supported, or for which devices are not present, will be ignored.
/// </summary>
/// <returns>Whether at least one lighting system was successfully initialized</returns>
/// <exception cref="InvalidOperationException">Thrown if Illumilib has already been <see cref="Initialized"/></exception>
Initializes Illumilib, starting all of the supported lighting systems.
Any lighting systems that are not supported, or for which devices are not present, will be ignored.
Initializes Illumilib starting all of the supported lighting systems . Any lighting systems that are not supported or for which devices are not present will be ignored .
public static bool Initialize() {
            if (Initialized)
                throw new InvalidOperationException("Illumilib has already been initialized");
            systems = new List<LightingSystem>();
            foreach (var system in new LightingSystem[] {new LogitechLighting(), new RazerLighting(), new CorsairLighting()}) {
                if (system.Initialize())
                    systems.Add(system);
            }
            return systems.Count > 0;
        }
public static bool Initialize ( ) { if ( Initialized ) throw new InvalidOperationException ( " " ) ; systems = new List < LightingSystem > ( ) ; foreach ( var system in new LightingSystem [ ] { new LogitechLighting ( ) , new RazerLighting ( ) , new CorsairLighting ( ) } ) { if ( system . Initialize ( ) ) systems . Add ( system ) ; } return systems . Count > 0 ; }
Initializes Illumilib, starting all of the supported lighting systems.
Initializes Illumilib starting all of the supported lighting systems .
Whether at least one lighting system was successfully initialized
Whether at least one lighting system was successfully initialized
Thrown if Illumilib has already been
Thrown if Illumilib has already been