diff --git a/Stormtrooper/Stormtrooper/FormAircraftConfig.Designer.cs b/Stormtrooper/Stormtrooper/FormAircraftConfig.Designer.cs new file mode 100644 index 0000000..afcdef7 --- /dev/null +++ b/Stormtrooper/Stormtrooper/FormAircraftConfig.Designer.cs @@ -0,0 +1,338 @@ +namespace Stormtrooper +{ + partial class FormAircraftConfig + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + groupBoxConfig = new GroupBox(); + labelSimpleObject = new Label(); + label1 = new Label(); + labelSpeed = new Label(); + numericUpDownSpeed = new NumericUpDown(); + labelWeight = new Label(); + numericUpDownWeight = new NumericUpDown(); + checkBoxRocket = new CheckBox(); + checkBoxWing = new CheckBox(); + checkBoxBomb = new CheckBox(); + groupBoxColors = new GroupBox(); + panelRed = new Panel(); + panelYellow = new Panel(); + panelGreen = new Panel(); + panelBlue = new Panel(); + panelWhite = new Panel(); + panelGray = new Panel(); + panelBlack = new Panel(); + panelPurple = new Panel(); + pictureBoxObject = new PictureBox(); + buttonCancel = new Button(); + button2 = new Button(); + panelObject = new Panel(); + groupBoxConfig.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)numericUpDownSpeed).BeginInit(); + ((System.ComponentModel.ISupportInitialize)numericUpDownWeight).BeginInit(); + groupBoxColors.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)pictureBoxObject).BeginInit(); + panelObject.SuspendLayout(); + SuspendLayout(); + // + // groupBoxConfig + // + groupBoxConfig.Controls.Add(groupBoxColors); + groupBoxConfig.Controls.Add(checkBoxBomb); + groupBoxConfig.Controls.Add(checkBoxWing); + groupBoxConfig.Controls.Add(checkBoxRocket); + groupBoxConfig.Controls.Add(numericUpDownWeight); + groupBoxConfig.Controls.Add(labelWeight); + groupBoxConfig.Controls.Add(numericUpDownSpeed); + groupBoxConfig.Controls.Add(labelSpeed); + groupBoxConfig.Controls.Add(label1); + groupBoxConfig.Controls.Add(labelSimpleObject); + groupBoxConfig.Dock = DockStyle.Left; + groupBoxConfig.Location = new Point(0, 0); + groupBoxConfig.Name = "groupBoxConfig"; + groupBoxConfig.Size = new Size(590, 247); + groupBoxConfig.TabIndex = 0; + groupBoxConfig.TabStop = false; + groupBoxConfig.Text = "Параметры"; + // + // labelSimpleObject + // + labelSimpleObject.BorderStyle = BorderStyle.FixedSingle; + labelSimpleObject.Location = new Point(254, 179); + labelSimpleObject.Name = "labelSimpleObject"; + labelSimpleObject.Size = new Size(162, 36); + labelSimpleObject.TabIndex = 0; + labelSimpleObject.Text = "Простой объект"; + labelSimpleObject.TextAlign = ContentAlignment.MiddleCenter; + // + // label1 + // + label1.BorderStyle = BorderStyle.FixedSingle; + label1.Location = new Point(422, 179); + label1.Name = "label1"; + label1.Size = new Size(162, 36); + label1.TabIndex = 1; + label1.Text = "Продвинутый объект"; + label1.TextAlign = ContentAlignment.MiddleCenter; + // + // labelSpeed + // + labelSpeed.AutoSize = true; + labelSpeed.Location = new Point(12, 34); + labelSpeed.Name = "labelSpeed"; + labelSpeed.Size = new Size(76, 20); + labelSpeed.TabIndex = 2; + labelSpeed.Text = "Скорость:"; + labelSpeed.Click += labelSpeed_Click; + // + // numericUpDownSpeed + // + numericUpDownSpeed.Location = new Point(103, 34); + numericUpDownSpeed.Maximum = new decimal(new int[] { 1000, 0, 0, 0 }); + numericUpDownSpeed.Minimum = new decimal(new int[] { 100, 0, 0, 0 }); + numericUpDownSpeed.Name = "numericUpDownSpeed"; + numericUpDownSpeed.Size = new Size(122, 27); + numericUpDownSpeed.TabIndex = 3; + numericUpDownSpeed.Value = new decimal(new int[] { 100, 0, 0, 0 }); + numericUpDownSpeed.ValueChanged += numericUpDownSpeed_ValueChanged; + // + // labelWeight + // + labelWeight.AutoSize = true; + labelWeight.Location = new Point(12, 69); + labelWeight.Name = "labelWeight"; + labelWeight.Size = new Size(36, 20); + labelWeight.TabIndex = 4; + labelWeight.Text = "Вес:"; + // + // numericUpDownWeight + // + numericUpDownWeight.Location = new Point(103, 69); + numericUpDownWeight.Maximum = new decimal(new int[] { 1000, 0, 0, 0 }); + numericUpDownWeight.Minimum = new decimal(new int[] { 100, 0, 0, 0 }); + numericUpDownWeight.Name = "numericUpDownWeight"; + numericUpDownWeight.Size = new Size(122, 27); + numericUpDownWeight.TabIndex = 5; + numericUpDownWeight.Value = new decimal(new int[] { 100, 0, 0, 0 }); + // + // checkBoxRocket + // + checkBoxRocket.AutoSize = true; + checkBoxRocket.Location = new Point(20, 131); + checkBoxRocket.Name = "checkBoxRocket"; + checkBoxRocket.Size = new Size(196, 24); + checkBoxRocket.TabIndex = 6; + checkBoxRocket.Text = "Признак наличия ракет"; + checkBoxRocket.UseVisualStyleBackColor = true; + // + // checkBoxWing + // + checkBoxWing.AutoSize = true; + checkBoxWing.Location = new Point(20, 191); + checkBoxWing.Name = "checkBoxWing"; + checkBoxWing.Size = new Size(205, 24); + checkBoxWing.TabIndex = 7; + checkBoxWing.Text = "Признак наличия крыла "; + checkBoxWing.UseVisualStyleBackColor = true; + checkBoxWing.CheckedChanged += checkBox1_CheckedChanged; + // + // checkBoxBomb + // + checkBoxBomb.AutoSize = true; + checkBoxBomb.Location = new Point(20, 161); + checkBoxBomb.Name = "checkBoxBomb"; + checkBoxBomb.Size = new Size(196, 24); + checkBoxBomb.TabIndex = 8; + checkBoxBomb.Text = "Признак наличия бомб"; + checkBoxBomb.UseVisualStyleBackColor = true; + // + // groupBoxColors + // + groupBoxColors.Controls.Add(panelPurple); + groupBoxColors.Controls.Add(panelBlack); + groupBoxColors.Controls.Add(panelGray); + groupBoxColors.Controls.Add(panelWhite); + groupBoxColors.Controls.Add(panelBlue); + groupBoxColors.Controls.Add(panelGreen); + groupBoxColors.Controls.Add(panelYellow); + groupBoxColors.Controls.Add(panelRed); + groupBoxColors.Location = new Point(275, 26); + groupBoxColors.Name = "groupBoxColors"; + groupBoxColors.Size = new Size(290, 127); + groupBoxColors.TabIndex = 9; + groupBoxColors.TabStop = false; + groupBoxColors.Text = "Цвета"; + // + // panelRed + // + panelRed.BackColor = Color.Red; + panelRed.Location = new Point(25, 21); + panelRed.Name = "panelRed"; + panelRed.Size = new Size(43, 39); + panelRed.TabIndex = 0; + // + // panelYellow + // + panelYellow.BackColor = Color.Yellow; + panelYellow.Location = new Point(226, 21); + panelYellow.Name = "panelYellow"; + panelYellow.Size = new Size(43, 39); + panelYellow.TabIndex = 1; + // + // panelGreen + // + panelGreen.BackColor = Color.Green; + panelGreen.Location = new Point(92, 21); + panelGreen.Name = "panelGreen"; + panelGreen.Size = new Size(43, 39); + panelGreen.TabIndex = 1; + // + // panelBlue + // + panelBlue.BackColor = Color.Blue; + panelBlue.Location = new Point(159, 21); + panelBlue.Name = "panelBlue"; + panelBlue.Size = new Size(43, 39); + panelBlue.TabIndex = 2; + // + // panelWhite + // + panelWhite.BackColor = Color.White; + panelWhite.Location = new Point(25, 80); + panelWhite.Name = "panelWhite"; + panelWhite.Size = new Size(43, 39); + panelWhite.TabIndex = 1; + // + // panelGray + // + panelGray.BackColor = Color.Gray; + panelGray.Location = new Point(92, 80); + panelGray.Name = "panelGray"; + panelGray.Size = new Size(43, 39); + panelGray.TabIndex = 2; + // + // panelBlack + // + panelBlack.BackColor = Color.Black; + panelBlack.Location = new Point(159, 80); + panelBlack.Name = "panelBlack"; + panelBlack.Size = new Size(43, 39); + panelBlack.TabIndex = 3; + // + // panelPurple + // + panelPurple.BackColor = Color.Purple; + panelPurple.Location = new Point(226, 80); + panelPurple.Name = "panelPurple"; + panelPurple.Size = new Size(43, 39); + panelPurple.TabIndex = 2; + // + // pictureBoxObject + // + pictureBoxObject.Location = new Point(3, 3); + pictureBoxObject.Name = "pictureBoxObject"; + pictureBoxObject.Size = new Size(197, 187); + pictureBoxObject.TabIndex = 1; + pictureBoxObject.TabStop = false; + pictureBoxObject.Click += pictureBoxObject_Click_1; + // + // buttonCancel + // + buttonCancel.Location = new Point(712, 199); + buttonCancel.Name = "buttonCancel"; + buttonCancel.Size = new Size(84, 36); + buttonCancel.TabIndex = 3; + buttonCancel.Text = "Отмена"; + buttonCancel.UseVisualStyleBackColor = true; + // + // button2 + // + button2.Location = new Point(599, 199); + button2.Name = "button2"; + button2.Size = new Size(84, 36); + button2.TabIndex = 4; + button2.Text = "Добавить"; + button2.UseVisualStyleBackColor = true; + // + // panelObject + // + panelObject.AllowDrop = true; + panelObject.Controls.Add(pictureBoxObject); + panelObject.Location = new Point(596, 0); + panelObject.Name = "panelObject"; + panelObject.Size = new Size(203, 193); + panelObject.TabIndex = 5; + // + // FormAircraftConfig + // + AutoScaleDimensions = new SizeF(8F, 20F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(800, 247); + Controls.Add(panelObject); + Controls.Add(button2); + Controls.Add(buttonCancel); + Controls.Add(groupBoxConfig); + Name = "FormAircraftConfig"; + Text = "Создание объекта"; + Load += FormAircraftConfig_Load; + groupBoxConfig.ResumeLayout(false); + groupBoxConfig.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)numericUpDownSpeed).EndInit(); + ((System.ComponentModel.ISupportInitialize)numericUpDownWeight).EndInit(); + groupBoxColors.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)pictureBoxObject).EndInit(); + panelObject.ResumeLayout(false); + ResumeLayout(false); + } + + #endregion + + private GroupBox groupBoxConfig; + private Label labelSimpleObject; + private NumericUpDown numericUpDownSpeed; + private Label labelSpeed; + private Label label1; + private NumericUpDown numericUpDownWeight; + private Label labelWeight; + private CheckBox checkBoxRocket; + private CheckBox checkBoxBomb; + private CheckBox checkBoxWing; + private GroupBox groupBoxColors; + private Panel panelBlue; + private Panel panelGreen; + private Panel panelYellow; + private Panel panelRed; + private Panel panelPurple; + private Panel panelBlack; + private Panel panelGray; + private Panel panelWhite; + private PictureBox pictureBoxObject; + private Button buttonCancel; + private Button button2; + private Panel panelObject; + } +} \ No newline at end of file diff --git a/Stormtrooper/Stormtrooper/FormAircraftConfig.cs b/Stormtrooper/Stormtrooper/FormAircraftConfig.cs new file mode 100644 index 0000000..7d742bd --- /dev/null +++ b/Stormtrooper/Stormtrooper/FormAircraftConfig.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Stormtrooper +{ + public partial class FormAircraftConfig : Form + { + public FormAircraftConfig() + { + InitializeComponent(); + } + + private void labelSpeed_Click(object sender, EventArgs e) + { + + } + + private void numericUpDownSpeed_ValueChanged(object sender, EventArgs e) + { + + } + + private void checkBox1_CheckedChanged(object sender, EventArgs e) + { + + } + + private void pictureBoxObject_Click(object sender, EventArgs e) + { + + } + + private void pictureBoxObject_Click_1(object sender, EventArgs e) + { + + } + + private void FormAircraftConfig_Load(object sender, EventArgs e) + { + + } + + private void buttonCancel_Click(object sender, EventArgs e) + { + + } + } +} diff --git a/Stormtrooper/Stormtrooper/FormAircraftConfig.resx b/Stormtrooper/Stormtrooper/FormAircraftConfig.resx new file mode 100644 index 0000000..af32865 --- /dev/null +++ b/Stormtrooper/Stormtrooper/FormAircraftConfig.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file