예제 #1
0
        private void OnUIRefresh(ScintillaControl sci)
        {
            Form mainForm = PluginBase.MainForm as Form;

            if (mainForm.InvokeRequired)
            {
                mainForm.BeginInvoke((MethodInvoker) delegate { this.OnUIRefresh(sci); });
                return;
            }
            if (sci != null && sci.IsFocus)
            {
                int position = sci.SelectionEnd;
                if (CompletionList.Active && CompletionList.CheckPosition(position))
                {
                    return;
                }
                if (callTip.CallTipActive && callTip.CheckPosition(position))
                {
                    return;
                }
            }
            callTip.Hide();
            CompletionList.Hide();
            simpleTip.Hide();
        }
예제 #2
0
 private void OnUIRefresh(ScintillaControl sci)
 {
     if (sci != null && sci.IsFocus)
     {
         int position = sci.CurrentPos;
         if (CompletionList.Active && CompletionList.CheckPosition(position))
         {
             return;
         }
         if (callTip.CallTipActive && callTip.CheckPosition(position))
         {
             return;
         }
     }
     callTip.Hide();
     CompletionList.Hide();
     simpleTip.Hide();
 }