private void StartingMapName_SelectedIndexChanged(object sender, EventArgs e) { for (int i = 0; i < MapHandler.Count(); i++) { if (MapHandler[i].getMapName() == StartingMapName.Text) { startingMapID = i; break; } } }