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