DozorovaA.A_SecondLabWork #2
@ -6,7 +6,6 @@ namespace ArmoredVehicle
|
||||
public MainForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
//this.MinimumSize = new System.Drawing.Size(300, 250);
|
||||
}
|
||||
/// <summary>
|
||||
/// Ìåòîä ïðîðèñîâêè ìàøèíû
|
||||
@ -43,7 +42,7 @@ namespace ArmoredVehicle
|
||||
private void SetData()
|
||||
{
|
||||
Random rnd = new();
|
||||
_ArmoredVehicle.SetPosition(/*rnd.Next(0, 100)*/ -10, rnd.Next(0, 100), DrawingPictureBox.Width, DrawingPictureBox.Height);
|
||||
_ArmoredVehicle.SetPosition( -10, rnd.Next(0, 100), DrawingPictureBox.Width, DrawingPictureBox.Height);
|
||||
toolStripStatusLabelSpeed.Text = $"Ñêîðîñòü: {_ArmoredVehicle.ArmoredVehicle.Speed}";
|
||||
toolStripStatusLabelWeight.Text = $"Âåñ: {_ArmoredVehicle.ArmoredVehicle.Weight}";
|
||||
toolStripStatusLabelColor.Text = $"Öâåò: {_ArmoredVehicle.ArmoredVehicle.BodyColor.Name}";
|
||||
|
Loading…
Reference in New Issue
Block a user