public void DeleteSong(WorkoutSong song) { foreach (var part in Parts) { part.Songs.Remove(song); } }
private void EditWorkoutSong(WorkoutSong song) { using (WorkoutSongForm form = new WorkoutSongForm()) { form.Song = song; if (form.ShowDialog() == DialogResult.OK) { //Updates song var updateSong = form.Song; RefreshAll(); } } }
public void AddSong(WorkoutSong song) { Songs.Add(song); }