private void OnKeyboardTextChange(string text) { TypedName = text; if (!string.IsNullOrEmpty(text)) { NamesList.UpdateListView(text); } if (NamesList.ContaisName(TypedName)) { ClassWindow.DisableList = true; ClassWindow.SetListItem(ClassList.GetSelectedClassIndex()); } else { ClassWindow.DisableList = false; ClassWindow.ClearLabel(); } }