Exemplo n.º 1
0
 public override async void Execute(object parameter)
 {
     if (parameter is AlbumItem)
     {
         var album = parameter as AlbumItem;
         if (await TileHelper.CreateOrReplaceSecondaryTile(VLCItemType.Album, album.Id, album.Name))
         {
             album.IsPinned = !album.IsPinned;
             Locator.MediaLibrary.Update(album);
         }
     }
 }
Exemplo n.º 2
0
 public override async void Execute(object parameter)
 {
     if (parameter is ArtistItem)
     {
         var artist = parameter as ArtistItem;
         if (await TileHelper.CreateOrReplaceSecondaryTile(VLCItemType.Artist, artist.Id, artist.Name))
         {
             artist.IsPinned = !artist.IsPinned;
             await Locator.MediaLibrary.Update(artist);
         }
     }
 }