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