/// <summary> /// Handle the Add button /// </summary> protected void OnAddButtonClicked(object sender, EventArgs e) { AddUserInput addUser = new AddUserInput(); if (addUser.ShowDialog() == DialogResult.OK) { if (!AddList.Contains(addUser.UserName)) { AddList.Add(addUser.UserName); } LoadList(); ReloadData(); UpdateRemoveButton(); ListViewItem addedIndex = ListControl.FindItemWithText(addUser.UserName); if (addedIndex != null) { addedIndex.Selected = true; } } }