174 lines
6.6 KiB
C#
174 lines
6.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();
|
|
CreateBaseCarButton = new Button();
|
|
Up = new Button();
|
|
Left = new Button();
|
|
Down = new Button();
|
|
Right = new Button();
|
|
buttonCreateGasolineTanker = new Button();
|
|
buttonStep = new Button();
|
|
comboBoxStrategy = new ComboBox();
|
|
((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;
|
|
//
|
|
// CreateBaseCarButton
|
|
//
|
|
CreateBaseCarButton.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
CreateBaseCarButton.Location = new Point(12, 441);
|
|
CreateBaseCarButton.Name = "CreateBaseCarButton";
|
|
CreateBaseCarButton.Size = new Size(200, 100);
|
|
CreateBaseCarButton.TabIndex = 2;
|
|
CreateBaseCarButton.Text = "Создать простой бензовоз";
|
|
CreateBaseCarButton.UseVisualStyleBackColor = true;
|
|
CreateBaseCarButton.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;
|
|
//
|
|
// buttonCreateGasolineTanker
|
|
//
|
|
buttonCreateGasolineTanker.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
buttonCreateGasolineTanker.Location = new Point(218, 442);
|
|
buttonCreateGasolineTanker.Name = "buttonCreateGasolineTanker";
|
|
buttonCreateGasolineTanker.Size = new Size(200, 100);
|
|
buttonCreateGasolineTanker.TabIndex = 7;
|
|
buttonCreateGasolineTanker.Text = "Создать красивый бензовоз";
|
|
buttonCreateGasolineTanker.UseVisualStyleBackColor = true;
|
|
buttonCreateGasolineTanker.Click += CreateGasolineTankerButton_Click;
|
|
//
|
|
// buttonStep
|
|
//
|
|
buttonStep.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
buttonStep.Location = new Point(776, 72);
|
|
buttonStep.Name = "buttonStep";
|
|
buttonStep.Size = new Size(94, 29);
|
|
buttonStep.TabIndex = 8;
|
|
buttonStep.Text = "Шаг";
|
|
buttonStep.UseVisualStyleBackColor = true;
|
|
buttonStep.Click += ButtonStep_Click;
|
|
//
|
|
// comboBoxStrategy
|
|
//
|
|
comboBoxStrategy.FormattingEnabled = true;
|
|
comboBoxStrategy.Items.AddRange(new object[] { "0", "1" });
|
|
comboBoxStrategy.Location = new Point(719, 27);
|
|
comboBoxStrategy.Name = "comboBoxStrategy";
|
|
comboBoxStrategy.Size = new Size(151, 28);
|
|
comboBoxStrategy.TabIndex = 9;
|
|
//
|
|
// GasolineTanker
|
|
//
|
|
AutoScaleDimensions = new SizeF(8F, 20F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(882, 553);
|
|
Controls.Add(comboBoxStrategy);
|
|
Controls.Add(buttonStep);
|
|
Controls.Add(buttonCreateGasolineTanker);
|
|
Controls.Add(Right);
|
|
Controls.Add(Down);
|
|
Controls.Add(Left);
|
|
Controls.Add(Up);
|
|
Controls.Add(CreateBaseCarButton);
|
|
Controls.Add(DrawCar);
|
|
Name = "GasolineTanker";
|
|
StartPosition = FormStartPosition.CenterScreen;
|
|
Text = "GasolineTanker";
|
|
((System.ComponentModel.ISupportInitialize)DrawCar).EndInit();
|
|
ResumeLayout(false);
|
|
}
|
|
|
|
#endregion
|
|
private PictureBox DrawCar;
|
|
private Button CreateBaseCarButton;
|
|
private Button Up;
|
|
private Button Left;
|
|
private Button Down;
|
|
private Button Right;
|
|
private Button buttonCreateGasolineTanker;
|
|
private Button buttonStep;
|
|
private ComboBox comboBoxStrategy;
|
|
}
|
|
} |