Exemplo n.º 1
0
 private void ChoosePlaylist(MenuItemViewModel menuItem, InsertMode insertMode)
 {
     MenuPlaylistViewModel menuPlaylistViewModel = menuItem as MenuPlaylistViewModel;
     if (menuPlaylistViewModel != null && menuPlaylistViewModel.Playlist != null)
     {
         AddToPlaylist(menuPlaylistViewModel.Playlist, insertMode);
     }
 }
Exemplo n.º 2
0
 private void SelectToPlaylist(MenuItemViewModel menuItem)
 {
     MenuNewPlaylistViewModel menuNewPlaylistViewModel = menuItem as MenuNewPlaylistViewModel;
     if (menuNewPlaylistViewModel != null)
     {
         this.OpenNewPlaylistDialog();
     }
     MenuPlaylistViewModel menuPlaylistViewModel = menuItem as MenuPlaylistViewModel;
     if (menuPlaylistViewModel != null && menuPlaylistViewModel.Playlist != null)
     {
         this.AddTracksToPlaylist(menuPlaylistViewModel.Playlist);
     }
 }
Exemplo n.º 3
0
 private void SelectedToPlaylist(MenuItemViewModel menuItem)
 {
     //Necessary because NewSelectedToPlaylistViewModel is an own viewmodel.
     MenuNewPlaylistViewModel menuNewPlaylistViewModel = menuItem as MenuNewPlaylistViewModel;
     if (menuNewPlaylistViewModel != null)
     {
         this.NewSelectedToPlaylistViewModel = this.CreateNewPlaylistModel(InsertMode.Selected);
     }
     this.ChoosePlaylist(menuItem, InsertMode.Selected);
 }