Exemplo n.º 1
0
 public addClipToPlaylist(ViewModel.PlaylistViewModel playlistController)
 {
     InitializeComponent();
     _playlistController = playlistController;
     foreach (Model.Playlist item in _playlistController.Playlist)
     {
         ComboBox1.Items.Add(item.Name);
     }
     ComboBox1.SelectedIndex = 0;
 }
 public removeClipFromPlaylist(ViewModel.PlaylistViewModel playlistController)
 {
     InitializeComponent();
     _playlistController             = playlistController;
     ComboPlaylist.SelectionChanged += ComboBox1_SelectedIndexChanged;
     foreach (Model.Playlist item in _playlistController.Playlist)
     {
         if (item.ClipList.Any())
         {
             ComboPlaylist.Items.Add(item.Name);
         }
     }
     ComboPlaylist.SelectedIndex = 0;
 }