2023-10-03 13:19:27 +04:00
|
|
|
|
namespace ProjectTank
|
|
|
|
|
{
|
|
|
|
|
partial class FormTank
|
|
|
|
|
{
|
|
|
|
|
/// <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()
|
|
|
|
|
{
|
|
|
|
|
pictureBoxTank = new PictureBox();
|
|
|
|
|
createButton = new Button();
|
|
|
|
|
buttonLeft = new Button();
|
|
|
|
|
buttonDown = new Button();
|
|
|
|
|
buttonRight = new Button();
|
|
|
|
|
buttonUp = new Button();
|
2023-10-03 13:32:33 +04:00
|
|
|
|
comboBoxStrategy = new ComboBox();
|
|
|
|
|
button1 = new Button();
|
|
|
|
|
button2 = new Button();
|
2023-10-03 13:19:27 +04:00
|
|
|
|
((System.ComponentModel.ISupportInitialize)pictureBoxTank).BeginInit();
|
|
|
|
|
SuspendLayout();
|
|
|
|
|
//
|
|
|
|
|
// pictureBoxTank
|
|
|
|
|
//
|
|
|
|
|
pictureBoxTank.Dock = DockStyle.Fill;
|
|
|
|
|
pictureBoxTank.Location = new Point(0, 0);
|
|
|
|
|
pictureBoxTank.Name = "pictureBoxTank";
|
|
|
|
|
pictureBoxTank.Size = new Size(991, 458);
|
|
|
|
|
pictureBoxTank.SizeMode = PictureBoxSizeMode.AutoSize;
|
|
|
|
|
pictureBoxTank.TabIndex = 7;
|
|
|
|
|
pictureBoxTank.TabStop = false;
|
|
|
|
|
//
|
|
|
|
|
// createButton
|
|
|
|
|
//
|
2023-10-03 13:32:33 +04:00
|
|
|
|
createButton.Location = new Point(700, 406);
|
2023-10-03 13:19:27 +04:00
|
|
|
|
createButton.Name = "createButton";
|
2023-10-03 13:32:33 +04:00
|
|
|
|
createButton.Size = new Size(130, 41);
|
2023-10-03 13:19:27 +04:00
|
|
|
|
createButton.TabIndex = 8;
|
2023-10-03 13:32:33 +04:00
|
|
|
|
createButton.Text = "Create tank base";
|
2023-10-03 13:19:27 +04:00
|
|
|
|
createButton.UseVisualStyleBackColor = true;
|
2023-10-03 13:32:33 +04:00
|
|
|
|
createButton.Click += ButtonCreateTankBase_Click;
|
2023-10-03 13:19:27 +04:00
|
|
|
|
//
|
|
|
|
|
// buttonLeft
|
|
|
|
|
//
|
|
|
|
|
buttonLeft.BackgroundImage = Properties.Resources.icons8_left_arrow_40;
|
|
|
|
|
buttonLeft.BackgroundImageLayout = ImageLayout.Zoom;
|
|
|
|
|
buttonLeft.Font = new Font("Segoe UI", 15F, FontStyle.Regular, GraphicsUnit.Point);
|
|
|
|
|
buttonLeft.Location = new Point(12, 396);
|
|
|
|
|
buttonLeft.Name = "buttonLeft";
|
|
|
|
|
buttonLeft.Size = new Size(50, 50);
|
|
|
|
|
buttonLeft.TabIndex = 9;
|
|
|
|
|
buttonLeft.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonLeft.Click += moveButton_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonDown
|
|
|
|
|
//
|
|
|
|
|
buttonDown.BackgroundImage = Properties.Resources.arrowDown;
|
|
|
|
|
buttonDown.BackgroundImageLayout = ImageLayout.Zoom;
|
|
|
|
|
buttonDown.Font = new Font("Segoe UI", 10F, FontStyle.Regular, GraphicsUnit.Point);
|
|
|
|
|
buttonDown.Location = new Point(68, 396);
|
|
|
|
|
buttonDown.Name = "buttonDown";
|
|
|
|
|
buttonDown.Size = new Size(50, 50);
|
|
|
|
|
buttonDown.TabIndex = 10;
|
|
|
|
|
buttonDown.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonDown.Click += moveButton_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonRight
|
|
|
|
|
//
|
|
|
|
|
buttonRight.BackgroundImage = Properties.Resources.icons8_right_arrow_40;
|
|
|
|
|
buttonRight.BackgroundImageLayout = ImageLayout.Zoom;
|
|
|
|
|
buttonRight.Font = new Font("Segoe UI", 15F, FontStyle.Regular, GraphicsUnit.Point);
|
|
|
|
|
buttonRight.Location = new Point(124, 396);
|
|
|
|
|
buttonRight.Name = "buttonRight";
|
|
|
|
|
buttonRight.Size = new Size(50, 50);
|
|
|
|
|
buttonRight.TabIndex = 11;
|
|
|
|
|
buttonRight.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonRight.Click += moveButton_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonUp
|
|
|
|
|
//
|
|
|
|
|
buttonUp.BackgroundImage = Properties.Resources.icons8_up_arrow_40;
|
|
|
|
|
buttonUp.BackgroundImageLayout = ImageLayout.Zoom;
|
|
|
|
|
buttonUp.Font = new Font("Segoe UI", 15F, FontStyle.Regular, GraphicsUnit.Point);
|
|
|
|
|
buttonUp.Location = new Point(68, 340);
|
|
|
|
|
buttonUp.Name = "buttonUp";
|
|
|
|
|
buttonUp.Size = new Size(50, 50);
|
|
|
|
|
buttonUp.TabIndex = 12;
|
|
|
|
|
buttonUp.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonUp.Click += moveButton_Click;
|
|
|
|
|
//
|
2023-10-03 13:32:33 +04:00
|
|
|
|
// comboBoxStrategy
|
|
|
|
|
//
|
|
|
|
|
comboBoxStrategy.AutoCompleteCustomSource.AddRange(new string[] { "Move to center", "Move to border" });
|
|
|
|
|
comboBoxStrategy.DropDownStyle = ComboBoxStyle.DropDownList;
|
|
|
|
|
comboBoxStrategy.FormattingEnabled = true;
|
|
|
|
|
comboBoxStrategy.Items.AddRange(new object[] { "Move to center", "Move to right bottom corner" });
|
|
|
|
|
comboBoxStrategy.Location = new Point(757, 0);
|
|
|
|
|
comboBoxStrategy.Name = "comboBoxStrategy";
|
|
|
|
|
comboBoxStrategy.Size = new Size(234, 28);
|
|
|
|
|
comboBoxStrategy.TabIndex = 13;
|
|
|
|
|
//
|
|
|
|
|
// button1
|
|
|
|
|
//
|
|
|
|
|
button1.Location = new Point(840, 406);
|
|
|
|
|
button1.Name = "button1";
|
|
|
|
|
button1.Size = new Size(139, 41);
|
|
|
|
|
button1.TabIndex = 14;
|
|
|
|
|
button1.Text = "Create full tank";
|
|
|
|
|
button1.UseVisualStyleBackColor = true;
|
|
|
|
|
button1.Click += ButtonCreateTank_Click;
|
|
|
|
|
//
|
|
|
|
|
// button2
|
|
|
|
|
//
|
|
|
|
|
button2.Location = new Point(897, 34);
|
|
|
|
|
button2.Name = "button2";
|
|
|
|
|
button2.Size = new Size(94, 29);
|
|
|
|
|
button2.TabIndex = 15;
|
|
|
|
|
button2.Text = "Step";
|
|
|
|
|
button2.UseVisualStyleBackColor = true;
|
|
|
|
|
button2.Click += ButtonStep_Click;
|
|
|
|
|
//
|
2023-10-03 13:19:27 +04:00
|
|
|
|
// FormTank
|
|
|
|
|
//
|
|
|
|
|
AutoScaleDimensions = new SizeF(8F, 20F);
|
|
|
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
|
|
|
ClientSize = new Size(991, 458);
|
2023-10-03 13:32:33 +04:00
|
|
|
|
Controls.Add(button2);
|
|
|
|
|
Controls.Add(button1);
|
|
|
|
|
Controls.Add(comboBoxStrategy);
|
2023-10-03 13:19:27 +04:00
|
|
|
|
Controls.Add(buttonUp);
|
|
|
|
|
Controls.Add(buttonRight);
|
|
|
|
|
Controls.Add(buttonDown);
|
|
|
|
|
Controls.Add(buttonLeft);
|
|
|
|
|
Controls.Add(createButton);
|
|
|
|
|
Controls.Add(pictureBoxTank);
|
|
|
|
|
Name = "FormTank";
|
|
|
|
|
StartPosition = FormStartPosition.CenterScreen;
|
|
|
|
|
Text = "Drawing tank";
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)pictureBoxTank).EndInit();
|
|
|
|
|
ResumeLayout(false);
|
|
|
|
|
PerformLayout();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
private PictureBox pictureBoxTank;
|
|
|
|
|
private Button createButton;
|
|
|
|
|
private Button buttonLeft;
|
|
|
|
|
private Button buttonDown;
|
|
|
|
|
private Button buttonRight;
|
|
|
|
|
private Button buttonUp;
|
2023-10-03 13:32:33 +04:00
|
|
|
|
private ComboBox comboBoxStrategy;
|
|
|
|
|
private Button button1;
|
|
|
|
|
private Button button2;
|
2023-10-03 13:19:27 +04:00
|
|
|
|
}
|
|
|
|
|
}
|