Example #1
0
 public void OnStringInput(string why, string what)
 {
     if (why == INPUT_NEW_PLAYLIST)
     {
         Playlist pls = Playlist.Create(what);
         lists.Add(pls);
     }
     if (why == INPUT_NEW_TRACK)
     {
         Track t = TrackFactory.GetFactory().CreateTrack(what);
         currentList.Add(t);
         currentList.Save();
         currentTrack = t;
     }
 }