private void membersListBox_MouseDoubleClick(object sender, MouseEventArgs e) { int mem; string memToFind = membersListBox.SelectedItem.ToString(); if (!edit) { if (memToFind.Length > 0) { string[] array = memToFind.Split(' '); mem = main.FindMemByName(array[1] + " " + array[2]); if (mem > 0) { MessageBox.Show(main.displayMembers(mem, 1)); } } } else { if (memToFind.Length > 0) { string[] array = memToFind.Split(' '); mem = main.FindMemByName(array[1] + " " + array[2]); main.startEditThread(mem); } } }