/// <summary> /// Handles disposal of the window application helper when the domain unloads. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> static void CurrentDomainUnload(object sender, EventArgs e) { if (_helper != null) { _helper.Dispose(); _helper = null; } }
/// <summary> /// Initializes a new instance of the GlobalHotkey class. /// </summary> public GlobalHotkey() { Helper = new WindowApplication(); }