예제 #1
0
 public void DeleteTitle(Library.MovieItem item)
 {
     foreach (Disk d in item.TitleObject.Disks)
     {
         string status = deleteDisk(d);
         if (!string.IsNullOrEmpty(status))
         {
             this.MediaCenterEnvironment.Dialog(
                 string.Format("Unable to delete this movie: {0}", status),
                 "Failed", DialogButtons.Ok, 5, false);
             return;
         }
         else
         {
             TitleCollectionManager.DeleteTitle(item.TitleObject);
         }
     }
 }
예제 #2
0
 public bool ItemIsAllowed(Library.MovieItem item)
 {
     if (this.Enabled)
     {
         string itemRating = item.TitleObject.ParentalRating.ToUpperInvariant();
         if (string.IsNullOrEmpty(itemRating))
         {
             if (MCMovieRatings[itemRating] <= this.MaxAllowed)
             {
                 return(true);
             }
         }
         else
         {
             if (this.BlockUnrated)
             {
                 return(false);
             }
         }
     }
     return(true);
 }