/// <summary> /// Initializes a new instance of the <see cref="NuGenHotKeySelector"/> class. /// </summary> /// <param name="serviceProvider"> /// <para>Requires:</para> /// <para><see cref="INuGenButtonStateTracker"/></para> /// <para><see cref="INuGenControlStateTracker"/></para> /// <para><see cref="INuGenButtonLayoutManager"/></para> /// <para><see cref="INuGenButtonRenderer"/></para> /// <para><see cref="INuGenCheckBoxLayoutManager"/></para> /// <para><see cref="INuGenCheckBoxRenderer"/></para> /// <para><see cref="INuGenComboBoxRenderer"/></para> /// <para><see cref="INuGenDropDownRenderer"/></para> /// <para><see cref="INuGenLabelLayoutManager"/></para> /// <para><see cref="INuGenLabelRenderer"/></para> /// <para><see cref="INuGenPanelRenderer"/></para> /// <para><see cref="INuGenControlImageManager"/></para> /// </param> /// <exception cref="ArgumentNullException"><paramref name="serviceProvider"/> is <see langword="null"/>.</exception> public NuGenHotKeySelector(INuGenServiceProvider serviceProvider) : base(serviceProvider) { _hotKeyPopup = new NuGenHotKeyPopup(serviceProvider); _hotKeyPopup.SelectionAccepted += _hotKeyPopup_SelectionAccepted; _hotKeyPopup.SelectionCanceled += _hotKeyPopup_SelectionCanceled; base.PopupBorderStyle = FormBorderStyle.None; base.PopupControl = _hotKeyPopup; base.PopupSize = _hotKeyPopup.Size; this.SelectedHotKeys = Keys.None; }