Exemple #1
0
 public void DeleteSong(WorkoutSong song)
 {
     foreach (var part in Parts)
     {
         part.Songs.Remove(song);
     }
 }
Exemple #2
0
        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);
 }