2023-09-26 19:15:17 +04:00
|
|
|
|
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();
|
2023-10-04 12:52:06 +04:00
|
|
|
|
comboBoxStrategy = new ComboBox();
|
|
|
|
|
buttonStep = new Button();
|
|
|
|
|
Right = new Button();
|
2023-09-26 19:15:17 +04:00
|
|
|
|
Left = new Button();
|
|
|
|
|
Down = new Button();
|
2023-10-04 12:52:06 +04:00
|
|
|
|
Up = new Button();
|
2023-09-26 19:32:10 +04:00
|
|
|
|
buttonCreateGasolineTanker = new Button();
|
2023-10-04 12:52:06 +04:00
|
|
|
|
CreateBaseCarButton = new Button();
|
|
|
|
|
ChooseCar = new Button();
|
2023-09-26 19:15:17 +04:00
|
|
|
|
((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;
|
|
|
|
|
//
|
2023-10-04 12:52:06 +04:00
|
|
|
|
// comboBoxStrategy
|
2023-09-26 19:15:17 +04:00
|
|
|
|
//
|
2023-10-04 12:52:06 +04:00
|
|
|
|
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;
|
2023-09-26 19:15:17 +04:00
|
|
|
|
//
|
2023-10-04 12:52:06 +04:00
|
|
|
|
// buttonStep
|
2023-09-26 19:15:17 +04:00
|
|
|
|
//
|
2023-10-04 12:52:06 +04:00
|
|
|
|
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;
|
|
|
|
|
//
|
|
|
|
|
// 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;
|
2023-09-26 19:15:17 +04:00
|
|
|
|
//
|
|
|
|
|
// 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;
|
|
|
|
|
//
|
2023-10-04 12:52:06 +04:00
|
|
|
|
// Up
|
2023-09-26 19:15:17 +04:00
|
|
|
|
//
|
2023-10-04 12:52:06 +04:00
|
|
|
|
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;
|
2023-09-26 19:15:17 +04:00
|
|
|
|
//
|
2023-09-26 19:32:10 +04:00
|
|
|
|
// 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;
|
|
|
|
|
//
|
2023-10-04 12:52:06 +04:00
|
|
|
|
// CreateBaseCarButton
|
2023-09-26 19:32:10 +04:00
|
|
|
|
//
|
2023-10-04 12:52:06 +04:00
|
|
|
|
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;
|
2023-09-26 19:32:10 +04:00
|
|
|
|
//
|
2023-10-04 12:52:06 +04:00
|
|
|
|
// ChooseCar
|
2023-09-26 19:32:10 +04:00
|
|
|
|
//
|
2023-10-04 12:52:06 +04:00
|
|
|
|
ChooseCar.Location = new Point(776, 149);
|
|
|
|
|
ChooseCar.Name = "ChooseCar";
|
|
|
|
|
ChooseCar.Size = new Size(94, 52);
|
|
|
|
|
ChooseCar.TabIndex = 10;
|
|
|
|
|
ChooseCar.Text = "Выбрать машину";
|
|
|
|
|
ChooseCar.UseVisualStyleBackColor = true;
|
|
|
|
|
ChooseCar.Click += ButtonSelectTank_Click;
|
2023-09-26 19:32:10 +04:00
|
|
|
|
//
|
2023-10-04 12:52:06 +04:00
|
|
|
|
// Frame
|
2023-09-26 19:15:17 +04:00
|
|
|
|
//
|
|
|
|
|
AutoScaleDimensions = new SizeF(8F, 20F);
|
|
|
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
|
|
|
ClientSize = new Size(882, 553);
|
2023-10-04 12:52:06 +04:00
|
|
|
|
Controls.Add(ChooseCar);
|
2023-09-26 19:32:10 +04:00
|
|
|
|
Controls.Add(comboBoxStrategy);
|
|
|
|
|
Controls.Add(buttonStep);
|
|
|
|
|
Controls.Add(buttonCreateGasolineTanker);
|
2023-09-26 19:15:17 +04:00
|
|
|
|
Controls.Add(Right);
|
|
|
|
|
Controls.Add(Down);
|
|
|
|
|
Controls.Add(Left);
|
|
|
|
|
Controls.Add(Up);
|
2023-09-26 19:32:10 +04:00
|
|
|
|
Controls.Add(CreateBaseCarButton);
|
2023-09-26 19:15:17 +04:00
|
|
|
|
Controls.Add(DrawCar);
|
2023-10-04 12:52:06 +04:00
|
|
|
|
Name = "Frame";
|
2023-09-26 19:15:17 +04:00
|
|
|
|
StartPosition = FormStartPosition.CenterScreen;
|
|
|
|
|
Text = "GasolineTanker";
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)DrawCar).EndInit();
|
|
|
|
|
ResumeLayout(false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
2023-10-04 12:52:06 +04:00
|
|
|
|
|
2023-09-26 19:15:17 +04:00
|
|
|
|
private PictureBox DrawCar;
|
2023-10-04 12:52:06 +04:00
|
|
|
|
private ComboBox comboBoxStrategy;
|
|
|
|
|
private Button buttonStep;
|
|
|
|
|
private Button Right;
|
2023-09-26 19:15:17 +04:00
|
|
|
|
private Button Left;
|
|
|
|
|
private Button Down;
|
2023-10-04 12:52:06 +04:00
|
|
|
|
private Button Up;
|
2023-09-26 19:32:10 +04:00
|
|
|
|
private Button buttonCreateGasolineTanker;
|
2023-10-04 12:52:06 +04:00
|
|
|
|
private Button CreateBaseCarButton;
|
|
|
|
|
private Button button2;
|
|
|
|
|
private Button AddTanker;
|
|
|
|
|
private Button ChooseCar;
|
2023-09-26 19:15:17 +04:00
|
|
|
|
}
|
|
|
|
|
}
|