mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2026-11-11 13:06:24 +00:00
Added events in the update-process
This commit is contained in:
1 parent
a0a0132ca0
commit
6f2e77b797
6 files changed
+62
-12
No files matched your search
@@ -0,0 +1,24 @@
|
||||
// ReSharper disable MemberCanBePrivate.Global
|
||||
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CUE.NET.Devices.Generic.EventArgs
|
||||
{
|
||||
public class LedsUpdatedEventArgs : System.EventArgs
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
public IEnumerable<KeyValuePair<int, CorsairLed>> UpdatedLeds { get; private set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
public LedsUpdatedEventArgs(IEnumerable<KeyValuePair<int, CorsairLed>> updatedLeds)
|
||||
{
|
||||
this.UpdatedLeds = new List<KeyValuePair<int, CorsairLed>>(updatedLeds); // Copy this - we don't want anyone to change the original led list.
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
// ReSharper disable MemberCanBePrivate.Global
|
||||
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CUE.NET.Devices.Generic.EventArgs
|
||||
{
|
||||
public class LedsUpdatingEventArgs : System.EventArgs
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
public ICollection<KeyValuePair<int, CorsairLed>> UpdatingLeds { get; private set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
public LedsUpdatingEventArgs(ICollection<KeyValuePair<int, CorsairLed>> updatingLeds)
|
||||
{
|
||||
this.UpdatingLeds = updatingLeds; // No copy here - before the update changing this is ok.
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
namespace CUE.NET.Devices.Generic.EventArgs
|
||||
{
|
||||
public class UpdatedEventArgs : System.EventArgs
|
||||
{ }
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
namespace CUE.NET.Devices.Generic.EventArgs
|
||||
{
|
||||
public class UpdatingEventArgs : System.EventArgs
|
||||
{ }
|
||||
}
|
||||
Reference in new issue
Block a user