/// <summary> /// Prevents a default instance of the <see cref="ChromaLink" /> class from being created. /// </summary> private ChromaLink() { Log.Debug("Chroma Link is initializing"); Chroma.InitInstance(); _custom = Custom.Create(); }
/// <summary> /// Prevents a default instance of the <see cref="Mouse" /> class from being created. /// </summary> private Mouse() { Log.Info("Mouse is initializing"); Chroma.InitInstance(); _custom = Custom.Create(); _customGrid = CustomGrid.Create(); }
/// <summary> /// Prevents a default instance of the <see cref="Keypad" /> class from being created. /// </summary> private Keypad() { Log.Debug("Keypad is initializing"); Chroma.InitInstance(); _custom = Custom.Create(); }
public static IGenericDevice Get(Guid deviceId) { Chroma.Initialize(); if (!Instances.ContainsKey(deviceId)) { Instances[deviceId] = new GenericDevice(deviceId); } return(Instances[deviceId]); }
/// <summary> /// Prevents a default instance of the <see cref="Keyboard" /> class from being created. /// </summary> private Keyboard() { Log.Info("Keyboard initializing..."); Chroma.InitInstance(); CurrentEffectId = Guid.Empty; // We keep a local copy of a grid to speed up grid operations Log.Debug("Initializing private copy of Custom"); _grid = Custom.Create(); }
/// <summary> /// Prevents a default instance of the <see cref="Keyboard" /> class from being created. /// </summary> private Keyboard() { Chroma.InitInstance(); CurrentEffectId = Guid.Empty; // We keep a local copy of a grid to speed up grid operations var gridArray = new Color[Constants.MaxRows][]; for (var i = 0; i < Constants.MaxRows; i++) { gridArray[i] = new Color[Constants.MaxColumns]; } _grid = new Custom(gridArray); }
/// <summary> /// Prevents a default instance of the <see cref="Keyboard" /> class from being created. /// </summary> private Keyboard() { Log.Info("Keyboard initializing..."); Chroma.InitInstance(); CurrentEffectId = Guid.Empty; // We keep a local copy of a grid to speed up grid operations Log.Debug("Creating grid array"); var gridArray = new Color[Constants.MaxRows][]; for (var i = 0; i < Constants.MaxRows; i++) { gridArray[i] = new Color[Constants.MaxColumns]; } Log.Debug("Initializing private copy of Custom"); _grid = new Custom(gridArray); }
/// <summary> /// Prevents a default instance of the <see cref="Headset" /> class from being created. /// </summary> private Headset() { Log.Info("Headset is initializing"); Chroma.InitInstance(); }
/// <summary> /// Prevents a default instance of the <see cref="Mousepad" /> class from being created. /// </summary> private Mousepad() { Chroma.InitInstance(); _custom = Custom.Create(); }
/// <summary> /// Prevents a default instance of the <see cref="Mouse" /> class from being created. /// </summary> private Mouse() { Chroma.InitInstance(); _custom = Custom.Create(); _customGrid = CustomGrid.Create(); }
/// <summary> /// Prevents a default instance of the <see cref="Mousepad" /> class from being created. /// </summary> private Mousepad() { Log.Debug("Mousepad is initializing."); Chroma.InitInstance(); _custom = Custom.Create(); }
/// <summary> /// Prevents a default instance of the <see cref="Headset" /> class from being created. /// </summary> private Headset() { Chroma.InitInstance(); }
/// <summary> /// Prevents a default instance of the <see cref="Mouse" /> class from being created. /// </summary> private Mouse() { Log.Info("Mouse is initializing"); Chroma.Initialize(); _custom = Custom.Create(); }