перенос на .net7

This commit is contained in:
Timourka 2023-11-17 23:38:39 +04:00
parent 291a63f52e
commit ddf5a2547f
7 changed files with 308 additions and 464 deletions

View File

@ -1,9 +1,9 @@

Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17 # Visual Studio Version 17
VisualStudioVersion = 17.5.33424.131 VisualStudioVersion = 17.5.33424.131
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Laba1Loco", "Laba1Loco\Laba1Loco.csproj", "{9F9C9603-3EF7-403E-A895-04EA0CBC5586}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Laba1Loco", "Laba1Loco\Laba1Loco.csproj", "{9F9C9603-3EF7-403E-A895-04EA0CBC5586}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8"?>
<configuration> <configuration>
<startup> <startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" /> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
</startup> </startup>
</configuration> </configuration>

View File

@ -28,339 +28,342 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.ParamsGroup = new System.Windows.Forms.GroupBox(); ParamsGroup = new System.Windows.Forms.GroupBox();
this.labelLoco = new System.Windows.Forms.Label(); labelLoco = new System.Windows.Forms.Label();
this.labelTrain = new System.Windows.Forms.Label(); labelTrain = new System.Windows.Forms.Label();
this.groupBoxColors = new System.Windows.Forms.GroupBox(); groupBoxColors = new System.Windows.Forms.GroupBox();
this.panelPurple = new System.Windows.Forms.Panel(); panelPurple = new System.Windows.Forms.Panel();
this.panelYellow = new System.Windows.Forms.Panel(); panelYellow = new System.Windows.Forms.Panel();
this.panelBlue = new System.Windows.Forms.Panel(); panelBlue = new System.Windows.Forms.Panel();
this.panelRed = new System.Windows.Forms.Panel(); panelRed = new System.Windows.Forms.Panel();
this.panelDarkBlue = new System.Windows.Forms.Panel(); panelDarkBlue = new System.Windows.Forms.Panel();
this.panelOrange = new System.Windows.Forms.Panel(); panelOrange = new System.Windows.Forms.Panel();
this.panelGreen = new System.Windows.Forms.Panel(); panelGreen = new System.Windows.Forms.Panel();
this.panelGray = new System.Windows.Forms.Panel(); panelGray = new System.Windows.Forms.Panel();
this.checkBoxFuelTank = new System.Windows.Forms.CheckBox(); checkBoxFuelTank = new System.Windows.Forms.CheckBox();
this.checkBoxSmokeTube = new System.Windows.Forms.CheckBox(); checkBoxSmokeTube = new System.Windows.Forms.CheckBox();
this.checkBoxLocoLine = new System.Windows.Forms.CheckBox(); checkBoxLocoLine = new System.Windows.Forms.CheckBox();
this.numericWeight = new System.Windows.Forms.NumericUpDown(); numericWeight = new System.Windows.Forms.NumericUpDown();
this.numericSpeed = new System.Windows.Forms.NumericUpDown(); numericSpeed = new System.Windows.Forms.NumericUpDown();
this.weightLabel = new System.Windows.Forms.Label(); weightLabel = new System.Windows.Forms.Label();
this.speedLabel = new System.Windows.Forms.Label(); speedLabel = new System.Windows.Forms.Label();
this.panel9 = new System.Windows.Forms.Panel(); panel9 = new System.Windows.Forms.Panel();
this.pictureBox = new System.Windows.Forms.PictureBox(); pictureBox = new System.Windows.Forms.PictureBox();
this.buttonAdd = new System.Windows.Forms.Button(); buttonAdd = new System.Windows.Forms.Button();
this.buttonCancel = new System.Windows.Forms.Button(); buttonCancel = new System.Windows.Forms.Button();
this.labelColor = new System.Windows.Forms.Label(); labelColor = new System.Windows.Forms.Label();
this.labelAdditionalColor = new System.Windows.Forms.Label(); labelAdditionalColor = new System.Windows.Forms.Label();
this.ParamsGroup.SuspendLayout(); ParamsGroup.SuspendLayout();
this.groupBoxColors.SuspendLayout(); groupBoxColors.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numericWeight)).BeginInit(); ((System.ComponentModel.ISupportInitialize)numericWeight).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericSpeed)).BeginInit(); ((System.ComponentModel.ISupportInitialize)numericSpeed).BeginInit();
this.panel9.SuspendLayout(); panel9.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox)).BeginInit(); ((System.ComponentModel.ISupportInitialize)pictureBox).BeginInit();
this.SuspendLayout(); SuspendLayout();
// //
// ParamsGroup // ParamsGroup
// //
this.ParamsGroup.Controls.Add(this.labelLoco); ParamsGroup.Controls.Add(labelLoco);
this.ParamsGroup.Controls.Add(this.labelTrain); ParamsGroup.Controls.Add(labelTrain);
this.ParamsGroup.Controls.Add(this.groupBoxColors); ParamsGroup.Controls.Add(groupBoxColors);
this.ParamsGroup.Controls.Add(this.checkBoxFuelTank); ParamsGroup.Controls.Add(checkBoxFuelTank);
this.ParamsGroup.Controls.Add(this.checkBoxSmokeTube); ParamsGroup.Controls.Add(checkBoxSmokeTube);
this.ParamsGroup.Controls.Add(this.checkBoxLocoLine); ParamsGroup.Controls.Add(checkBoxLocoLine);
this.ParamsGroup.Controls.Add(this.numericWeight); ParamsGroup.Controls.Add(numericWeight);
this.ParamsGroup.Controls.Add(this.numericSpeed); ParamsGroup.Controls.Add(numericSpeed);
this.ParamsGroup.Controls.Add(this.weightLabel); ParamsGroup.Controls.Add(weightLabel);
this.ParamsGroup.Controls.Add(this.speedLabel); ParamsGroup.Controls.Add(speedLabel);
this.ParamsGroup.Location = new System.Drawing.Point(3, 2); ParamsGroup.Location = new System.Drawing.Point(4, 2);
this.ParamsGroup.Name = "ParamsGroup"; ParamsGroup.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.ParamsGroup.Size = new System.Drawing.Size(180, 481); ParamsGroup.Name = "ParamsGroup";
this.ParamsGroup.TabIndex = 0; ParamsGroup.Padding = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.ParamsGroup.TabStop = false; ParamsGroup.Size = new System.Drawing.Size(210, 555);
this.ParamsGroup.Text = "Params Group Box"; ParamsGroup.TabIndex = 0;
ParamsGroup.TabStop = false;
ParamsGroup.Text = "Params Group Box";
// //
// labelLoco // labelLoco
// //
this.labelLoco.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; labelLoco.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.labelLoco.Location = new System.Drawing.Point(90, 419); labelLoco.Location = new System.Drawing.Point(105, 483);
this.labelLoco.Name = "labelLoco"; labelLoco.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelLoco.Size = new System.Drawing.Size(65, 37); labelLoco.Name = "labelLoco";
this.labelLoco.TabIndex = 10; labelLoco.Size = new System.Drawing.Size(76, 42);
this.labelLoco.Text = "Loco"; labelLoco.TabIndex = 10;
this.labelLoco.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; labelLoco.Text = "Loco";
this.labelLoco.MouseDown += new System.Windows.Forms.MouseEventHandler(this.LabelObject_MouseDown); labelLoco.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
labelLoco.MouseDown += LabelObject_MouseDown;
// //
// labelTrain // labelTrain
// //
this.labelTrain.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; labelTrain.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.labelTrain.Location = new System.Drawing.Point(14, 419); labelTrain.Location = new System.Drawing.Point(16, 483);
this.labelTrain.Name = "labelTrain"; labelTrain.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelTrain.Size = new System.Drawing.Size(65, 37); labelTrain.Name = "labelTrain";
this.labelTrain.TabIndex = 9; labelTrain.Size = new System.Drawing.Size(76, 42);
this.labelTrain.Text = "Train"; labelTrain.TabIndex = 9;
this.labelTrain.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; labelTrain.Text = "Train";
this.labelTrain.MouseDown += new System.Windows.Forms.MouseEventHandler(this.LabelObject_MouseDown); labelTrain.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
labelTrain.MouseDown += LabelObject_MouseDown;
// //
// groupBoxColors // groupBoxColors
// //
this.groupBoxColors.Controls.Add(this.panelPurple); groupBoxColors.Controls.Add(panelPurple);
this.groupBoxColors.Controls.Add(this.panelYellow); groupBoxColors.Controls.Add(panelYellow);
this.groupBoxColors.Controls.Add(this.panelBlue); groupBoxColors.Controls.Add(panelBlue);
this.groupBoxColors.Controls.Add(this.panelRed); groupBoxColors.Controls.Add(panelRed);
this.groupBoxColors.Controls.Add(this.panelDarkBlue); groupBoxColors.Controls.Add(panelDarkBlue);
this.groupBoxColors.Controls.Add(this.panelOrange); groupBoxColors.Controls.Add(panelOrange);
this.groupBoxColors.Controls.Add(this.panelGreen); groupBoxColors.Controls.Add(panelGreen);
this.groupBoxColors.Controls.Add(this.panelGray); groupBoxColors.Controls.Add(panelGray);
this.groupBoxColors.Location = new System.Drawing.Point(12, 174); groupBoxColors.Location = new System.Drawing.Point(14, 201);
this.groupBoxColors.Name = "groupBoxColors"; groupBoxColors.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.groupBoxColors.Size = new System.Drawing.Size(158, 226); groupBoxColors.Name = "groupBoxColors";
this.groupBoxColors.TabIndex = 8; groupBoxColors.Padding = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.groupBoxColors.TabStop = false; groupBoxColors.Size = new System.Drawing.Size(184, 261);
this.groupBoxColors.Text = "Colors"; groupBoxColors.TabIndex = 8;
groupBoxColors.TabStop = false;
groupBoxColors.Text = "Colors";
// //
// panelPurple // panelPurple
// //
this.panelPurple.BackColor = System.Drawing.Color.Fuchsia; panelPurple.BackColor = System.Drawing.Color.Fuchsia;
this.panelPurple.Location = new System.Drawing.Point(81, 179); panelPurple.Location = new System.Drawing.Point(94, 207);
this.panelPurple.Name = "panelPurple"; panelPurple.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.panelPurple.Size = new System.Drawing.Size(42, 40); panelPurple.Name = "panelPurple";
this.panelPurple.TabIndex = 3; panelPurple.Size = new System.Drawing.Size(49, 46);
panelPurple.TabIndex = 3;
// //
// panelYellow // panelYellow
// //
this.panelYellow.BackColor = System.Drawing.Color.Yellow; panelYellow.BackColor = System.Drawing.Color.Yellow;
this.panelYellow.Location = new System.Drawing.Point(81, 70); panelYellow.Location = new System.Drawing.Point(94, 81);
this.panelYellow.Name = "panelYellow"; panelYellow.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.panelYellow.Size = new System.Drawing.Size(42, 40); panelYellow.Name = "panelYellow";
this.panelYellow.TabIndex = 1; panelYellow.Size = new System.Drawing.Size(49, 46);
panelYellow.TabIndex = 1;
// //
// panelBlue // panelBlue
// //
this.panelBlue.BackColor = System.Drawing.Color.Cyan; panelBlue.BackColor = System.Drawing.Color.Cyan;
this.panelBlue.Location = new System.Drawing.Point(81, 125); panelBlue.Location = new System.Drawing.Point(94, 144);
this.panelBlue.Name = "panelBlue"; panelBlue.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.panelBlue.Size = new System.Drawing.Size(42, 40); panelBlue.Name = "panelBlue";
this.panelBlue.TabIndex = 4; panelBlue.Size = new System.Drawing.Size(49, 46);
panelBlue.TabIndex = 4;
// //
// panelRed // panelRed
// //
this.panelRed.BackColor = System.Drawing.Color.Red; panelRed.BackColor = System.Drawing.Color.Red;
this.panelRed.Location = new System.Drawing.Point(81, 16); panelRed.Location = new System.Drawing.Point(94, 18);
this.panelRed.Name = "panelRed"; panelRed.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.panelRed.Size = new System.Drawing.Size(42, 40); panelRed.Name = "panelRed";
this.panelRed.TabIndex = 1; panelRed.Size = new System.Drawing.Size(49, 46);
panelRed.TabIndex = 1;
// //
// panelDarkBlue // panelDarkBlue
// //
this.panelDarkBlue.BackColor = System.Drawing.Color.Blue; panelDarkBlue.BackColor = System.Drawing.Color.Blue;
this.panelDarkBlue.Location = new System.Drawing.Point(25, 179); panelDarkBlue.Location = new System.Drawing.Point(29, 207);
this.panelDarkBlue.Name = "panelDarkBlue"; panelDarkBlue.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.panelDarkBlue.Size = new System.Drawing.Size(42, 40); panelDarkBlue.Name = "panelDarkBlue";
this.panelDarkBlue.TabIndex = 5; panelDarkBlue.Size = new System.Drawing.Size(49, 46);
panelDarkBlue.TabIndex = 5;
// //
// panelOrange // panelOrange
// //
this.panelOrange.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); panelOrange.BackColor = System.Drawing.Color.LightSalmon;
this.panelOrange.Location = new System.Drawing.Point(25, 70); panelOrange.Location = new System.Drawing.Point(29, 81);
this.panelOrange.Name = "panelOrange"; panelOrange.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.panelOrange.Size = new System.Drawing.Size(42, 40); panelOrange.Name = "panelOrange";
this.panelOrange.TabIndex = 1; panelOrange.Size = new System.Drawing.Size(49, 46);
panelOrange.TabIndex = 1;
// //
// panelGreen // panelGreen
// //
this.panelGreen.BackColor = System.Drawing.Color.Lime; panelGreen.BackColor = System.Drawing.Color.Lime;
this.panelGreen.Location = new System.Drawing.Point(25, 125); panelGreen.Location = new System.Drawing.Point(29, 144);
this.panelGreen.Name = "panelGreen"; panelGreen.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.panelGreen.Size = new System.Drawing.Size(42, 40); panelGreen.Name = "panelGreen";
this.panelGreen.TabIndex = 2; panelGreen.Size = new System.Drawing.Size(49, 46);
panelGreen.TabIndex = 2;
// //
// panelGray // panelGray
// //
this.panelGray.BackColor = System.Drawing.Color.Silver; panelGray.BackColor = System.Drawing.Color.Silver;
this.panelGray.Location = new System.Drawing.Point(25, 16); panelGray.Location = new System.Drawing.Point(29, 18);
this.panelGray.Name = "panelGray"; panelGray.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.panelGray.Size = new System.Drawing.Size(42, 40); panelGray.Name = "panelGray";
this.panelGray.TabIndex = 0; panelGray.Size = new System.Drawing.Size(49, 46);
panelGray.TabIndex = 0;
// //
// checkBoxFuelTank // checkBoxFuelTank
// //
this.checkBoxFuelTank.AutoSize = true; checkBoxFuelTank.AutoSize = true;
this.checkBoxFuelTank.Location = new System.Drawing.Point(14, 117); checkBoxFuelTank.Location = new System.Drawing.Point(16, 135);
this.checkBoxFuelTank.Name = "checkBoxFuelTank"; checkBoxFuelTank.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.checkBoxFuelTank.Size = new System.Drawing.Size(70, 17); checkBoxFuelTank.Name = "checkBoxFuelTank";
this.checkBoxFuelTank.TabIndex = 7; checkBoxFuelTank.Size = new System.Drawing.Size(74, 19);
this.checkBoxFuelTank.Text = "Fuel tank"; checkBoxFuelTank.TabIndex = 7;
this.checkBoxFuelTank.UseVisualStyleBackColor = true; checkBoxFuelTank.Text = "Fuel tank";
checkBoxFuelTank.UseVisualStyleBackColor = true;
// //
// checkBoxSmokeTube // checkBoxSmokeTube
// //
this.checkBoxSmokeTube.AutoSize = true; checkBoxSmokeTube.AutoSize = true;
this.checkBoxSmokeTube.Location = new System.Drawing.Point(14, 97); checkBoxSmokeTube.Location = new System.Drawing.Point(16, 112);
this.checkBoxSmokeTube.Name = "checkBoxSmokeTube"; checkBoxSmokeTube.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.checkBoxSmokeTube.Size = new System.Drawing.Size(83, 17); checkBoxSmokeTube.Name = "checkBoxSmokeTube";
this.checkBoxSmokeTube.TabIndex = 6; checkBoxSmokeTube.Size = new System.Drawing.Size(89, 19);
this.checkBoxSmokeTube.Text = "Smoke tube"; checkBoxSmokeTube.TabIndex = 6;
this.checkBoxSmokeTube.UseVisualStyleBackColor = true; checkBoxSmokeTube.Text = "Smoke tube";
checkBoxSmokeTube.UseVisualStyleBackColor = true;
// //
// checkBoxLocoLine // checkBoxLocoLine
// //
this.checkBoxLocoLine.AutoSize = true; checkBoxLocoLine.AutoSize = true;
this.checkBoxLocoLine.Location = new System.Drawing.Point(14, 140); checkBoxLocoLine.Location = new System.Drawing.Point(16, 162);
this.checkBoxLocoLine.Name = "checkBoxLocoLine"; checkBoxLocoLine.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.checkBoxLocoLine.Size = new System.Drawing.Size(69, 17); checkBoxLocoLine.Name = "checkBoxLocoLine";
this.checkBoxLocoLine.TabIndex = 5; checkBoxLocoLine.Size = new System.Drawing.Size(74, 19);
this.checkBoxLocoLine.Text = "Loco line"; checkBoxLocoLine.TabIndex = 5;
this.checkBoxLocoLine.UseVisualStyleBackColor = true; checkBoxLocoLine.Text = "Loco line";
checkBoxLocoLine.UseVisualStyleBackColor = true;
// //
// numericWeight // numericWeight
// //
this.numericWeight.Location = new System.Drawing.Point(50, 51); numericWeight.Location = new System.Drawing.Point(58, 59);
this.numericWeight.Maximum = new decimal(new int[] { numericWeight.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
1000, numericWeight.Maximum = new decimal(new int[] { 1000, 0, 0, 0 });
0, numericWeight.Minimum = new decimal(new int[] { 100, 0, 0, 0 });
0, numericWeight.Name = "numericWeight";
0}); numericWeight.Size = new System.Drawing.Size(140, 23);
this.numericWeight.Minimum = new decimal(new int[] { numericWeight.TabIndex = 4;
100, numericWeight.Value = new decimal(new int[] { 100, 0, 0, 0 });
0,
0,
0});
this.numericWeight.Name = "numericWeight";
this.numericWeight.Size = new System.Drawing.Size(120, 20);
this.numericWeight.TabIndex = 4;
this.numericWeight.Value = new decimal(new int[] {
100,
0,
0,
0});
// //
// numericSpeed // numericSpeed
// //
this.numericSpeed.Location = new System.Drawing.Point(50, 23); numericSpeed.Location = new System.Drawing.Point(58, 27);
this.numericSpeed.Maximum = new decimal(new int[] { numericSpeed.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
1000, numericSpeed.Maximum = new decimal(new int[] { 1000, 0, 0, 0 });
0, numericSpeed.Minimum = new decimal(new int[] { 100, 0, 0, 0 });
0, numericSpeed.Name = "numericSpeed";
0}); numericSpeed.Size = new System.Drawing.Size(140, 23);
this.numericSpeed.Minimum = new decimal(new int[] { numericSpeed.TabIndex = 3;
100, numericSpeed.Value = new decimal(new int[] { 100, 0, 0, 0 });
0,
0,
0});
this.numericSpeed.Name = "numericSpeed";
this.numericSpeed.Size = new System.Drawing.Size(120, 20);
this.numericSpeed.TabIndex = 3;
this.numericSpeed.Value = new decimal(new int[] {
100,
0,
0,
0});
// //
// weightLabel // weightLabel
// //
this.weightLabel.AutoSize = true; weightLabel.AutoSize = true;
this.weightLabel.Location = new System.Drawing.Point(9, 51); weightLabel.Location = new System.Drawing.Point(10, 59);
this.weightLabel.Name = "weightLabel"; weightLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.weightLabel.Size = new System.Drawing.Size(35, 13); weightLabel.Name = "weightLabel";
this.weightLabel.TabIndex = 2; weightLabel.Size = new System.Drawing.Size(39, 15);
this.weightLabel.Text = "weigh"; weightLabel.TabIndex = 2;
weightLabel.Text = "weigh";
// //
// speedLabel // speedLabel
// //
this.speedLabel.AutoSize = true; speedLabel.AutoSize = true;
this.speedLabel.Location = new System.Drawing.Point(9, 25); speedLabel.Location = new System.Drawing.Point(10, 29);
this.speedLabel.Name = "speedLabel"; speedLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.speedLabel.Size = new System.Drawing.Size(36, 13); speedLabel.Name = "speedLabel";
this.speedLabel.TabIndex = 1; speedLabel.Size = new System.Drawing.Size(38, 15);
this.speedLabel.Text = "speed"; speedLabel.TabIndex = 1;
speedLabel.Text = "speed";
// //
// panel9 // panel9
// //
this.panel9.AllowDrop = true; panel9.AllowDrop = true;
this.panel9.Controls.Add(this.pictureBox); panel9.Controls.Add(pictureBox);
this.panel9.Location = new System.Drawing.Point(200, 75); panel9.Location = new System.Drawing.Point(233, 87);
this.panel9.Name = "panel9"; panel9.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.panel9.Size = new System.Drawing.Size(588, 338); panel9.Name = "panel9";
this.panel9.TabIndex = 11; panel9.Size = new System.Drawing.Size(686, 390);
this.panel9.DragDrop += new System.Windows.Forms.DragEventHandler(this.PanelObject_DragDrop); panel9.TabIndex = 11;
this.panel9.DragEnter += new System.Windows.Forms.DragEventHandler(this.PanelObject_DragEnter); panel9.DragDrop += PanelObject_DragDrop;
panel9.DragEnter += PanelObject_DragEnter;
// //
// pictureBox // pictureBox
// //
this.pictureBox.Location = new System.Drawing.Point(14, 5); pictureBox.Location = new System.Drawing.Point(16, 6);
this.pictureBox.Name = "pictureBox"; pictureBox.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.pictureBox.Size = new System.Drawing.Size(555, 330); pictureBox.Name = "pictureBox";
this.pictureBox.TabIndex = 0; pictureBox.Size = new System.Drawing.Size(648, 381);
this.pictureBox.TabStop = false; pictureBox.TabIndex = 0;
pictureBox.TabStop = false;
// //
// buttonAdd // buttonAdd
// //
this.buttonAdd.Location = new System.Drawing.Point(200, 421); buttonAdd.Location = new System.Drawing.Point(233, 486);
this.buttonAdd.Name = "buttonAdd"; buttonAdd.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.buttonAdd.Size = new System.Drawing.Size(75, 23); buttonAdd.Name = "buttonAdd";
this.buttonAdd.TabIndex = 12; buttonAdd.Size = new System.Drawing.Size(88, 27);
this.buttonAdd.Text = "Add"; buttonAdd.TabIndex = 12;
this.buttonAdd.UseVisualStyleBackColor = true; buttonAdd.Text = "Add";
this.buttonAdd.Click += new System.EventHandler(this.ButtonOk_Click); buttonAdd.UseVisualStyleBackColor = true;
buttonAdd.Click += ButtonOk_Click;
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Location = new System.Drawing.Point(515, 421); buttonCancel.Location = new System.Drawing.Point(601, 486);
this.buttonCancel.Name = "buttonCancel"; buttonCancel.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.buttonCancel.Size = new System.Drawing.Size(75, 23); buttonCancel.Name = "buttonCancel";
this.buttonCancel.TabIndex = 13; buttonCancel.Size = new System.Drawing.Size(88, 27);
this.buttonCancel.Text = "Cancel"; buttonCancel.TabIndex = 13;
this.buttonCancel.UseVisualStyleBackColor = true; buttonCancel.Text = "Cancel";
buttonCancel.UseVisualStyleBackColor = true;
// //
// labelColor // labelColor
// //
this.labelColor.AllowDrop = true; labelColor.AllowDrop = true;
this.labelColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; labelColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.labelColor.Location = new System.Drawing.Point(200, 25); labelColor.Location = new System.Drawing.Point(233, 29);
this.labelColor.Name = "labelColor"; labelColor.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelColor.Size = new System.Drawing.Size(100, 23); labelColor.Name = "labelColor";
this.labelColor.TabIndex = 14; labelColor.Size = new System.Drawing.Size(116, 26);
this.labelColor.Text = "Color"; labelColor.TabIndex = 14;
this.labelColor.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; labelColor.Text = "Color";
this.labelColor.DragDrop += new System.Windows.Forms.DragEventHandler(this.labelColor_DragDrop); labelColor.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.labelColor.DragEnter += new System.Windows.Forms.DragEventHandler(this.labelColor_DragEnter); labelColor.DragDrop += labelColor_DragDrop;
labelColor.DragEnter += labelColor_DragEnter;
// //
// labelAdditionalColor // labelAdditionalColor
// //
this.labelAdditionalColor.AllowDrop = true; labelAdditionalColor.AllowDrop = true;
this.labelAdditionalColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; labelAdditionalColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.labelAdditionalColor.Location = new System.Drawing.Point(515, 24); labelAdditionalColor.Location = new System.Drawing.Point(601, 28);
this.labelAdditionalColor.Name = "labelAdditionalColor"; labelAdditionalColor.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelAdditionalColor.Size = new System.Drawing.Size(100, 23); labelAdditionalColor.Name = "labelAdditionalColor";
this.labelAdditionalColor.TabIndex = 15; labelAdditionalColor.Size = new System.Drawing.Size(116, 26);
this.labelAdditionalColor.Text = "Additional color"; labelAdditionalColor.TabIndex = 15;
this.labelAdditionalColor.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; labelAdditionalColor.Text = "Additional color";
this.labelAdditionalColor.DragDrop += new System.Windows.Forms.DragEventHandler(this.labelColor_DragDrop); labelAdditionalColor.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.labelAdditionalColor.DragEnter += new System.Windows.Forms.DragEventHandler(this.labelColor_DragEnter); labelAdditionalColor.DragDrop += labelColor_DragDrop;
labelAdditionalColor.DragEnter += labelColor_DragEnter;
// //
// FormTrainConfig // FormTrainConfig
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 484); ClientSize = new System.Drawing.Size(933, 558);
this.Controls.Add(this.labelAdditionalColor); Controls.Add(labelAdditionalColor);
this.Controls.Add(this.labelColor); Controls.Add(labelColor);
this.Controls.Add(this.buttonCancel); Controls.Add(buttonCancel);
this.Controls.Add(this.buttonAdd); Controls.Add(buttonAdd);
this.Controls.Add(this.panel9); Controls.Add(panel9);
this.Controls.Add(this.ParamsGroup); Controls.Add(ParamsGroup);
this.Name = "FormTrainConfig"; Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.Text = "FormTrainConfig"; Name = "FormTrainConfig";
this.ParamsGroup.ResumeLayout(false); Text = "FormTrainConfig";
this.ParamsGroup.PerformLayout(); ParamsGroup.ResumeLayout(false);
this.groupBoxColors.ResumeLayout(false); ParamsGroup.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.numericWeight)).EndInit(); groupBoxColors.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.numericSpeed)).EndInit(); ((System.ComponentModel.ISupportInitialize)numericWeight).EndInit();
this.panel9.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)numericSpeed).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox)).EndInit(); panel9.ResumeLayout(false);
this.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)pictureBox).EndInit();
ResumeLayout(false);
} }
#endregion #endregion

