private void UpdateListener(PlayList playList) { if (m_SelectedPlayList != null) m_SelectedPlayList.RemoveListener(this); m_SelectedPlayList = playList; m_SelectedPlayList.AddListener(this); }
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 PlayListComboItem(PlayList playListContent) { PlayList = playListContent; }
public void SelectedPlayListChanged(PlayList playList) { UpdateListener(playList); UpdateListView(playList.Content); }
public void NewPlayListUploaded(PlayList playList) { var playListComboItem = new PlayListComboItem(playList); m_ComboBoxArchive.Items.Add(playListComboItem); m_ComboBoxArchive.SelectedItem = playListComboItem; }