Exemplo n.º 1
0
        private void TextBoxTextChanged(object sender, EventArgs e)
        {
            if (_customUnderlines.IsImeStartingComposition)
            {
                return;
            }

            if (!_disableAutoCompleteTriggerOnTextUpdate)
            {
                // Reset when timer is already running
                if (AutoCompleteTimer.Enabled)
                {
                    AutoCompleteTimer.Stop();
                }

                AutoCompleteTimer.Start();
            }

            _customUnderlines.Lines.Clear();
            _customUnderlines.IllFormedLines.Clear();

            if (!IsWatermarkShowing)
            {
                OnTextChanged(e);

                if (Settings.Dictionary == "None" || TextBox.Text.Length < 4)
                {
                    return;
                }

                SpellCheckTimer.Enabled  = false;
                SpellCheckTimer.Interval = 250;
                SpellCheckTimer.Enabled  = true;
            }
        }
Exemplo n.º 2
0
 private void AutoCompleteTimer_Tick(object sender, EventArgs e)
 {
     if (!_customUnderlines.IsImeStartingComposition)
     {
         UpdateOrShowAutoComplete(false);
         AutoCompleteTimer.Stop();
     }
 }
Exemplo n.º 3
0
 public void CancelAutoComplete()
 {
     _autoCompleteCancellationTokenSource.Cancel();
     AutoCompleteToolTipTimer.Stop();
     AutoCompleteTimer.Stop();
 }
Exemplo n.º 4
0
 private void AutoCompleteTimer_Tick(object sender, EventArgs e)
 {
     UpdateOrShowAutoComplete(false);
     AutoCompleteTimer.Stop();
 }