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