public FormLevels() { InitializeComponent(); // Loads the information of all level sets levelSets = LevelSet.GetAllLevelSetInfos(); // Adds the title of each level set to the listbox foreach (LevelSet levelSet in levelSets) { lstLevelSets.Items.Add(levelSet.Title); } lstLevelSets.SelectedIndex = 0; }