Beispiel #1
0
 public void UpdateSongByNetID(SongData song)
 {
     int index = FindNetIdIndex(song.NetID);
     if (index >= 0)
     {
         Songs[index] = song.Clone();
     }
 }
Beispiel #2
0
 public void AddSongWithNewNetID(SongData song)
 {
     m_lastNetId += 1;
     song.NetID = m_lastNetId.ToString();
     Songs.Add(song.Clone());
 }