diff --git a/Devices/Generic/AbstractCueDevice.cs b/Devices/Generic/AbstractCueDevice.cs index 5cfed12..a24652a 100644 --- a/Devices/Generic/AbstractCueDevice.cs +++ b/Devices/Generic/AbstractCueDevice.cs @@ -165,7 +165,7 @@ namespace CUE.NET.Devices.Generic { if (LedMapping.ContainsKey(ledId)) return null; - CorsairLed led = new CorsairLed(ledId, ledRectangle); + CorsairLed led = new CorsairLed(this, ledId, ledRectangle); LedMapping.Add(ledId, led); return led; } diff --git a/Devices/Generic/CorsairLed.cs b/Devices/Generic/CorsairLed.cs index 32b8762..1181d4b 100644 --- a/Devices/Generic/CorsairLed.cs +++ b/Devices/Generic/CorsairLed.cs @@ -17,10 +17,15 @@ namespace CUE.NET.Devices.Generic { #region Properties & Fields + /// + /// Gets the Device this is associated with. + /// + public ICueDevice Device { get; } + /// /// Gets the key-ID of the Led. /// - public CorsairLedId Id { get; set; } + public CorsairLedId Id { get; } /// /// Gets a rectangle representing the physical location of the led. @@ -63,10 +68,12 @@ namespace CUE.NET.Devices.Generic /// /// Initializes a new instance of the class. /// - /// The ID of the LED - /// The rectangle representing the physical location of the LED. - internal CorsairLed(CorsairLedId id, RectangleF ledRectangle) + /// The the is associated with. + /// The of the . + /// The rectangle representing the physical location of the . + internal CorsairLed(ICueDevice device, CorsairLedId id, RectangleF ledRectangle) { + this.Device = device; this.Id = id; this.LedRectangle = ledRectangle; }