Исправлено в соответствии с исправлениями лабы 1
This commit is contained in:
parent
37f598f718
commit
98281c3db4
@ -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;
|
||||||
}
|
}
|
||||||
|
4
Trolleybus/Trolleybus/Form1.Designer.cs
generated
4
Trolleybus/Trolleybus/Form1.Designer.cs
generated
@ -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;
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user