diff --git a/AirBomber/AirBomber/FormPlaneConfig.Designer.cs b/AirBomber/AirBomber/FormPlaneConfig.Designer.cs index e9bc764..6b6522b 100644 --- a/AirBomber/AirBomber/FormPlaneConfig.Designer.cs +++ b/AirBomber/AirBomber/FormPlaneConfig.Designer.cs @@ -28,12 +28,320 @@ /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(800, 450); - this.Text = "FormPlaneConfig"; + groupBoxParameters = new GroupBox(); + labelModifiedObject = new Label(); + labelSimpleObject = new Label(); + groupBoxColors = new GroupBox(); + panelPurple = new Panel(); + panelBlack = new Panel(); + panelGrey = new Panel(); + panelWhite = new Panel(); + panelYellow = new Panel(); + panelBlue = new Panel(); + panelGreen = new Panel(); + panelRed = new Panel(); + checkBoxFuelTanks = new CheckBox(); + checkBoxBombs = new CheckBox(); + numericUpDownWeight = new NumericUpDown(); + numericUpDownSpeed = new NumericUpDown(); + labelWeight = new Label(); + labelSpeed = new Label(); + pictureBoxObject = new PictureBox(); + panelObject = new Panel(); + labelColor = new Label(); + labelAddColor = new Label(); + buttonOk = new Button(); + buttonCancel = new Button(); + groupBoxParameters.SuspendLayout(); + groupBoxColors.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)numericUpDownWeight).BeginInit(); + ((System.ComponentModel.ISupportInitialize)numericUpDownSpeed).BeginInit(); + ((System.ComponentModel.ISupportInitialize)pictureBoxObject).BeginInit(); + panelObject.SuspendLayout(); + SuspendLayout(); + // + // groupBoxParameters + // + groupBoxParameters.Controls.Add(labelModifiedObject); + groupBoxParameters.Controls.Add(labelSimpleObject); + groupBoxParameters.Controls.Add(groupBoxColors); + groupBoxParameters.Controls.Add(checkBoxFuelTanks); + groupBoxParameters.Controls.Add(checkBoxBombs); + groupBoxParameters.Controls.Add(numericUpDownWeight); + groupBoxParameters.Controls.Add(numericUpDownSpeed); + groupBoxParameters.Controls.Add(labelWeight); + groupBoxParameters.Controls.Add(labelSpeed); + groupBoxParameters.Location = new Point(12, 12); + groupBoxParameters.Name = "groupBoxParameters"; + groupBoxParameters.Size = new Size(733, 340); + groupBoxParameters.TabIndex = 0; + groupBoxParameters.TabStop = false; + groupBoxParameters.Text = "Параметры"; + // + // labelModifiedObject + // + labelModifiedObject.BorderStyle = BorderStyle.FixedSingle; + labelModifiedObject.Location = new Point(563, 259); + labelModifiedObject.Name = "labelModifiedObject"; + labelModifiedObject.Size = new Size(150, 48); + labelModifiedObject.TabIndex = 8; + labelModifiedObject.Text = "Продвинутый"; + labelModifiedObject.TextAlign = ContentAlignment.MiddleCenter; + // + // labelSimpleObject + // + labelSimpleObject.BorderStyle = BorderStyle.FixedSingle; + labelSimpleObject.Location = new Point(389, 259); + labelSimpleObject.Name = "labelSimpleObject"; + labelSimpleObject.Size = new Size(150, 48); + labelSimpleObject.TabIndex = 7; + labelSimpleObject.Text = "Простой"; + labelSimpleObject.TextAlign = ContentAlignment.MiddleCenter; + labelSimpleObject.MouseDown += labelSimpleObject_MouseDown; + // + // groupBoxColors + // + groupBoxColors.Controls.Add(panelPurple); + groupBoxColors.Controls.Add(panelBlack); + groupBoxColors.Controls.Add(panelGrey); + groupBoxColors.Controls.Add(panelWhite); + groupBoxColors.Controls.Add(panelYellow); + groupBoxColors.Controls.Add(panelBlue); + groupBoxColors.Controls.Add(panelGreen); + groupBoxColors.Controls.Add(panelRed); + groupBoxColors.Location = new Point(389, 20); + groupBoxColors.Name = "groupBoxColors"; + groupBoxColors.Size = new Size(324, 194); + groupBoxColors.TabIndex = 6; + groupBoxColors.TabStop = false; + groupBoxColors.Text = "Цвета"; + // + // panelPurple + // + panelPurple.BackColor = Color.Purple; + panelPurple.Location = new Point(243, 113); + panelPurple.Name = "panelPurple"; + panelPurple.Size = new Size(54, 54); + panelPurple.TabIndex = 1; + // + // panelBlack + // + panelBlack.BackColor = Color.Black; + panelBlack.Location = new Point(169, 113); + panelBlack.Name = "panelBlack"; + panelBlack.Size = new Size(54, 54); + panelBlack.TabIndex = 1; + // + // panelGrey + // + panelGrey.BackColor = Color.Gray; + panelGrey.Location = new Point(96, 113); + panelGrey.Name = "panelGrey"; + panelGrey.Size = new Size(54, 54); + panelGrey.TabIndex = 1; + // + // panelWhite + // + panelWhite.BackColor = Color.White; + panelWhite.Location = new Point(22, 113); + panelWhite.Name = "panelWhite"; + panelWhite.Size = new Size(54, 54); + panelWhite.TabIndex = 1; + // + // panelYellow + // + panelYellow.BackColor = Color.Yellow; + panelYellow.Location = new Point(243, 43); + panelYellow.Name = "panelYellow"; + panelYellow.Size = new Size(54, 54); + panelYellow.TabIndex = 1; + // + // panelBlue + // + panelBlue.BackColor = Color.Blue; + panelBlue.Location = new Point(169, 43); + panelBlue.Name = "panelBlue"; + panelBlue.Size = new Size(54, 54); + panelBlue.TabIndex = 1; + // + // panelGreen + // + panelGreen.BackColor = Color.FromArgb(0, 192, 0); + panelGreen.Location = new Point(96, 43); + panelGreen.Name = "panelGreen"; + panelGreen.Size = new Size(54, 54); + panelGreen.TabIndex = 1; + // + // panelRed + // + panelRed.BackColor = Color.Red; + panelRed.Location = new Point(22, 43); + panelRed.Name = "panelRed"; + panelRed.Size = new Size(54, 54); + panelRed.TabIndex = 0; + // + // checkBoxFuelTanks + // + checkBoxFuelTanks.AutoSize = true; + checkBoxFuelTanks.Location = new Point(30, 225); + checkBoxFuelTanks.Name = "checkBoxFuelTanks"; + checkBoxFuelTanks.Size = new Size(327, 29); + checkBoxFuelTanks.TabIndex = 5; + checkBoxFuelTanks.Text = "Признак наличия топливных баков"; + checkBoxFuelTanks.UseVisualStyleBackColor = true; + // + // checkBoxBombs + // + checkBoxBombs.AutoSize = true; + checkBoxBombs.Location = new Point(30, 158); + checkBoxBombs.Name = "checkBoxBombs"; + checkBoxBombs.Size = new Size(229, 29); + checkBoxBombs.TabIndex = 4; + checkBoxBombs.Text = "Признак наличия бомб"; + checkBoxBombs.UseVisualStyleBackColor = true; + // + // numericUpDownWeight + // + numericUpDownWeight.Location = new Point(146, 94); + 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(180, 31); + numericUpDownWeight.TabIndex = 3; + numericUpDownWeight.Value = new decimal(new int[] { 100, 0, 0, 0 }); + // + // numericUpDownSpeed + // + numericUpDownSpeed.Location = new Point(146, 52); + 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(180, 31); + numericUpDownSpeed.TabIndex = 2; + numericUpDownSpeed.Value = new decimal(new int[] { 100, 0, 0, 0 }); + // + // labelWeight + // + labelWeight.AutoSize = true; + labelWeight.Location = new Point(30, 100); + labelWeight.Name = "labelWeight"; + labelWeight.Size = new Size(39, 25); + labelWeight.TabIndex = 1; + labelWeight.Text = "Вес"; + // + // labelSpeed + // + labelSpeed.AutoSize = true; + labelSpeed.Location = new Point(30, 54); + labelSpeed.Name = "labelSpeed"; + labelSpeed.Size = new Size(89, 25); + labelSpeed.TabIndex = 0; + labelSpeed.Text = "Скорость"; + // + // pictureBoxObject + // + pictureBoxObject.Location = new Point(32, 61); + pictureBoxObject.Name = "pictureBoxObject"; + pictureBoxObject.Size = new Size(358, 175); + pictureBoxObject.TabIndex = 1; + pictureBoxObject.TabStop = false; + // + // panelObject + // + panelObject.AllowDrop = true; + panelObject.Controls.Add(labelAddColor); + panelObject.Controls.Add(labelColor); + panelObject.Controls.Add(pictureBoxObject); + panelObject.Location = new Point(776, 23); + panelObject.Name = "panelObject"; + panelObject.Size = new Size(418, 253); + panelObject.TabIndex = 2; + // + // labelColor + // + labelColor.BorderStyle = BorderStyle.FixedSingle; + labelColor.Location = new Point(32, 9); + labelColor.Name = "labelColor"; + labelColor.Size = new Size(165, 49); + labelColor.TabIndex = 2; + labelColor.Text = "Цвет"; + labelColor.TextAlign = ContentAlignment.MiddleCenter; + // + // labelAddColor + // + labelAddColor.BorderStyle = BorderStyle.FixedSingle; + labelAddColor.Location = new Point(225, 9); + labelAddColor.Name = "labelAddColor"; + labelAddColor.Size = new Size(165, 49); + labelAddColor.TabIndex = 3; + labelAddColor.Text = "Доп. цвет"; + labelAddColor.TextAlign = ContentAlignment.MiddleCenter; + // + // buttonOk + // + buttonOk.Location = new Point(783, 291); + buttonOk.Name = "buttonOk"; + buttonOk.Size = new Size(190, 51); + buttonOk.TabIndex = 3; + buttonOk.Text = "Добавить"; + buttonOk.UseVisualStyleBackColor = true; + // + // buttonCancel + // + buttonCancel.Location = new Point(992, 291); + buttonCancel.Name = "buttonCancel"; + buttonCancel.Size = new Size(190, 51); + buttonCancel.TabIndex = 4; + buttonCancel.Text = "Отмена"; + buttonCancel.UseVisualStyleBackColor = true; + // + // FormPlaneConfig + // + AutoScaleDimensions = new SizeF(10F, 25F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(1222, 364); + Controls.Add(buttonCancel); + Controls.Add(buttonOk); + Controls.Add(panelObject); + Controls.Add(groupBoxParameters); + Name = "FormPlaneConfig"; + Text = "Создание объекта"; + groupBoxParameters.ResumeLayout(false); + groupBoxParameters.PerformLayout(); + groupBoxColors.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)numericUpDownWeight).EndInit(); + ((System.ComponentModel.ISupportInitialize)numericUpDownSpeed).EndInit(); + ((System.ComponentModel.ISupportInitialize)pictureBoxObject).EndInit(); + panelObject.ResumeLayout(false); + ResumeLayout(false); } #endregion + + private GroupBox groupBoxParameters; + private CheckBox checkBox3; + private CheckBox checkBoxFuelTanks; + private CheckBox checkBoxBombs; + private NumericUpDown numericUpDownWeight; + private NumericUpDown numericUpDownSpeed; + private Label labelWeight; + private Label labelSpeed; + private Label labelModifiedObject; + private Label labelSimpleObject; + private GroupBox groupBoxColors; + private Panel panelPurple; + private Panel panelBlack; + private Panel panelGrey; + private Panel panelWhite; + private Panel panelYellow; + private Panel panelBlue; + private Panel panelGreen; + private Panel panelRed; + private PictureBox pictureBoxObject; + private Panel panelObject; + private Label labelAddColor; + private Label labelColor; + private Button buttonOk; + private Button buttonCancel; } } \ No newline at end of file diff --git a/AirBomber/AirBomber/FormPlaneConfig.cs b/AirBomber/AirBomber/FormPlaneConfig.cs index bbfb1fd..dcdda34 100644 --- a/AirBomber/AirBomber/FormPlaneConfig.cs +++ b/AirBomber/AirBomber/FormPlaneConfig.cs @@ -16,5 +16,10 @@ namespace AirBomber { InitializeComponent(); } + + private void labelSimpleObject_MouseDown(object sender, MouseEventArgs e) + { + + } } } diff --git a/AirBomber/AirBomber/FormPlaneConfig.resx b/AirBomber/AirBomber/FormPlaneConfig.resx index 1af7de1..f298a7b 100644 --- a/AirBomber/AirBomber/FormPlaneConfig.resx +++ b/AirBomber/AirBomber/FormPlaneConfig.resx @@ -1,64 +1,4 @@ - - - +