From 4db70b6db92887075935821dda79969accba35d2 Mon Sep 17 00:00:00 2001 From: goblinrf Date: Thu, 19 Oct 2023 21:57:34 +0300 Subject: [PATCH] YES --- AirFighter/AirplaneGenericCollection.cs | 2 +- AirFighter/FormAirplaneCollection.Designer.cs | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/AirFighter/AirplaneGenericCollection.cs b/AirFighter/AirplaneGenericCollection.cs index 3b6b40c..265f7ea 100644 --- a/AirFighter/AirplaneGenericCollection.cs +++ b/AirFighter/AirplaneGenericCollection.cs @@ -84,7 +84,7 @@ pos) if (airplane != null) { int inRow = _pictureWidth / _placeSizeWidth; - airplane.SetPosition(_pictureWidth - _placeSizeWidth - (i % inRow * _placeSizeWidth), (_collection.Count / inRow - 1 - i / inRow) * _placeSizeHeight + (_placeSizeHeight - _placeSizeHeight * 125 / 1000) / 2); + airplane.SetPosition(_pictureWidth - _placeSizeWidth - (i % inRow * _placeSizeWidth) - _placeSizeWidth /10 * 2 , (_collection.Count / inRow - 1 - i / inRow) * _placeSizeHeight + (_placeSizeHeight - _placeSizeHeight * 170 / 1000) / 2); airplane.DrawTransport(g); c++; diff --git a/AirFighter/FormAirplaneCollection.Designer.cs b/AirFighter/FormAirplaneCollection.Designer.cs index 610e73c..2d4653f 100644 --- a/AirFighter/FormAirplaneCollection.Designer.cs +++ b/AirFighter/FormAirplaneCollection.Designer.cs @@ -44,23 +44,23 @@ this.toolGroupBox.Controls.Add(this.updateCollectionButton); this.toolGroupBox.Controls.Add(this.deleteAirplaneButton); this.toolGroupBox.Controls.Add(this.addAirplaneButton); - this.toolGroupBox.Location = new System.Drawing.Point(688, 12); + this.toolGroupBox.Location = new System.Drawing.Point(716, 12); this.toolGroupBox.Name = "toolGroupBox"; - this.toolGroupBox.Size = new System.Drawing.Size(251, 426); + this.toolGroupBox.Size = new System.Drawing.Size(223, 426); this.toolGroupBox.TabIndex = 0; this.toolGroupBox.TabStop = false; this.toolGroupBox.Text = "Инструменты"; // // maskedTextBox // - this.maskedTextBox.Location = new System.Drawing.Point(20, 72); + this.maskedTextBox.Location = new System.Drawing.Point(8, 72); this.maskedTextBox.Name = "maskedTextBox"; this.maskedTextBox.Size = new System.Drawing.Size(125, 27); this.maskedTextBox.TabIndex = 4; // // updateCollectionButton // - this.updateCollectionButton.Location = new System.Drawing.Point(20, 151); + this.updateCollectionButton.Location = new System.Drawing.Point(6, 151); this.updateCollectionButton.Name = "updateCollectionButton"; this.updateCollectionButton.Size = new System.Drawing.Size(215, 40); this.updateCollectionButton.TabIndex = 3; @@ -70,7 +70,7 @@ // // deleteAirplaneButton // - this.deleteAirplaneButton.Location = new System.Drawing.Point(20, 105); + this.deleteAirplaneButton.Location = new System.Drawing.Point(6, 105); this.deleteAirplaneButton.Name = "deleteAirplaneButton"; this.deleteAirplaneButton.Size = new System.Drawing.Size(215, 40); this.deleteAirplaneButton.TabIndex = 2; @@ -80,7 +80,7 @@ // // addAirplaneButton // - this.addAirplaneButton.Location = new System.Drawing.Point(20, 26); + this.addAirplaneButton.Location = new System.Drawing.Point(8, 26); this.addAirplaneButton.Name = "addAirplaneButton"; this.addAirplaneButton.Size = new System.Drawing.Size(215, 40); this.addAirplaneButton.TabIndex = 0; @@ -92,7 +92,7 @@ // this.pictureBoxCollection.Location = new System.Drawing.Point(12, 12); this.pictureBoxCollection.Name = "pictureBoxCollection"; - this.pictureBoxCollection.Size = new System.Drawing.Size(670, 426); + this.pictureBoxCollection.Size = new System.Drawing.Size(698, 426); this.pictureBoxCollection.TabIndex = 1; this.pictureBoxCollection.TabStop = false; //