mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 01:58:30 +00:00
Small coding style adjustment
This commit is contained in:
parent
37426ef413
commit
0c5d0fe735
@ -17,7 +17,7 @@ namespace RGB.NET.Devices.Debug
|
|||||||
public override DebugRGBDeviceInfo DeviceInfo { get; }
|
public override DebugRGBDeviceInfo DeviceInfo { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the path used to mock this <see cref="DebugRGBDevice"/>
|
/// Gets the path of the layout used to mock this <see cref="DebugRGBDevice"/>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string LayoutPath { get; }
|
public string LayoutPath { get; }
|
||||||
|
|
||||||
@ -32,12 +32,12 @@ namespace RGB.NET.Devices.Debug
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
internal DebugRGBDevice(string layoutPath, Func<Dictionary<LedId, Color>> syncBackFunc = null, Action<IEnumerable<Led>> updateLedsAction = null)
|
internal DebugRGBDevice(string layoutPath, Func<Dictionary<LedId, Color>> syncBackFunc = null, Action<IEnumerable<Led>> updateLedsAction = null)
|
||||||
{
|
{
|
||||||
|
this.LayoutPath = layoutPath;
|
||||||
this._syncBackFunc = syncBackFunc;
|
this._syncBackFunc = syncBackFunc;
|
||||||
this._updateLedsAction = updateLedsAction;
|
this._updateLedsAction = updateLedsAction;
|
||||||
|
|
||||||
DeviceLayout layout = DeviceLayout.Load(layoutPath);
|
DeviceLayout layout = DeviceLayout.Load(layoutPath);
|
||||||
DeviceInfo = new DebugRGBDeviceInfo(layout.Type, layout.Vendor, layout.Model, layout.Lighting, syncBackFunc != null);
|
DeviceInfo = new DebugRGBDeviceInfo(layout.Type, layout.Vendor, layout.Model, layout.Lighting, syncBackFunc != null);
|
||||||
LayoutPath = layoutPath;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user