Suppress CLS non-compliance

I know its not compliant...that's by
design.
This commit is contained in:
Terry MacDonald 2021-05-01 20:59:26 +12:00
parent 325a1b6012
commit b79aecc7fb
2 changed files with 4 additions and 0 deletions

View File

@ -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();

View File

@ -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))
{