Example #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;
            }
        }
Example #2
0
 private void AutoCompleteTimer_Tick(object sender, EventArgs e)
 {
     if (!_customUnderlines.IsImeStartingComposition)
     {
         UpdateOrShowAutoComplete(false);
         AutoCompleteTimer.Stop();
     }
 }
Example #3
0
 public void CancelAutoComplete()
 {
     _autoCompleteCancellationTokenSource.Cancel();
     AutoCompleteToolTipTimer.Stop();
     AutoCompleteTimer.Stop();
 }
Example #4
0
 private void AutoCompleteTimer_Tick(object sender, EventArgs e)
 {
     UpdateOrShowAutoComplete(false);
     AutoCompleteTimer.Stop();
 }