Замена pictureBoxCar
This commit is contained in:
parent
56c05a4d82
commit
caacb5672f
@ -29,7 +29,7 @@ namespace AirBomber
|
||||
private void SetData()
|
||||
{
|
||||
Random rnd = new();
|
||||
_airplane.SetPosition(rnd.Next(10, 100), rnd.Next(10, 100), pictureBoxCar.Width, pictureBoxCar.Height);
|
||||
_airplane.SetPosition(rnd.Next(10, 100), rnd.Next(10, 100), pictureBoxAirplane.Width, pictureBoxAirplane.Height);
|
||||
toolStripStatusLabelSpeed.Text = $"Ńęîđîńňü: {_airplane.Airplane.Speed}";
|
||||
toolStripStatusLabelWeight.Text = $"Âĺń: {_airplane.Airplane.Weight}";
|
||||
toolStripStatusLabelBodyColor.Text = $"Öâĺň: {_airplane.Airplane.BodyColor.Name}";
|
||||
@ -119,7 +119,7 @@ namespace AirBomber
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void ButtonSelectCar_Click(object sender, EventArgs e)
|
||||
private void ButtonSelectAirplane_Click(object sender, EventArgs e)
|
||||
{
|
||||
SelectedAirplane = _airplane;
|
||||
DialogResult = DialogResult.OK;
|
||||
|
Loading…
Reference in New Issue
Block a user