This commit is contained in:
1 parent
ed4bbd09bd
commit
50f6174af1
14 files changed
+438
-78
No files matched your search
@@ -3,6 +3,10 @@ using System.Drawing;
|
||||
namespace PamhagenSysCtrl.Helpers {
|
||||
public static class Extensions {
|
||||
|
||||
public static void SetBacklight(this Xbe24Keyboard k, PamhagenPlant.ShortcutKey key, (Color Color, bool Flashing) state) {
|
||||
k.SetBacklight(key, state.Color, state.Flashing);
|
||||
}
|
||||
|
||||
public static void SetBacklight(this Xbe24Keyboard k, PamhagenPlant.ShortcutKey key, Color color, bool flashing = false) {
|
||||
if (App.Config.MapKey(key) is int n)
|
||||
k.SetBacklight(n, color, flashing);
|
||||
|
||||
Reference in new issue
Block a user