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-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
|
|
|
|
buttonCreateShip = new Button();
|
|
|
|
|
comboBoxStrategy = new ComboBox();
|
|
|
|
|
buttonStep = 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);
|
|
|
|
|
pictureBoxShips.Name = "pictureBoxShips";
|
|
|
|
|
pictureBoxShips.Size = new Size(882, 453);
|
|
|
|
|
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;
|
|
|
|
|
buttonCreateContainerShip.Location = new Point(12, 364);
|
|
|
|
|
buttonCreateContainerShip.Name = "buttonCreateContainerShip";
|
|
|
|
|
buttonCreateContainerShip.Size = new Size(131, 77);
|
|
|
|
|
buttonCreateContainerShip.TabIndex = 1;
|
|
|
|
|
buttonCreateContainerShip.Text = "Создать контейнеровоз";
|
|
|
|
|
buttonCreateContainerShip.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonCreateContainerShip.Click += ButtonCreateContainerShip_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;
|
|
|
|
|
buttonRight.Location = new Point(840, 411);
|
|
|
|
|
buttonRight.Name = "buttonRight";
|
|
|
|
|
buttonRight.Size = new Size(30, 30);
|
|
|
|
|
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;
|
|
|
|
|
buttonDown.Location = new Point(804, 411);
|
|
|
|
|
buttonDown.Name = "buttonDown";
|
|
|
|
|
buttonDown.Size = new Size(30, 30);
|
|
|
|
|
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;
|
|
|
|
|
buttonLeft.Location = new Point(768, 411);
|
|
|
|
|
buttonLeft.Name = "buttonLeft";
|
|
|
|
|
buttonLeft.Size = new Size(30, 30);
|
|
|
|
|
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;
|
|
|
|
|
buttonUp.Location = new Point(804, 375);
|
|
|
|
|
buttonUp.Name = "buttonUp";
|
|
|
|
|
buttonUp.Size = new Size(30, 30);
|
|
|
|
|
buttonUp.TabIndex = 5;
|
|
|
|
|
buttonUp.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonUp.Click += buttonMove_Click;
|
|
|
|
|
//
|
2023-11-25 12:44:21 +04:00
|
|
|
|
// buttonCreateShip
|
|
|
|
|
//
|
|
|
|
|
buttonCreateShip.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
|
|
|
buttonCreateShip.Location = new Point(149, 364);
|
|
|
|
|
buttonCreateShip.Name = "buttonCreateShip";
|
|
|
|
|
buttonCreateShip.Size = new Size(131, 77);
|
|
|
|
|
buttonCreateShip.TabIndex = 6;
|
|
|
|
|
buttonCreateShip.Text = "Создать корабль";
|
|
|
|
|
buttonCreateShip.UseVisualStyleBackColor = true;
|
|
|
|
|
//
|
|
|
|
|
// comboBoxStrategy
|
|
|
|
|
//
|
|
|
|
|
comboBoxStrategy.DropDownStyle = ComboBoxStyle.DropDownList;
|
|
|
|
|
comboBoxStrategy.FormattingEnabled = true;
|
|
|
|
|
comboBoxStrategy.Items.AddRange(new object[] { "К центру", "К правому нижнему краю" });
|
|
|
|
|
comboBoxStrategy.Location = new Point(711, 12);
|
|
|
|
|
comboBoxStrategy.Name = "comboBoxStrategy";
|
|
|
|
|
comboBoxStrategy.Size = new Size(159, 28);
|
|
|
|
|
comboBoxStrategy.TabIndex = 7;
|
|
|
|
|
//
|
|
|
|
|
// buttonStep
|
|
|
|
|
//
|
|
|
|
|
buttonStep.Location = new Point(729, 46);
|
|
|
|
|
buttonStep.Name = "buttonStep";
|
|
|
|
|
buttonStep.Size = new Size(128, 31);
|
|
|
|
|
buttonStep.TabIndex = 8;
|
|
|
|
|
buttonStep.Text = "Шаг";
|
|
|
|
|
buttonStep.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonStep.Click += ButtonStep_Click;
|
|
|
|
|
//
|
2023-11-25 12:27:56 +04:00
|
|
|
|
// FormShips
|
|
|
|
|
//
|
|
|
|
|
AutoScaleDimensions = new SizeF(8F, 20F);
|
|
|
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
|
|
|
ClientSize = new Size(882, 453);
|
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);
|
|
|
|
|
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-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 buttonCreateShip;
|
|
|
|
|
private ComboBox comboBoxStrategy;
|
|
|
|
|
private Button buttonStep;
|
2023-11-25 12:27:56 +04:00
|
|
|
|
}
|
|
|
|
|
}
|