private void UpdateListener(PlayList playList)
 {
     if (m_SelectedPlayList != null)
         m_SelectedPlayList.RemoveListener(this);
     m_SelectedPlayList = playList;
     m_SelectedPlayList.AddListener(this);
 }
Esempio n. 2
0
 public void PlayListsDownloaded(PlayList[] playLists)
 {
     m_ComboBoxArchive.Items.Clear();
     m_ComboBoxArchive.Items.AddRange(playLists.Select(pl => new PlayListComboItem(pl)).ToArray());
     if (m_ComboBoxArchive.Items.Count > 0)
         m_ComboBoxArchive.SelectedItem = m_ComboBoxArchive.Items[0];
 }
 public void NewPlayListUploaded(PlayList playList)
 {
     Synchronize(() => m_Listener.NewPlayListUploaded(playList));
 }
 public void PlayListsDownloaded(PlayList[] playLists)
 {
     Synchronize(() => m_Listener.PlayListsDownloaded(playLists));
 }
 public void NewPlayListUploaded(PlayList playList)
 {
     Synchronize(() => m_Listener.NewPlayListUploaded(playList));
 }
Esempio n. 6
0
 public PlayListComboItem(PlayList playListContent)
 {
     PlayList = playListContent;
 }
 public void SelectedPlayListChanged(PlayList playList)
 {
     UpdateListener(playList);
     UpdateListView(playList.Content);
 }
Esempio n. 8
0
 public PlayListComboItem(PlayList playListContent)
 {
     PlayList = playListContent;
 }
 public void SelectedPlayListChanged(PlayList playList)
 {
     UpdateListener(playList);
     UpdateListView(playList.Content);
 }
Esempio n. 10
0
 public void NewPlayListUploaded(PlayList playList)
 {
     var playListComboItem = new PlayListComboItem(playList);
     m_ComboBoxArchive.Items.Add(playListComboItem);
     m_ComboBoxArchive.SelectedItem = playListComboItem;
 }