public Product(Book b) { book = b; }
void InitDemoInformation(Book prod) { InitializeComponent(); string absolute_path = System.IO.Path.Combine(Directory.GetCurrentDirectory(), "covers\\" + prod.Cover); Uri videoUri = new Uri(absolute_path); BitmapImage cover = new BitmapImage(videoUri); image.Source = cover; album_title.Content = prod.Cover; phouse.Content = prod.PublishingHouse; artist.Content = prod.Writers; description.Text = prod.Description; description.Text += "\n" + "\n" + prod.Summary; description.Text += "\n" + "\n" + prod.OtherInfo; year.Content = prod.Year; genre.Content = prod.Genre; if (prod.Trailer == "") restartText.Opacity = 0.25; if (prod.Position == 0) relatedText.Text = "Return To \n Related"; }