/// <summary> /// Initializes the hot key state with an owner, id, key, modifier, repeat options, state and callback. /// </summary> /// <param name="owner">The owner of the state.</param> /// <param name="id">The hot key id.</param> /// <param name="key">The hot key.</param> /// <param name="allow_repeat">true to allow repeating; otherwise false.</param> /// <param name="state">The state of the hot key.</param> /// <param name="callback">A callback to notify when the hot key is pressed.</param> public InternalHotKeyState(HotKeyComponent owner, int id, HotKey hotkey, bool allow_repeat, object state, EventHandler <HotKeyActivatedEventArgs> callback) : base(owner, hotkey, allow_repeat, state) { ID = id; Callback = callback; TimeStamp = DateTime.MinValue; }
/// <summary> /// Initializes the hot key state with an owner, id, key, modifier, repeat options, state and callback. /// </summary> /// <param name="owner">The owner of the state.</param> /// <param name="id">The hot key id.</param> /// <param name="key">The hot key.</param> /// <param name="modifier">The hot key modifier.</param> /// <param name="allow_repeat">true to allow repeating; otherwise false.</param> /// <param name="state">The state of the hot key.</param> /// <param name="callback">A callback to notify when the hot key is pressed.</param> public InternalHotKeyState(HotKeyComponent owner, int id, Keys key, Keys modifier, bool allow_repeat, object state, EventHandler <HotKeyActivatedEventArgs> callback) : this(owner, id, new HotKey(key, modifier), allow_repeat, state, callback) { }