134 lines
4.6 KiB
C#
134 lines
4.6 KiB
C#
|
namespace Lab
|
|||
|
{
|
|||
|
partial class Frame
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Required designer variable.
|
|||
|
/// </summary>
|
|||
|
private System.ComponentModel.IContainer components = null;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Clean up any resources being used.
|
|||
|
/// </summary>
|
|||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
|
protected override void Dispose(bool disposing)
|
|||
|
{
|
|||
|
if (disposing && (components != null))
|
|||
|
{
|
|||
|
components.Dispose();
|
|||
|
}
|
|||
|
base.Dispose(disposing);
|
|||
|
}
|
|||
|
|
|||
|
#region Windows Form Designer generated code
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Required method for Designer support - do not modify
|
|||
|
/// the contents of this method with the code editor.
|
|||
|
/// </summary>
|
|||
|
private void InitializeComponent()
|
|||
|
{
|
|||
|
DrawCar = new PictureBox();
|
|||
|
CreateCarButton = new Button();
|
|||
|
Up = new Button();
|
|||
|
Left = new Button();
|
|||
|
Down = new Button();
|
|||
|
Right = new Button();
|
|||
|
((System.ComponentModel.ISupportInitialize)DrawCar).BeginInit();
|
|||
|
SuspendLayout();
|
|||
|
//
|
|||
|
// DrawCar
|
|||
|
//
|
|||
|
DrawCar.Dock = DockStyle.Fill;
|
|||
|
DrawCar.Location = new Point(0, 0);
|
|||
|
DrawCar.Name = "DrawCar";
|
|||
|
DrawCar.Size = new Size(882, 553);
|
|||
|
DrawCar.TabIndex = 1;
|
|||
|
DrawCar.TabStop = false;
|
|||
|
//
|
|||
|
// CreateCarButton
|
|||
|
//
|
|||
|
CreateCarButton.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|||
|
CreateCarButton.Location = new Point(12, 512);
|
|||
|
CreateCarButton.Name = "CreateCarButton";
|
|||
|
CreateCarButton.Size = new Size(94, 29);
|
|||
|
CreateCarButton.TabIndex = 2;
|
|||
|
CreateCarButton.Text = "Создать";
|
|||
|
CreateCarButton.UseVisualStyleBackColor = true;
|
|||
|
CreateCarButton.Click += CreateCarButton_Click;
|
|||
|
//
|
|||
|
// Up
|
|||
|
//
|
|||
|
Up.BackgroundImage = Properties.Resources.Up;
|
|||
|
Up.BackgroundImageLayout = ImageLayout.Zoom;
|
|||
|
Up.Location = new Point(804, 476);
|
|||
|
Up.Name = "Up";
|
|||
|
Up.Size = new Size(30, 30);
|
|||
|
Up.TabIndex = 3;
|
|||
|
Up.Text = "↑";
|
|||
|
Up.UseVisualStyleBackColor = true;
|
|||
|
Up.Click += ButtonMove_Click;
|
|||
|
//
|
|||
|
// Left
|
|||
|
//
|
|||
|
Left.BackgroundImage = Properties.Resources.Left;
|
|||
|
Left.BackgroundImageLayout = ImageLayout.Zoom;
|
|||
|
Left.Location = new Point(768, 512);
|
|||
|
Left.Name = "Left";
|
|||
|
Left.Size = new Size(30, 30);
|
|||
|
Left.TabIndex = 4;
|
|||
|
Left.Text = "←";
|
|||
|
Left.UseVisualStyleBackColor = true;
|
|||
|
Left.Click += ButtonMove_Click;
|
|||
|
//
|
|||
|
// Down
|
|||
|
//
|
|||
|
Down.BackgroundImage = Properties.Resources.Down;
|
|||
|
Down.BackgroundImageLayout = ImageLayout.Zoom;
|
|||
|
Down.Location = new Point(804, 512);
|
|||
|
Down.Name = "Down";
|
|||
|
Down.Size = new Size(30, 30);
|
|||
|
Down.TabIndex = 5;
|
|||
|
Down.Text = "↓";
|
|||
|
Down.UseVisualStyleBackColor = true;
|
|||
|
Down.Click += ButtonMove_Click;
|
|||
|
//
|
|||
|
// Right
|
|||
|
//
|
|||
|
Right.BackgroundImage = Properties.Resources.Right;
|
|||
|
Right.BackgroundImageLayout = ImageLayout.Zoom;
|
|||
|
Right.Location = new Point(840, 512);
|
|||
|
Right.Name = "Right";
|
|||
|
Right.Size = new Size(30, 30);
|
|||
|
Right.TabIndex = 6;
|
|||
|
Right.Text = "→";
|
|||
|
Right.UseVisualStyleBackColor = true;
|
|||
|
Right.Click += ButtonMove_Click;
|
|||
|
//
|
|||
|
// Frame
|
|||
|
//
|
|||
|
AutoScaleDimensions = new SizeF(8F, 20F);
|
|||
|
AutoScaleMode = AutoScaleMode.Font;
|
|||
|
ClientSize = new Size(882, 553);
|
|||
|
Controls.Add(Right);
|
|||
|
Controls.Add(Down);
|
|||
|
Controls.Add(Left);
|
|||
|
Controls.Add(Up);
|
|||
|
Controls.Add(CreateCarButton);
|
|||
|
Controls.Add(DrawCar);
|
|||
|
Name = "Frame";
|
|||
|
StartPosition = FormStartPosition.CenterScreen;
|
|||
|
Text = "GasolineTanker";
|
|||
|
((System.ComponentModel.ISupportInitialize)DrawCar).EndInit();
|
|||
|
ResumeLayout(false);
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
private PictureBox DrawCar;
|
|||
|
private Button CreateCarButton;
|
|||
|
private Button Up;
|
|||
|
private Button Left;
|
|||
|
private Button Down;
|
|||
|
private Button Right;
|
|||
|
}
|
|||
|
}
|