protected virtual void OnItemSelected(EventArgs e) { if (!m_listBox.IsDisposed) { m_listBox.HideForm(); } PossibilitySelected?.Invoke(this, e); }
protected virtual void OnItemSelected(EventArgs e) { m_listBox.HideForm(); if (PossibilitySelected != null) { PossibilitySelected(this, e); } }
/// <summary> /// Get rid of the combo, typically when the user clicks outside it. /// </summary> public void Hide() { CheckDisposed(); FwComboBox combo = m_combo as FwComboBox; if (combo != null && m_owner.Controls.Contains(combo)) { m_owner.Controls.Remove(combo); } ComboListBox clb = m_combo as ComboListBox; if (clb != null) { clb.HideForm(); } }
internal virtual void HandleFwMenuSelection(object sender, EventArgs ea) { CheckDisposed(); if (m_fConstructingMenu) { return; } int iSel = m_clb.SelectedIndex; m_clb.HideForm(); FwMenuItem fmi = FindEnabledItem(iSel); if (fmi == null) { return; } m_mediator.SendMessage(fmi.Message, new XCore.Command(m_mediator, fmi.ConfigurationNode)); }