public void AddSong(string Name) { BaseSong NewSong = MediaPlayer.Instance.NewSong(); int Index = Name.IndexOf("^"); String SongName, AristName; if (Index > 0) { SongName = Name.Substring(0, Index); AristName = Name.Substring(Index + 1, Name.Length - Index - 1); } else { SongName = Name; AristName = "Unknown artist"; } SongName = SongName.Replace('$', '\''); NewSong.FileName = Name; NewSong.Name = Name; NewSong.SongName = SongName; NewSong.ArtistName = AristName; NewSong.AlwaysLoaded = false; NewSong.LoadSong_IfNotLoaded(NewSong.FileName); SongList.Add(NewSong); }
public string getMergeKey() { return(Singer.Replace(" ", "") + SongName.Replace(" ", "")); }