示例#1
0
 //images might take a sec to load because internet
 private void populateaValues(SuperCar superCar)
 {
     labelModel.Text = superCar.model;
     labelEngine.Text = superCar.engine;
     labelHp.Text = superCar.hp.ToString();
     labelAcceleration.Text = superCar.acceleration.ToString();
     labelTopSpeed.Text = superCar.topSpeed.ToString();
     labelProduction.Text = superCar.production;
     pictureBox1.ImageLocation = superCar.imageUrl;
 }
示例#2
0
 //images might take a sec to load because internet
 private void populateaValues(SuperCar superCar)
 {
     labelModel.Text           = superCar.model;
     labelEngine.Text          = superCar.engine;
     labelHp.Text              = superCar.hp.ToString();
     labelAcceleration.Text    = superCar.acceleration.ToString();
     labelTopSpeed.Text        = superCar.topSpeed.ToString();
     labelProduction.Text      = superCar.production;
     pictureBox1.ImageLocation = superCar.imageUrl;
 }