Private Sub CarInventoryLoad(ByVal sender As Object,
ByVal e As System.EventArgs)
Handles Me.Load
' Create the list of cars
Cars(0) = New Car()
Cars(0).Make = "BMW"
Cars(0).Model = "335i"
Cars(0).Year = 2007
Cars(0).Price = 42580
Cars(0).Picture = "335iA.gif"
Cars(1) = New Car()
Cars(1).Make = "Honda"
Cars(1).Model = "Accord"
Cars(1).Year = 2007
Cars(1).Price = 24550
Cars(1).Picture = "Accord1.gif"
Cars(2) = New Car()
Cars(2).Make = "Chevrolet"
Cars(2).Model = "Avalanche"
Cars(2).Year = 2007
Cars(2).Price = 36880
Cars(2).Picture = "Avalanche1.gif"
Cars(3) = New Car()
Cars(3).Make = "Volvo"
Cars(3).Model = "C70"
Cars(3).Year = 1997
Cars(3).Price = 42320
Cars(3).Picture = "C70.gif"
Cars(4) = New Car()
Cars(4).Make = "Land Rover"
Cars(4).Model = "LR3"
Cars(4).Year = 2007
Cars(4).Price = 46245
Cars(4).Picture = "LR3a.gif"
Cars(5) = New Car()
Cars(5).Make = "Honda"
Cars(5).Model = "Civic"
Cars(5).Year = 2000
Cars(5).Price = 22665
Cars(5).Picture = "Civic1.gif"
Cars(6) = New Car()
Cars(6).Make = "Mazda"
Cars(6).Model = "Mazda5"
Cars(6).Year = 2007
Cars(6).Price = 20845
Cars(6).Picture = "Mazda5a.gif"
Cars(7) = New Car()
Cars(7).Make = "Ford"
Cars(7).Model = "Escape"
Cars(7).Year = 1997
Cars(7).Price = 22445
Cars(7).Picture = "Escape.gif"
Cars(8) = New Car()
Cars(8).Make = "Acura"
Cars(8).Model = "TSX"
Cars(8).Year = 2006
Cars(8).Price = 26445
Cars(8).Picture = "TSX.gif"
Cars(9) = New Car()
Cars(9).Make = "Mazda"
Cars(9).Model = "Miata"
Cars(9).Year = 2008
Cars(9).Price = 24180
Cars(9).Picture = "Miata.gif"
Cars(10) = New Car()
Cars(10).Make = "Ford"
Cars(10).Model = "F-150"
Cars(10).Year = 2006
Cars(10).Price = 20475
Cars(10).Picture = "F150a.gif"
Cars(11) = New Car()
Cars(11).Make = "Volvo"
Cars(11).Model = "S40"
Cars(11).Year = 2008
Cars(11).Price = 25285
Cars(11).Picture = "S40a.gif"
Cars(12) = New Car()
Cars(12).Make = "BMW"
Cars(12).Model = "750i"
Cars(12).Year = 2007
Cars(12).Price = 88925
Cars(12).Picture = "750Li.gif"
Cars(13) = New Car()
Cars(13).Make = "Buick"
Cars(13).Model = "LaCrosse"
Cars(13).Year = 2002
Cars(13).Price = 28685
Cars(13).Picture = "LaCrosse1.gif"
Cars(14) = New Car()
Cars(14).Make = "Ford"
Cars(14).Model = "E-150 XL"
Cars(14).Year = 2002
Cars(14).Price = 26660
Cars(14).Picture = "E150XLa.gif"
' Create the list of pictures for each car
Pictures0 = New String() {
"335iA.gif", "335iB.gif", "335iC.gif",
"335iD.gif", "335iE.gif", "335iF.gif",
"335iG.gif", "335iH.gif", "335iI.gif"}
Pictures1 = New String() {
"Accord1.gif", "Accord2.gif", "Accord3.gif",
"Accord4.gif", "Accord5.gif", "Accord6.gif"}
Pictures2 = New String() {
"Avalanche1.gif", "Avalanche2.gif",
"Avalanche3.gif", "Avalanche4.gif"}
Pictures4 = New String() {
"LR3a.gif", "LR3b.gif",
"LR3b.gif", "LR3d.gif"}
Pictures5 = New String() {
"Civic1.gif", "Civic2.gif",
"Civic3.gif", "Civic4.gif"}
Pictures6 = New String() {
"Mazda5a.gif", "Mazda5b.gif",
"Mazda5c.gif", "Mazda5d.gif"}
Pictures10 = New String() {
"F150a.gif", "F150b.gif",
"F150c.gif", "F150d.gif"}
Pictures11 = New String() {
"S40a.gif", "S40b.gif",
"S40c.gif", "S40d.gif", "S40e.gif"}
Pictures13 = New String() {
"LaCrosse1.gif", "LaCrosse2.gif", "LaCrosse3.gif",
"LaCrosse4.gif", "LaCrosse5.gif", "LaCrosse6.gif",
"LaCrosse7.gif", "LaCrosse8.gif"}
Pictures14 = New String() {
"E150XLa.gif", "E150XLb.gif"}
' Call the Scroll event of the bottom track bar
' as if it had been scrolled
tbrReviewScroll(sender, e)
End Sub
|