From 5309de6c2f51bba58f2bf1125e9b992c903d4a11 Mon Sep 17 00:00:00 2001 From: Alenka Date: Thu, 12 Oct 2023 19:01:51 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D1=87=D1=82=D0=B8=20=D0=B3=D0=BE?= =?UTF-8?q?=D1=82=D0=BE=D0=B2=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cruiser/Cruiser/DrawningObjectCar.cs | 2 +- Cruiser/Cruiser/Form1.Designer.cs | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Cruiser/Cruiser/DrawningObjectCar.cs b/Cruiser/Cruiser/DrawningObjectCar.cs index cbcf7d9..c099129 100644 --- a/Cruiser/Cruiser/DrawningObjectCar.cs +++ b/Cruiser/Cruiser/DrawningObjectCar.cs @@ -11,7 +11,7 @@ namespace Cruiser.MovementStrategy internal class DrawningObjectCar : IMoveableObject { private readonly DrawningCruiser? _drawningCar = null; - public DrawningObjectCar(DrawningPro drawningCar) + public DrawningObjectCar(DrawningCruiser drawningCar) { _drawningCar = drawningCar; } diff --git a/Cruiser/Cruiser/Form1.Designer.cs b/Cruiser/Cruiser/Form1.Designer.cs index 4ea2d46..d9f4965 100644 --- a/Cruiser/Cruiser/Form1.Designer.cs +++ b/Cruiser/Cruiser/Form1.Designer.cs @@ -52,6 +52,7 @@ this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox1.TabIndex = 0; this.pictureBox1.TabStop = false; + this.pictureBox1.Click += new System.EventHandler(this.buttonMove_Click); // // buttonDown // @@ -63,6 +64,7 @@ this.buttonDown.Size = new System.Drawing.Size(30, 30); this.buttonDown.TabIndex = 1; this.buttonDown.UseVisualStyleBackColor = true; + this.buttonDown.Click += new System.EventHandler(this.buttonMove_Click); // // buttonLeft // @@ -74,6 +76,7 @@ this.buttonLeft.Size = new System.Drawing.Size(30, 30); this.buttonLeft.TabIndex = 2; this.buttonLeft.UseVisualStyleBackColor = true; + this.buttonLeft.Click += new System.EventHandler(this.buttonMove_Click); // // buttonRight // @@ -85,6 +88,7 @@ this.buttonRight.Size = new System.Drawing.Size(30, 30); this.buttonRight.TabIndex = 3; this.buttonRight.UseVisualStyleBackColor = true; + this.buttonRight.Click += new System.EventHandler(this.buttonMove_Click); // // buttonUp // @@ -96,6 +100,7 @@ this.buttonUp.Size = new System.Drawing.Size(30, 30); this.buttonUp.TabIndex = 4; this.buttonUp.UseVisualStyleBackColor = true; + this.buttonUp.Click += new System.EventHandler(this.buttonMove_Click); // // buttonCreate // @@ -106,7 +111,7 @@ this.buttonCreate.TabIndex = 5; this.buttonCreate.Text = "Создать Про"; this.buttonCreate.UseVisualStyleBackColor = true; - + this.buttonCreate.Click += new System.EventHandler(this.buttonCreate_Click); // // button2 //