From b79aecc7fbfabe7c8bc13b585e29f077463335c6 Mon Sep 17 00:00:00 2001 From: Terry MacDonald Date: Sat, 1 May 2021 20:59:26 +1200 Subject: [PATCH] Suppress CLS non-compliance I know its not compliant...that's by design. --- DisplayMagician/UIForms/MainForm.cs | 2 ++ DisplayMagician/UIForms/ShortcutForm.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/DisplayMagician/UIForms/MainForm.cs b/DisplayMagician/UIForms/MainForm.cs index dfe5c27..ca41390 100644 --- a/DisplayMagician/UIForms/MainForm.cs +++ b/DisplayMagician/UIForms/MainForm.cs @@ -556,7 +556,9 @@ namespace DisplayMagician.UIForms openApplicationWindow(); } +#pragma warning disable CS3001 // Argument type is not CLS-compliant public void OnWindowHotkeyPressed(object sender, HotkeyEventArgs e) +#pragma warning restore CS3001 // Argument type is not CLS-compliant { if (e.Name == "HotkeyMainWindow") openApplicationWindow(); diff --git a/DisplayMagician/UIForms/ShortcutForm.cs b/DisplayMagician/UIForms/ShortcutForm.cs index dd44f7d..7d553b4 100644 --- a/DisplayMagician/UIForms/ShortcutForm.cs +++ b/DisplayMagician/UIForms/ShortcutForm.cs @@ -2289,7 +2289,9 @@ namespace DisplayMagician.UIForms } +#pragma warning disable CS3001 // Argument type is not CLS-compliant public void OnWindowHotkeyPressed(object sender, HotkeyEventArgs e) +#pragma warning restore CS3001 // Argument type is not CLS-compliant { if (ShortcutRepository.ContainsShortcut(e.Name)) {