private void PerformTextChanged() { if (TextBox.Text == "") { ShowForm(false); } else { var results = new AutoCompleteEventArgs(); bool suppressTextChanged = _suppressTextChanged; _suppressTextChanged = true; OnGetResults(results); _suppressTextChanged = suppressTextChanged; if (results.Items == null || results.Items.Length == 0) { ShowForm(false); } else { ShowForm(true); _form.SetResults(results.Items); } } }
protected virtual void OnGetResults(AutoCompleteEventArgs e) { if (GetResults != null) { GetResults(this, e); } }