diff --git a/Trolleybus/Trolleybus/DrawingTrolleybus.cs b/Trolleybus/Trolleybus/DrawingTrolleybus.cs index e135e93..e6ccfaa 100644 --- a/Trolleybus/Trolleybus/DrawingTrolleybus.cs +++ b/Trolleybus/Trolleybus/DrawingTrolleybus.cs @@ -101,7 +101,7 @@ namespace Trolleybus //влево case Direction.Left: // if (_startPosX > _startX) - if (_startPosX > 12) + if (_startPosX - Trolleybus.Step > 0) { _startPosX -= Trolleybus.Step; } @@ -109,7 +109,7 @@ namespace Trolleybus //вверх case Direction.Up: // if (_startPosY > _startY) - if (_startPosY > 12) + if (_startPosY - Trolleybus.Step > 0) { _startPosY -= Trolleybus.Step; } diff --git a/Trolleybus/Trolleybus/Form1.Designer.cs b/Trolleybus/Trolleybus/Form1.Designer.cs index 5b64bee..981fe3c 100644 --- a/Trolleybus/Trolleybus/Form1.Designer.cs +++ b/Trolleybus/Trolleybus/Form1.Designer.cs @@ -130,9 +130,9 @@ namespace Trolleybus // // 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.Size = new System.Drawing.Size(776, 413); + this.pictureBoxTrolleybus.Size = new System.Drawing.Size(800, 450); this.pictureBoxTrolleybus.TabIndex = 0; this.pictureBoxTrolleybus.TabStop = false; //