Исправлено в соответствии с исправлениями лабы 1

This commit is contained in:
Oleg 2022-10-05 10:11:23 +04:00
parent 37f598f718
commit 98281c3db4
2 changed files with 4 additions and 4 deletions

View File

@ -101,7 +101,7 @@ namespace Trolleybus
//влево //влево
case Direction.Left: case Direction.Left:
// if (_startPosX > _startX) // if (_startPosX > _startX)
if (_startPosX > 12) if (_startPosX - Trolleybus.Step > 0)
{ {
_startPosX -= Trolleybus.Step; _startPosX -= Trolleybus.Step;
} }
@ -109,7 +109,7 @@ namespace Trolleybus
//вверх //вверх
case Direction.Up: case Direction.Up:
// if (_startPosY > _startY) // if (_startPosY > _startY)
if (_startPosY > 12) if (_startPosY - Trolleybus.Step > 0)
{ {
_startPosY -= Trolleybus.Step; _startPosY -= Trolleybus.Step;
} }

View File

@ -130,9 +130,9 @@ namespace Trolleybus
// //
// pictureBoxTrolleybus // pictureBoxTrolleybus
// //
this.pictureBoxTrolleybus.Location = new System.Drawing.Point(12, 12); this.pictureBoxTrolleybus.Location = new System.Drawing.Point(0, 0);
this.pictureBoxTrolleybus.Name = "pictureBoxTrolleybus"; this.pictureBoxTrolleybus.Name = "pictureBoxTrolleybus";
this.pictureBoxTrolleybus.Size = new System.Drawing.Size(776, 413); this.pictureBoxTrolleybus.Size = new System.Drawing.Size(800, 450);
this.pictureBoxTrolleybus.TabIndex = 0; this.pictureBoxTrolleybus.TabIndex = 0;
this.pictureBoxTrolleybus.TabStop = false; this.pictureBoxTrolleybus.TabStop = false;
// //