private void textBox_PuzzleId_TextChanged(object sender, EventArgs e) { Debug.WriteLine("Something was typed! [" + this.idTextBox.Text + "]"); uxResetIdleTimer(); // Check that what was typed is a valid puzzle ID... String id = this.idTextBox.Text; if (id.Length >= MIN_PUZZLE_ID_LENGTH) { String name = oracle.tryGetName(id); if (name == null) { // No patch (yet) uxSetPuzzleNotFound(); } else { // Matches a puzzle... uxSetPuzzleFound(name); } } else { uxSetIncompletePuzzleId(); } }