1
0
mirror of https://github.com/DarthAffe/CUE.NET.git synced 2025-12-12 16:58:29 +00:00

Code cleanup

This commit is contained in:
Darth Affe 2016-09-11 10:55:14 +02:00
parent 381ec55349
commit 1eba5c66be
10 changed files with 17 additions and 15 deletions

View File

@ -3,7 +3,6 @@
// ReSharper disable UnusedMember.Global // ReSharper disable UnusedMember.Global
using System; using System;
using System.Collections.Generic;
using System.Drawing; using System.Drawing;
using CUE.NET.Devices.Generic; using CUE.NET.Devices.Generic;

View File

@ -1,4 +1,7 @@
using System; // ReSharper disable MemberCanBePrivate.Global
// ReSharper disable AutoPropertyCanBeMadeGetOnly.Global
using System;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using CUE.NET.Devices; using CUE.NET.Devices;

View File

@ -9,8 +9,6 @@ using System.Collections.ObjectModel;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using CUE.NET.Brushes; using CUE.NET.Brushes;
using CUE.NET.Devices.Generic.Enums; using CUE.NET.Devices.Generic.Enums;
using CUE.NET.Devices.Generic.EventArgs; using CUE.NET.Devices.Generic.EventArgs;

View File

@ -1,4 +1,8 @@
using System.Drawing; // ReSharper disable MemberCanBePrivate.Global
// ReSharper disable AutoPropertyCanBeMadeGetOnly.Global
// ReSharper disable UnusedMember.Global
using System.Drawing;
namespace CUE.NET.Devices.Generic namespace CUE.NET.Devices.Generic
{ {

View File

@ -11,7 +11,7 @@
Manual, Manual,
/// <summary> /// <summary>
/// The device will perform automatic updates at the rate set in <see cref="ICueDevice.UpdateFrequency" />. /// The device will perform automatic updates at the rate set in <see cref="CueSDK.UpdateFrequency" />.
/// </summary> /// </summary>
Continuous Continuous
} }

View File

@ -1,4 +1,7 @@
namespace CUE.NET.Devices.Generic.EventArgs // ReSharper disable MemberCanBePrivate.Global
// ReSharper disable UnusedAutoPropertyAccessor.Global
namespace CUE.NET.Devices.Generic.EventArgs
{ {
public class UpdatingEventArgs : System.EventArgs public class UpdatingEventArgs : System.EventArgs
{ {

View File

@ -43,11 +43,9 @@ namespace SimpleDevTest
rainbowBrush.AddEffect(new MoveRainbowEffect()); rainbowBrush.AddEffect(new MoveRainbowEffect());
rainbowBrush.AddEffect(new RemoveRedEffect()); rainbowBrush.AddEffect(new RemoveRedEffect());
AddTestBrush(CueSDK.KeyboardSDK, rainbowBrush); foreach (ICueDevice device in CueSDK.InitializedDevices)
AddTestBrush(CueSDK.MouseSDK, rainbowBrush); AddTestBrush(device, rainbowBrush);
AddTestBrush(CueSDK.HeadsetSDK, rainbowBrush);
AddTestBrush(CueSDK.MousematSDK, rainbowBrush);
//// Get connected keyboard or throw exception if there is no light controllable keyboard connected //// Get connected keyboard or throw exception if there is no light controllable keyboard connected
//CorsairKeyboard keyboard = CueSDK.KeyboardSDK; //CorsairKeyboard keyboard = CueSDK.KeyboardSDK;
//if (keyboard == null) //if (keyboard == null)

View File

@ -1,7 +1,6 @@
// ReSharper disable MemberCanBeProtected.Global // ReSharper disable MemberCanBeProtected.Global
using System.Collections.Generic; using System.Collections.Generic;
using System.Drawing;
using System.Linq; using System.Linq;
using CUE.NET.Devices.Generic; using CUE.NET.Devices.Generic;

View File

@ -1,7 +1,6 @@
// ReSharper disable AutoPropertyCanBeMadeGetOnly.Global // ReSharper disable AutoPropertyCanBeMadeGetOnly.Global
// ReSharper disable MemberCanBePrivate.Global // ReSharper disable MemberCanBePrivate.Global
using System.Drawing;
using CUE.NET.Devices.Generic; using CUE.NET.Devices.Generic;
namespace CUE.NET.Gradients namespace CUE.NET.Gradients

View File

@ -1,6 +1,5 @@
// ReSharper disable UnusedMember.Global // ReSharper disable UnusedMember.Global
using System.Drawing;
using System.Linq; using System.Linq;
using CUE.NET.Devices.Generic; using CUE.NET.Devices.Generic;