Example #1
0
        /// <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);
        }
Example #2
0
 /// <summary>
 /// Cancel the performance call tip
 /// if the normal call tip is canceled.
 /// </summary>
 /// <param name="s"></param>
 /// <param name="e"></param>
 private void editor_CancleCallTip(object s, CancleTipEventHandlerArgs e)
     => (s as CodeEditor).PerfTipCancel();
Example #3
0
        /// <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();
        }