From ade3f04903b344065ecad589cae5b791ae8a8819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=95=D1=80=D0=B0=D1=81?= =?UTF-8?q?=D1=82=D0=BE=D0=B2?= Date: Tue, 1 Oct 2024 21:49:49 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lab0/lab0/DirectionType.cs | 7 +-- lab0/lab0/FormTeplohod.Designer.cs | 69 +++++++++++++++++++----------- 2 files changed, 45 insertions(+), 31 deletions(-) diff --git a/lab0/lab0/DirectionType.cs b/lab0/lab0/DirectionType.cs index 4a8b2fb..fb30438 100644 --- a/lab0/lab0/DirectionType.cs +++ b/lab0/lab0/DirectionType.cs @@ -4,12 +4,9 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace lab0; +namespace Teplohod; public enum DirectionType { - Up=1, - Down=2, - Left=3, - Right=4, + Up = 1, Down = 2, Left = 3, Right = 4, } diff --git a/lab0/lab0/FormTeplohod.Designer.cs b/lab0/lab0/FormTeplohod.Designer.cs index d6f8f98..b5353d8 100644 --- a/lab0/lab0/FormTeplohod.Designer.cs +++ b/lab0/lab0/FormTeplohod.Designer.cs @@ -3,12 +3,12 @@ partial class FormTeplohod { /// - /// Required designer variable. + /// Required designer variable. /// private System.ComponentModel.IContainer components = null; /// - /// Clean up any resources being used. + /// Clean up any resources being used. /// /// true if managed resources should be disposed; otherwise, false. protected override void Dispose(bool disposing) @@ -23,8 +23,8 @@ #region Windows Form Designer generated code /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. /// private void InitializeComponent() { @@ -41,54 +41,67 @@ // pictureBoxTeplohod.Dock = DockStyle.Fill; pictureBoxTeplohod.Location = new Point(0, 0); + pictureBoxTeplohod.Margin = new Padding(3, 4, 3, 4); pictureBoxTeplohod.Name = "pictureBoxTeplohod"; - pictureBoxTeplohod.Size = new Size(882, 553); + pictureBoxTeplohod.Size = new Size(775, 487); + pictureBoxTeplohod.SizeMode = PictureBoxSizeMode.AutoSize; pictureBoxTeplohod.TabIndex = 0; pictureBoxTeplohod.TabStop = false; // // buttonCreate // buttonCreate.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; - buttonCreate.Location = new Point(12, 512); + buttonCreate.Location = new Point(12, 415); + buttonCreate.Margin = new Padding(3, 4, 3, 4); buttonCreate.Name = "buttonCreate"; - buttonCreate.Size = new Size(94, 29); + buttonCreate.Size = new Size(93, 49); buttonCreate.TabIndex = 1; - buttonCreate.Text = "создать"; + buttonCreate.Text = "СОЗДАТЬ"; buttonCreate.UseVisualStyleBackColor = true; + buttonCreate.Click += ButtonCreateSportCar_Click; // // buttonLeft // buttonLeft.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonLeft.BackColor = SystemColors.ButtonFace; buttonLeft.BackgroundImage = Properties.Resources.влево; - buttonLeft.BackgroundImageLayout = ImageLayout.Stretch; - buttonLeft.Location = new Point(738, 500); + buttonLeft.BackgroundImageLayout = ImageLayout.Zoom; + buttonLeft.Location = new Point(557, 415); + buttonLeft.Margin = new Padding(3, 4, 3, 4); buttonLeft.Name = "buttonLeft"; - buttonLeft.Size = new Size(40, 40); + buttonLeft.Size = new Size(50, 50); buttonLeft.TabIndex = 2; - buttonLeft.UseVisualStyleBackColor = true; + buttonLeft.Text = " "; + buttonLeft.UseVisualStyleBackColor = false; buttonLeft.Click += ButtonMove_Click; // // buttonUp // buttonUp.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonUp.BackColor = SystemColors.Menu; buttonUp.BackgroundImage = Properties.Resources.вверх; - buttonUp.BackgroundImageLayout = ImageLayout.Stretch; - buttonUp.Location = new Point(784, 454); + buttonUp.BackgroundImageLayout = ImageLayout.Zoom; + buttonUp.ImageAlign = ContentAlignment.MiddleLeft; + buttonUp.Location = new Point(613, 357); + buttonUp.Margin = new Padding(3, 4, 3, 4); buttonUp.Name = "buttonUp"; - buttonUp.Size = new Size(40, 40); + buttonUp.Size = new Size(50, 50); buttonUp.TabIndex = 3; - buttonUp.UseVisualStyleBackColor = true; + buttonUp.Text = " "; + buttonUp.UseVisualStyleBackColor = false; buttonUp.Click += ButtonMove_Click; // // buttonRight // buttonRight.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; buttonRight.BackgroundImage = Properties.Resources.вправо; - buttonRight.BackgroundImageLayout = ImageLayout.Stretch; - buttonRight.Location = new Point(830, 501); + buttonRight.BackgroundImageLayout = ImageLayout.Zoom; + buttonRight.Location = new Point(669, 415); + buttonRight.Margin = new Padding(3, 4, 3, 4); buttonRight.Name = "buttonRight"; - buttonRight.Size = new Size(40, 40); - buttonRight.TabIndex = 4; + buttonRight.Size = new Size(50, 50); + buttonRight.TabIndex = 5; + buttonRight.Text = " "; buttonRight.UseVisualStyleBackColor = true; buttonRight.Click += ButtonMove_Click; // @@ -96,11 +109,13 @@ // buttonDown.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; buttonDown.BackgroundImage = Properties.Resources.вниз; - buttonDown.BackgroundImageLayout = ImageLayout.Stretch; - buttonDown.Location = new Point(784, 500); + buttonDown.BackgroundImageLayout = ImageLayout.Zoom; + buttonDown.Location = new Point(613, 415); + buttonDown.Margin = new Padding(3, 4, 3, 4); buttonDown.Name = "buttonDown"; - buttonDown.Size = new Size(40, 40); - buttonDown.TabIndex = 5; + buttonDown.Size = new Size(50, 50); + buttonDown.TabIndex = 6; + buttonDown.Text = " "; buttonDown.UseVisualStyleBackColor = true; buttonDown.Click += ButtonMove_Click; // @@ -108,17 +123,19 @@ // AutoScaleDimensions = new SizeF(8F, 20F); AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(882, 553); + ClientSize = new Size(775, 487); Controls.Add(buttonDown); Controls.Add(buttonRight); Controls.Add(buttonUp); Controls.Add(buttonLeft); Controls.Add(buttonCreate); Controls.Add(pictureBoxTeplohod); + Margin = new Padding(3, 4, 3, 4); Name = "FormTeplohod"; - Text = "Теплоход"; + Text = "Form1"; ((System.ComponentModel.ISupportInitialize)pictureBoxTeplohod).EndInit(); ResumeLayout(false); + PerformLayout(); } #endregion