From a253a606bd434086d5e2412aec73a3f6e88458cd Mon Sep 17 00:00:00 2001 From: kaznacheeva Date: Wed, 8 May 2024 12:42:11 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BA=D0=BE=D0=BC=D0=B8=D0=B8=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FormShop.Designer.cs | 44 +++++++++---------- .../SoftwareInstallationView/FormShop.resx | 9 ---- 2 files changed, 22 insertions(+), 31 deletions(-) diff --git a/SoftwareInstallation/SoftwareInstallationView/FormShop.Designer.cs b/SoftwareInstallation/SoftwareInstallationView/FormShop.Designer.cs index 8244c1e..8570616 100644 --- a/SoftwareInstallation/SoftwareInstallationView/FormShop.Designer.cs +++ b/SoftwareInstallation/SoftwareInstallationView/FormShop.Designer.cs @@ -35,13 +35,13 @@ textBoxAddress = new TextBox(); openingDatePicker = new DateTimePicker(); dataGridView = new DataGridView(); - PackageName = new DataGridViewTextBoxColumn(); - Price = new DataGridViewTextBoxColumn(); - Count = new DataGridViewTextBoxColumn(); buttonSave = new Button(); buttonCancel = new Button(); labelNumeric = new Label(); numericUpDown = new NumericUpDown(); + Price = new DataGridViewTextBoxColumn(); + PackageName = new DataGridViewTextBoxColumn(); + Count = new DataGridViewTextBoxColumn(); ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit(); ((System.ComponentModel.ISupportInitialize)numericUpDown).BeginInit(); SuspendLayout(); @@ -97,27 +97,12 @@ // dataGridView // dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; - dataGridView.Columns.AddRange(new DataGridViewColumn[] { PackageName, Price, Count }); + dataGridView.Columns.AddRange(new DataGridViewColumn[] { Price, PackageName, Count }); dataGridView.Location = new Point(12, 128); dataGridView.Name = "dataGridView"; dataGridView.Size = new Size(601, 242); dataGridView.TabIndex = 6; // - // PackageName - // - PackageName.HeaderText = "Изделие"; - PackageName.Name = "PackageName"; - // - // Price - // - Price.HeaderText = "Цена"; - Price.Name = "Price"; - // - // Count - // - Count.HeaderText = "Количество"; - Count.Name = "Count"; - // // buttonSave // buttonSave.Location = new Point(384, 376); @@ -155,6 +140,21 @@ numericUpDown.Size = new Size(131, 23); numericUpDown.TabIndex = 13; // + // Price + // + Price.HeaderText = "Номер"; + Price.Name = "Price"; + // + // PackageName + // + PackageName.HeaderText = "Изделие"; + PackageName.Name = "PackageName"; + // + // Count + // + Count.HeaderText = "Количество"; + Count.Name = "Count"; + // // FormShop // AutoScaleDimensions = new SizeF(7F, 15F); @@ -191,10 +191,10 @@ private DataGridView dataGridView; private Button buttonSave; private Button buttonCancel; - private DataGridViewTextBoxColumn PackageName; - private DataGridViewTextBoxColumn Price; - private DataGridViewTextBoxColumn Count; private Label labelNumeric; private NumericUpDown numericUpDown; + private DataGridViewTextBoxColumn PackageName; + private DataGridViewTextBoxColumn Count; + private DataGridViewTextBoxColumn Price; } } \ No newline at end of file diff --git a/SoftwareInstallation/SoftwareInstallationView/FormShop.resx b/SoftwareInstallation/SoftwareInstallationView/FormShop.resx index 5389e21..75726ad 100644 --- a/SoftwareInstallation/SoftwareInstallationView/FormShop.resx +++ b/SoftwareInstallation/SoftwareInstallationView/FormShop.resx @@ -117,21 +117,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - True - True - - True - True - - True - True