private void OnMouseEnter(IToolstripButton button) { foreach (IToolstripButton stripButton in _buttonLookup.Values) { if (stripButton == button) { continue; } IToolstripDropdownButton dropButton = stripButton as IToolstripDropdownButton; if (dropButton == null) { continue; } if (dropButton.IsVisible) { dropButton.Hide(); } } }
private void OnMouseLeave(IToolstripButton button) { }
private void OnMouseEnter(IToolstripButton button) { foreach (IToolstripButton stripButton in _buttonLookup.Values) { if (stripButton == button) continue; IToolstripDropdownButton dropButton = stripButton as IToolstripDropdownButton; if (dropButton == null) continue; if (dropButton.IsVisible) dropButton.Hide(); } }