/// <summary> /// Returns whether or not the hotkey currently set on this form is valid /// to be registered as a global hotkey. /// </summary> private Boolean IsHotkeyAvailable() { if (Hotkey.Equals(GlobalHotkeyService.Hotkey)) { return(true); } return(GlobalHotKeyInterop.IsHotkeyAvailable(Hotkey)); }