diff --git a/Helpers/KeyboardHook.cs b/Helpers/KeyboardHook.cs index 37c33e9..5f35ddf 100644 --- a/Helpers/KeyboardHook.cs +++ b/Helpers/KeyboardHook.cs @@ -6,7 +6,9 @@ namespace SystemTrayMenu.Helpers { using System; using System.Windows.Input; +#if TODO //HOTKEY using SystemTrayMenu.UserInterface.HotkeyTextboxControl; +#endif using SystemTrayMenu.Utilities; using static SystemTrayMenu.Utilities.FormsExtensions; diff --git a/UserInterface/HotkeyTextboxControl/EventDelay.cs b/UserInterface/HotkeyTextboxControl/EventDelay.cs deleted file mode 100644 index 448cda0..0000000 --- a/UserInterface/HotkeyTextboxControl/EventDelay.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -// Copyright (c) PlaceholderCompany. All rights reserved. -// - -namespace SystemTrayMenu.UserInterface.HotkeyTextboxControl -{ - using System; - - public class EventDelay - { - private readonly object checkLock = new(); - private readonly long waitTime; - private long lastCheck; - - public EventDelay(long ticks) - { - waitTime = ticks; - } - - public bool Check() - { - lock (checkLock) - { - long now = DateTime.Now.Ticks; - bool isPassed = now - lastCheck > waitTime; - lastCheck = now; - return isPassed; - } - } - } -} \ No newline at end of file diff --git a/Utilities/SingleAppInstance.cs b/Utilities/SingleAppInstance.cs index 9c59cc0..e05390c 100644 --- a/Utilities/SingleAppInstance.cs +++ b/Utilities/SingleAppInstance.cs @@ -7,7 +7,9 @@ namespace SystemTrayMenu.Utilities using System; using System.Diagnostics; using System.Linq; +#if TODO //HOTKEY using SystemTrayMenu.UserInterface.HotkeyTextboxControl; +#endif internal static class SingleAppInstance {