This commit is contained in:
rakhaliullov 2024-04-15 00:28:39 +03:00
parent ef09f1cc1e
commit 7926446d50
3 changed files with 513 additions and 0 deletions

View File

@ -0,0 +1,338 @@
namespace Stormtrooper
{
partial class FormAircraftConfig
{
/// <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()
{
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;
}
}

View File

@ -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)
{
}
}
}

View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>