1
0
mirror of https://github.com/DarthAffe/CUE.NET.git synced 2025-12-13 09:08:34 +00:00

Fixed naming

This commit is contained in:
Darth Affe 2016-09-10 18:50:37 +02:00
parent 2b314091eb
commit aeca5aa060

View File

@ -16,15 +16,15 @@ namespace CUE.NET.Groups.Extensions
/// </summary> /// </summary>
/// <param name="ledGroup">The <see cref="AbstractLedGroup" /> to convert.</param> /// <param name="ledGroup">The <see cref="AbstractLedGroup" /> to convert.</param>
/// <returns>The converted <see cref="ListLedGroup" />.</returns> /// <returns>The converted <see cref="ListLedGroup" />.</returns>
public static ListLedGroup ToSimpleLedGroup(this AbstractLedGroup ledGroup) public static ListLedGroup ToListLedGroup(this AbstractLedGroup ledGroup)
{ {
ListLedGroup simpleLedGroup = ledGroup as ListLedGroup; ListLedGroup listLedGroup = ledGroup as ListLedGroup;
if (simpleLedGroup == null) if (listLedGroup == null)
{ {
bool wasAttached = ledGroup.Detach(); bool wasAttached = ledGroup.Detach();
simpleLedGroup = new ListLedGroup(ledGroup.Device, wasAttached, ledGroup.GetLeds()) { Brush = ledGroup.Brush }; listLedGroup = new ListLedGroup(ledGroup.Device, wasAttached, ledGroup.GetLeds()) { Brush = ledGroup.Brush };
} }
return simpleLedGroup; return listLedGroup;
} }
/// <summary> /// <summary>
@ -35,10 +35,10 @@ namespace CUE.NET.Groups.Extensions
/// <returns>The new <see cref="ListLedGroup" />.</returns> /// <returns>The new <see cref="ListLedGroup" />.</returns>
public static ListLedGroup Exclude(this AbstractLedGroup ledGroup, params CorsairLedId[] ledIds) public static ListLedGroup Exclude(this AbstractLedGroup ledGroup, params CorsairLedId[] ledIds)
{ {
ListLedGroup simpleLedGroup = ledGroup.ToSimpleLedGroup(); ListLedGroup listLedGroup = ledGroup.ToListLedGroup();
foreach (CorsairLedId ledId in ledIds) foreach (CorsairLedId ledId in ledIds)
simpleLedGroup.RemoveLed(ledId); listLedGroup.RemoveLed(ledId);
return simpleLedGroup; return listLedGroup;
} }
/// <summary> /// <summary>
@ -49,10 +49,10 @@ namespace CUE.NET.Groups.Extensions
/// <returns>The new <see cref="ListLedGroup" />.</returns> /// <returns>The new <see cref="ListLedGroup" />.</returns>
public static ListLedGroup Exclude(this AbstractLedGroup ledGroup, params CorsairLed[] ledIds) public static ListLedGroup Exclude(this AbstractLedGroup ledGroup, params CorsairLed[] ledIds)
{ {
ListLedGroup simpleLedGroup = ledGroup.ToSimpleLedGroup(); ListLedGroup listLedGroup = ledGroup.ToListLedGroup();
foreach (CorsairLed led in ledIds) foreach (CorsairLed led in ledIds)
simpleLedGroup.RemoveLed(led); listLedGroup.RemoveLed(led);
return simpleLedGroup; return listLedGroup;
} }
// ReSharper disable once UnusedMethodReturnValue.Global // ReSharper disable once UnusedMethodReturnValue.Global