View File

@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<root> <root>
<!-- <!--
Microsoft ResX Schema Microsoft ResX Schema
Version 2.0 Version 2.0
The primary goals of this format is to allow a simple XML format The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes various data types are done through the TypeConverter classes
associated with the data types. associated with the data types.
Example: Example:
... ado.net/XML headers & schema ... ... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader> <resheader name="version">2.0</resheader>
@ -26,36 +26,36 @@
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment> <comment>This is a comment</comment>
</data> </data>
There are any number of "resheader" rows that contain simple There are any number of "resheader" rows that contain simple
name/value pairs. name/value pairs.
Each data row contains a name, and value. The row also contains a Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture. text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the Classes that don't support this are serialized and stored with the
mimetype set. mimetype set.
The mimetype is used for serialized objects, and tells the The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly: extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below. read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64 mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64 mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64 mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter : using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
--> -->

View File

@ -1,132 +1,13 @@
<?xml version="1.0" encoding="utf-8"?> <Project Sdk="Microsoft.NET.Sdk">
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <TargetFramework>net7.0-windows</TargetFramework>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{9F9C9603-3EF7-403E-A895-04EA0CBC5586}</ProjectGuid>
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
<RootNamespace>Laba1Loco</RootNamespace> <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<AssemblyName>Laba1Loco</AssemblyName> <UseWindowsForms>true</UseWindowsForms>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> <ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="System" /> <PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<Reference Include="System.Core" /> <PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Compile Include="AbstractStrategy.cs" />
<Compile Include="FormTrainCollection.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FormTrainCollection.Designer.cs">
<DependentUpon>FormTrainCollection.cs</DependentUpon>
</Compile>
<Compile Include="FormTrainConfig.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FormTrainConfig.Designer.cs">
<DependentUpon>FormTrainConfig.cs</DependentUpon>
</Compile>
<Compile Include="TrainsGenericCollection.cs" />
<Compile Include="Direction.cs" />
<Compile Include="DrawingLoco.cs" />
<Compile Include="DrawingTrain.cs" />
<Compile Include="DrawningObjectTrain.cs" />
<Compile Include="EntityLoco.cs" />
<Compile Include="EntityTrain.cs" />
<Compile Include="FormLocomotive.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FormLocomotive.Designer.cs">
<DependentUpon>FormLocomotive.cs</DependentUpon>
</Compile>
<Compile Include="IMoveableObject.cs" />
<Compile Include="MoveToBorder.cs" />
<Compile Include="MoveToCenter.cs" />
<Compile Include="ObjectParameters.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SetGeneric.cs" />
<Compile Include="Status.cs" />
<Compile Include="TrainsGenericStorage.cs" />
<EmbeddedResource Include="FormLocomotive.resx">
<DependentUpon>FormLocomotive.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FormTrainCollection.resx">
<DependentUpon>FormTrainCollection.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FormTrainConfig.resx">
<DependentUpon>FormTrainConfig.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<None Include="arow340x259.png" />
</ItemGroup>
<ItemGroup>
<None Include="arowDown340x259.png" />
</ItemGroup>
<ItemGroup>
<None Include="arowL340x259.png" />
</ItemGroup>
<ItemGroup>
<None Include="arowR340x259.png" />
</ItemGroup>
<ItemGroup>
<None Include="arowUp340x259.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> </Project>

