Фикс поля цены

This commit is contained in:
Данила 2023-03-24 19:22:02 +04:00
parent 8e281e2626
commit 95f3d35609
2 changed files with 23 additions and 31 deletions

View File

@ -33,6 +33,8 @@
this.FoodNameTextBox = new System.Windows.Forms.TextBox(); this.FoodNameTextBox = new System.Windows.Forms.TextBox();
this.PriceTextBox = new System.Windows.Forms.TextBox(); this.PriceTextBox = new System.Windows.Forms.TextBox();
this.ComponentsGroupBox = new System.Windows.Forms.GroupBox(); this.ComponentsGroupBox = new System.Windows.Forms.GroupBox();
this.ButtonCancel = new System.Windows.Forms.Button();
this.SaveButton = new System.Windows.Forms.Button();
this.DeleteButton = new System.Windows.Forms.Button(); this.DeleteButton = new System.Windows.Forms.Button();
this.UpdateButton = new System.Windows.Forms.Button(); this.UpdateButton = new System.Windows.Forms.Button();
this.ChangeButton = new System.Windows.Forms.Button(); this.ChangeButton = new System.Windows.Forms.Button();
@ -41,8 +43,6 @@
this.ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ComponentNameField = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ComponentNameField = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.CountField = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.CountField = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.SaveButton = new System.Windows.Forms.Button();
this.ButtonCancel = new System.Windows.Forms.Button();
this.ComponentsGroupBox.SuspendLayout(); this.ComponentsGroupBox.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
@ -74,6 +74,7 @@
// //
// PriceTextBox // PriceTextBox
// //
this.PriceTextBox.Enabled = false;
this.PriceTextBox.Location = new System.Drawing.Point(83, 44); this.PriceTextBox.Location = new System.Drawing.Point(83, 44);
this.PriceTextBox.Name = "PriceTextBox"; this.PriceTextBox.Name = "PriceTextBox";
this.PriceTextBox.Size = new System.Drawing.Size(250, 23); this.PriceTextBox.Size = new System.Drawing.Size(250, 23);
@ -95,6 +96,26 @@
this.ComponentsGroupBox.TabStop = false; this.ComponentsGroupBox.TabStop = false;
this.ComponentsGroupBox.Text = "Компоненты"; this.ComponentsGroupBox.Text = "Компоненты";
// //
// ButtonCancel
//
this.ButtonCancel.Location = new System.Drawing.Point(573, 321);
this.ButtonCancel.Name = "ButtonCancel";
this.ButtonCancel.Size = new System.Drawing.Size(98, 23);
this.ButtonCancel.TabIndex = 6;
this.ButtonCancel.Text = "Отмена";
this.ButtonCancel.UseVisualStyleBackColor = true;
this.ButtonCancel.Click += new System.EventHandler(this.ButtonCancel_Click);
//
// SaveButton
//
this.SaveButton.Location = new System.Drawing.Point(469, 321);
this.SaveButton.Name = "SaveButton";
this.SaveButton.Size = new System.Drawing.Size(98, 23);
this.SaveButton.TabIndex = 5;
this.SaveButton.Text = "Сохранить";
this.SaveButton.UseVisualStyleBackColor = true;
this.SaveButton.Click += new System.EventHandler(this.SaveButton_Click);
//
// DeleteButton // DeleteButton
// //
this.DeleteButton.Location = new System.Drawing.Point(521, 137); this.DeleteButton.Location = new System.Drawing.Point(521, 137);
@ -165,26 +186,6 @@
this.CountField.HeaderText = "Количество"; this.CountField.HeaderText = "Количество";
this.CountField.Name = "CountField"; this.CountField.Name = "CountField";
// //
// SaveButton
//
this.SaveButton.Location = new System.Drawing.Point(469, 321);
this.SaveButton.Name = "SaveButton";
this.SaveButton.Size = new System.Drawing.Size(98, 23);
this.SaveButton.TabIndex = 5;
this.SaveButton.Text = "Сохранить";
this.SaveButton.UseVisualStyleBackColor = true;
this.SaveButton.Click += new System.EventHandler(this.SaveButton_Click);
//
// ButtonCancel
//
this.ButtonCancel.Location = new System.Drawing.Point(573, 321);
this.ButtonCancel.Name = "ButtonCancel";
this.ButtonCancel.Size = new System.Drawing.Size(98, 23);
this.ButtonCancel.TabIndex = 6;
this.ButtonCancel.Text = "Отмена";
this.ButtonCancel.UseVisualStyleBackColor = true;
this.ButtonCancel.Click += new System.EventHandler(this.ButtonCancel_Click);
//
// FormFood // FormFood
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);

View File

@ -66,13 +66,4 @@
<metadata name="CountField.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="CountField.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<metadata name="ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ComponentNameField.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CountField.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root> </root>