DozorovaA.A_SecondLabWork #2

Merged
eegov merged 8 commits from SecondLabWork into FirstLabWork 2022-09-30 11:05:38 +04:00
Showing only changes of commit 3425a132d3 - Show all commits

View File

@ -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}";