private bool validatePicture(string albumName, int albumYear, int pictureID)
        {
            Database db    = new Database();
            Album    album = db.getAlbumByNameAndYear(albumName, albumYear);

            //System.Diagnostics.Debug.WriteLine(
            //    String.Format("AlbumName:{0},  AlbumYear:{1}, AlbumID:{2}, PictureID:{3}",
            //        album.Name.ToString(), album.Year.ToString(), album.ID.ToString(), pictureID.ToString()
            //    ));
            if (album != null)
            {
                return(db.checkIfPictureExists(album.ID, pictureID));
            }
            return(false);
        }
 private bool validatePicture(string albumName, int albumYear, int pictureID)
 {
     Database db = new Database();
     Album album = db.getAlbumByNameAndYear(albumName, albumYear);
     //System.Diagnostics.Debug.WriteLine(
     //    String.Format("AlbumName:{0},  AlbumYear:{1}, AlbumID:{2}, PictureID:{3}",
     //        album.Name.ToString(), album.Year.ToString(), album.ID.ToString(), pictureID.ToString()
     //    ));
     if (album != null)
         return db.checkIfPictureExists(album.ID, pictureID);
     return false;
 }