void HandleTextBoxSearchhandleKeyUp(object sender, KeyEventArgs e) { if (_lastText != textBoxSearch.Text) { _searchTerms.Enqueue(textBoxSearch.Text); _lastText = textBoxSearch.Text; _lastKeypress = DateTime.Now; } }