2023-11-25 12:27:56 +04:00
|
|
|
|
namespace ContainerShip
|
|
|
|
|
{
|
|
|
|
|
partial class FormShips
|
|
|
|
|
{
|
|
|
|
|
/// <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()
|
|
|
|
|
{
|
|
|
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormShips));
|
|
|
|
|
pictureBoxShips = new PictureBox();
|
2023-11-25 12:44:21 +04:00
|
|
|
|
buttonCreateContainerShip = new Button();
|
2023-12-16 11:10:10 +04:00
|
|
|
|
buttonCreateShip = new Button();
|
2023-11-25 12:27:56 +04:00
|
|
|
|
buttonRight = new Button();
|
|
|
|
|
buttonDown = new Button();
|
|
|
|
|
buttonLeft = new Button();
|
|
|
|
|
buttonUp = new Button();
|
2023-11-25 12:44:21 +04:00
|
|
|
|
buttonStep = new Button();
|
2023-12-16 11:10:10 +04:00
|
|
|
|
comboBoxStrategy = new ComboBox();
|
|
|
|
|
button1 = new Button();
|
2023-11-25 12:27:56 +04:00
|
|
|
|
((System.ComponentModel.ISupportInitialize)pictureBoxShips).BeginInit();
|
|
|
|
|
SuspendLayout();
|
|
|
|
|
//
|
|
|
|
|
// pictureBoxShips
|
|
|
|
|
//
|
|
|
|
|
pictureBoxShips.Dock = DockStyle.Fill;
|
|
|
|
|
pictureBoxShips.Location = new Point(0, 0);
|
2023-12-16 11:10:10 +04:00
|
|
|
|
pictureBoxShips.Margin = new Padding(3, 2, 3, 2);
|
2023-11-25 12:27:56 +04:00
|
|
|
|
pictureBoxShips.Name = "pictureBoxShips";
|
2023-12-16 11:10:10 +04:00
|
|
|
|
pictureBoxShips.Size = new Size(772, 340);
|
2023-11-25 12:27:56 +04:00
|
|
|
|
pictureBoxShips.SizeMode = PictureBoxSizeMode.AutoSize;
|
|
|
|
|
pictureBoxShips.TabIndex = 0;
|
|
|
|
|
pictureBoxShips.TabStop = false;
|
|
|
|
|
//
|
2023-11-25 12:44:21 +04:00
|
|
|
|
// buttonCreateContainerShip
|
2023-11-25 12:27:56 +04:00
|
|
|
|
//
|
2023-11-25 12:44:21 +04:00
|
|
|
|
buttonCreateContainerShip.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
2023-12-16 11:10:10 +04:00
|
|
|
|
buttonCreateContainerShip.Location = new Point(10, 273);
|
|
|
|
|
buttonCreateContainerShip.Margin = new Padding(3, 2, 3, 2);
|
2023-11-25 12:44:21 +04:00
|
|
|
|
buttonCreateContainerShip.Name = "buttonCreateContainerShip";
|
2023-12-16 11:10:10 +04:00
|
|
|
|
buttonCreateContainerShip.Size = new Size(115, 58);
|
2023-11-25 12:44:21 +04:00
|
|
|
|
buttonCreateContainerShip.TabIndex = 1;
|
|
|
|
|
buttonCreateContainerShip.Text = "Создать контейнеровоз";
|
|
|
|
|
buttonCreateContainerShip.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonCreateContainerShip.Click += ButtonCreateContainerShip_Click;
|
2023-11-25 12:27:56 +04:00
|
|
|
|
//
|
2023-12-16 11:10:10 +04:00
|
|
|
|
// buttonCreateShip
|
|
|
|
|
//
|
|
|
|
|
buttonCreateShip.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
|
|
|
buttonCreateShip.Location = new Point(130, 273);
|
|
|
|
|
buttonCreateShip.Margin = new Padding(3, 2, 3, 2);
|
|
|
|
|
buttonCreateShip.Name = "buttonCreateShip";
|
|
|
|
|
buttonCreateShip.Size = new Size(115, 58);
|
|
|
|
|
buttonCreateShip.TabIndex = 6;
|
|
|
|
|
buttonCreateShip.Text = "Создать корабль";
|
|
|
|
|
buttonCreateShip.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonCreateShip.Click += ButtonCreateShip_Click;
|
|
|
|
|
//
|
2023-11-25 12:27:56 +04:00
|
|
|
|
// buttonRight
|
|
|
|
|
//
|
|
|
|
|
buttonRight.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
|
|
|
buttonRight.BackgroundImage = (Image)resources.GetObject("buttonRight.BackgroundImage");
|
|
|
|
|
buttonRight.BackgroundImageLayout = ImageLayout.Zoom;
|
2023-12-16 11:10:10 +04:00
|
|
|
|
buttonRight.Location = new Point(735, 308);
|
|
|
|
|
buttonRight.Margin = new Padding(3, 2, 3, 2);
|
2023-11-25 12:27:56 +04:00
|
|
|
|
buttonRight.Name = "buttonRight";
|
2023-12-16 11:10:10 +04:00
|
|
|
|
buttonRight.Size = new Size(26, 22);
|
2023-11-25 12:27:56 +04:00
|
|
|
|
buttonRight.TabIndex = 2;
|
|
|
|
|
buttonRight.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonRight.Click += buttonMove_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonDown
|
|
|
|
|
//
|
|
|
|
|
buttonDown.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
|
|
|
buttonDown.BackgroundImage = (Image)resources.GetObject("buttonDown.BackgroundImage");
|
|
|
|
|
buttonDown.BackgroundImageLayout = ImageLayout.Zoom;
|
2023-12-16 11:10:10 +04:00
|
|
|
|
buttonDown.Location = new Point(704, 308);
|
|
|
|
|
buttonDown.Margin = new Padding(3, 2, 3, 2);
|
2023-11-25 12:27:56 +04:00
|
|
|
|
buttonDown.Name = "buttonDown";
|
2023-12-16 11:10:10 +04:00
|
|
|
|
buttonDown.Size = new Size(26, 22);
|
2023-11-25 12:27:56 +04:00
|
|
|
|
buttonDown.TabIndex = 3;
|
|
|
|
|
buttonDown.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonDown.Click += buttonMove_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonLeft
|
|
|
|
|
//
|
|
|
|
|
buttonLeft.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
|
|
|
buttonLeft.BackgroundImage = (Image)resources.GetObject("buttonLeft.BackgroundImage");
|
|
|
|
|
buttonLeft.BackgroundImageLayout = ImageLayout.Zoom;
|
2023-12-16 11:10:10 +04:00
|
|
|
|
buttonLeft.Location = new Point(672, 308);
|
|
|
|
|
buttonLeft.Margin = new Padding(3, 2, 3, 2);
|
2023-11-25 12:27:56 +04:00
|
|
|
|
buttonLeft.Name = "buttonLeft";
|
2023-12-16 11:10:10 +04:00
|
|
|
|
buttonLeft.Size = new Size(26, 22);
|
2023-11-25 12:27:56 +04:00
|
|
|
|
buttonLeft.TabIndex = 4;
|
|
|
|
|
buttonLeft.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonLeft.Click += buttonMove_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonUp
|
|
|
|
|
//
|
|
|
|
|
buttonUp.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
|
|
|
buttonUp.BackgroundImage = (Image)resources.GetObject("buttonUp.BackgroundImage");
|
|
|
|
|
buttonUp.BackgroundImageLayout = ImageLayout.Zoom;
|
2023-12-16 11:10:10 +04:00
|
|
|
|
buttonUp.Location = new Point(704, 281);
|
|
|
|
|
buttonUp.Margin = new Padding(3, 2, 3, 2);
|
2023-11-25 12:27:56 +04:00
|
|
|
|
buttonUp.Name = "buttonUp";
|
2023-12-16 11:10:10 +04:00
|
|
|
|
buttonUp.Size = new Size(26, 22);
|
2023-11-25 12:27:56 +04:00
|
|
|
|
buttonUp.TabIndex = 5;
|
|
|
|
|
buttonUp.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonUp.Click += buttonMove_Click;
|
|
|
|
|
//
|
2023-12-16 11:10:10 +04:00
|
|
|
|
// buttonStep
|
2023-11-25 12:44:21 +04:00
|
|
|
|
//
|
2023-12-16 11:10:10 +04:00
|
|
|
|
buttonStep.Location = new Point(638, 34);
|
|
|
|
|
buttonStep.Margin = new Padding(3, 2, 3, 2);
|
|
|
|
|
buttonStep.Name = "buttonStep";
|
|
|
|
|
buttonStep.Size = new Size(112, 23);
|
|
|
|
|
buttonStep.TabIndex = 8;
|
|
|
|
|
buttonStep.Text = "Шаг";
|
|
|
|
|
buttonStep.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonStep.Click += ButtonStep_Click;
|
2023-11-25 12:44:21 +04:00
|
|
|
|
//
|
|
|
|
|
// comboBoxStrategy
|
|
|
|
|
//
|
|
|
|
|
comboBoxStrategy.DropDownStyle = ComboBoxStyle.DropDownList;
|
|
|
|
|
comboBoxStrategy.FormattingEnabled = true;
|
|
|
|
|
comboBoxStrategy.Items.AddRange(new object[] { "К центру", "К правому нижнему краю" });
|
2023-12-16 11:10:10 +04:00
|
|
|
|
comboBoxStrategy.Location = new Point(622, 9);
|
|
|
|
|
comboBoxStrategy.Margin = new Padding(3, 2, 3, 2);
|
2023-11-25 12:44:21 +04:00
|
|
|
|
comboBoxStrategy.Name = "comboBoxStrategy";
|
2023-12-16 11:10:10 +04:00
|
|
|
|
comboBoxStrategy.Size = new Size(140, 23);
|
2023-11-25 12:44:21 +04:00
|
|
|
|
comboBoxStrategy.TabIndex = 7;
|
|
|
|
|
//
|
2023-12-16 11:10:10 +04:00
|
|
|
|
// button1
|
2023-11-25 12:44:21 +04:00
|
|
|
|
//
|
2023-12-16 11:10:10 +04:00
|
|
|
|
button1.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
|
|
|
button1.Location = new Point(251, 273);
|
|
|
|
|
button1.Margin = new Padding(3, 2, 3, 2);
|
|
|
|
|
button1.Name = "button1";
|
|
|
|
|
button1.Size = new Size(115, 58);
|
|
|
|
|
button1.TabIndex = 9;
|
|
|
|
|
button1.Text = "Выбрать корабль";
|
|
|
|
|
button1.UseVisualStyleBackColor = true;
|
|
|
|
|
button1.Click += buttonSelectedContainerShip_Click;
|
2023-11-25 12:44:21 +04:00
|
|
|
|
//
|
2023-11-25 12:27:56 +04:00
|
|
|
|
// FormShips
|
|
|
|
|
//
|
2023-12-16 11:10:10 +04:00
|
|
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
2023-11-25 12:27:56 +04:00
|
|
|
|
AutoScaleMode = AutoScaleMode.Font;
|
2023-12-16 11:10:10 +04:00
|
|
|
|
ClientSize = new Size(772, 340);
|
|
|
|
|
Controls.Add(button1);
|
2023-11-25 12:44:21 +04:00
|
|
|
|
Controls.Add(buttonStep);
|
|
|
|
|
Controls.Add(comboBoxStrategy);
|
|
|
|
|
Controls.Add(buttonCreateShip);
|
2023-11-25 12:27:56 +04:00
|
|
|
|
Controls.Add(buttonUp);
|
|
|
|
|
Controls.Add(buttonLeft);
|
|
|
|
|
Controls.Add(buttonDown);
|
|
|
|
|
Controls.Add(buttonRight);
|
2023-11-25 12:44:21 +04:00
|
|
|
|
Controls.Add(buttonCreateContainerShip);
|
2023-11-25 12:27:56 +04:00
|
|
|
|
Controls.Add(pictureBoxShips);
|
2023-12-16 11:10:10 +04:00
|
|
|
|
Margin = new Padding(3, 2, 3, 2);
|
2023-11-25 12:27:56 +04:00
|
|
|
|
Name = "FormShips";
|
|
|
|
|
StartPosition = FormStartPosition.CenterScreen;
|
|
|
|
|
Text = "ContainerShip";
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)pictureBoxShips).EndInit();
|
|
|
|
|
ResumeLayout(false);
|
|
|
|
|
PerformLayout();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
private PictureBox pictureBoxShips;
|
2023-11-25 12:44:21 +04:00
|
|
|
|
private Button buttonCreateContainerShip;
|
2023-12-16 11:10:10 +04:00
|
|
|
|
private Button buttonCreateShip;
|
2023-11-25 12:27:56 +04:00
|
|
|
|
private Button buttonRight;
|
|
|
|
|
private Button buttonDown;
|
|
|
|
|
private Button buttonLeft;
|
|
|
|
|
private Button buttonUp;
|
2023-11-25 12:44:21 +04:00
|
|
|
|
private Button buttonStep;
|
2023-12-16 11:10:10 +04:00
|
|
|
|
private ComboBox comboBoxStrategy;
|
|
|
|
|
private Button button1;
|
2023-11-25 12:27:56 +04:00
|
|
|
|
}
|
|
|
|
|
}
|