+ For Each dr In dt.Rows
+ If String.Compare(dr("GameID"), id) = 0 Then
+ txtname.AppendText(dr.Item("Name"))
+ btnBuy.Content = "Buy for £" & dr.Item("Price")
+ lblPublisher.Content = "Publisher: " & dr.Item("Publisher")
+ lblRating.Content = "This game is rated " & dr.Item("Rating") & " out of 5"
+ lblReviews.Content = "Gamer review: "
+ Dim bytes As [Byte]() = dr.Item("Icon")
+ Dim ms As New MemoryStream(bytes)
+ Dim bi As New BitmapImage()
+ bi.BeginInit()
+ bi.StreamSource = ms
+ bi.EndInit()
+ imgLogo.Source = bi
+ End If