View File

@ -1,36 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Общие сведения об этой сборке предоставляются следующим набором
// набора атрибутов. Измените значения этих атрибутов для изменения сведений,
// связанных со сборкой.
[assembly: AssemblyTitle("Laba1Loco")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Laba1Loco")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми
// для компонентов COM. Если необходимо обратиться к типу в этой сборке через
// COM, следует установить атрибут ComVisible в TRUE для этого типа.
[assembly: ComVisible(false)]
// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM
[assembly: Guid("9f9c9603-3ef7-403e-a895-04ea0cbc5586")]
// Сведения о версии сборки состоят из указанных ниже четырех значений:
//
// Основной номер версии
// Дополнительный номер версии
// Номер сборки
// Редакция
//
// Можно задать все значения или принять номера сборки и редакции по умолчанию
// используя "*", как показано ниже:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -1,28 +1,24 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // Этот код создан программой.
// Runtime Version:4.0.30319.42000 // Исполняемая версия:4.0.30319.42000
// //
// Changes to this file may cause incorrect behavior and will be lost if // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
// the code is regenerated. // повторной генерации кода.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace Laba1Loco.Properties namespace Laba1Loco.Properties {
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.8.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default public static Settings Default {
{ get {
get
{
return defaultInstance; return defaultInstance;
} }
} }