public GroupEditor(MetadataFile metadata) { MadeChanges = false; Metadata = metadata; InitializeComponent(); List <SongEntry> remainingSongs = Metadata.Songs.ToList(); foreach (GroupEntry g in Metadata.Groups) { PopulateGroup(null, g, remainingSongs); } foreach (SongEntry e in remainingSongs) { SongList.Items.Add(e); } GroupList.ExpandAll(); UpdateControlAvailability(); }