コード例 #1
0
ファイル: Form1.cs プロジェクト: FabioCZ/UsuCs2412
 //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
ファイル: Form1.cs プロジェクト: FabioCZ/UsuCs2412
 //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;
 }