/// <summary> /// Cancel the call tip. /// </summary> /// <param name="tip"></param> /// <param name="handlers"></param> private void TipCancel(CallTip tip, CancleTipEventHandler handlers) { if (tip == null || !tip.Visible) { return; } var e = new CancleTipEventHandlerArgs(); handlers?.Invoke(this, e); if (e.Cancle) { return; } tip.Hide(); OnMouseLeave(null); }
/// <summary> /// Cancel the call tip. /// </summary> /// <param name="tip"></param> /// <param name="handlers"></param> private void TipCancel(CallTip tip, CancleTipEventHandler handlers) { if (tip == null || !tip.Visible) return; var e = new CancleTipEventHandlerArgs(); handlers?.Invoke(this, e); if (e.Cancle) return; tip.Hide(); }