/// <summary>Specifies the entire information about this HotKey. /// </summary> /// <returns>A string representation of the information.</returns> public string FullInfo() { string bhot = ""; string chot = ""; bhot = HotKeyShared.CombineShortcut(BaseModifier, BaseKey); chot = HotKeyShared.CombineShortcut(ChordModifier, ChordKey); return(String.Format("{0} ; {1} ; {2} ; {3}Enabled ; ChordHotKey", Name, bhot, chot, Enabled ? "" : "Not ")); }
/// <summary>Checks if a hotkey has already been registered as a Local or Global HotKey. /// </summary> /// <param name="key">The key of the HotKey.</param> /// <param name="modifier">The modifier of the HotKey.</param> /// <param name="ToCheck">The HotKey type to check.</param> /// <returns>True if the HotKey is already registered, false otherwise.</returns> public bool HotKeyExists(Keys key, Modifiers modifier, CheckKey ToCheck) { return(HotKeyExists(HotKeyShared.CombineShortcut(modifier, key), ToCheck)); }
/// <summary>Information about this Hotkey. /// </summary> /// <returns>The properties of the hotkey.</returns> public string FullInfo() { return(string.Format("{0} ; {1} ; {2} ; {3}Enabled ; LocalHotKey", Name, HotKeyShared.CombineShortcut(Modifier, Key), WhenToRaise, Enabled ? "" : "Not ")); }
/// <summary>Specifies the Chord information of this HotKey. /// </summary> /// <returns>A string representation of the information.</returns> public string ChordInfo() { return(HotKeyShared.CombineShortcut(ChordModifier, ChordKey)); }
/// <summary>Specifies the base information of this HotKey. /// </summary> /// <returns>A string representation of the information.</returns> public string BaseInfo() { return(HotKeyShared.CombineShortcut(BaseModifier, BaseKey)); }