2024-02-08 17:48:08 +04:00
|
|
|
|
namespace PizzeriaView
|
|
|
|
|
{
|
|
|
|
|
partial class FormPizza
|
|
|
|
|
{
|
|
|
|
|
/// <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()
|
|
|
|
|
{
|
|
|
|
|
textBoxName = new TextBox();
|
|
|
|
|
textBoxPrice = new TextBox();
|
|
|
|
|
labelName = new Label();
|
|
|
|
|
labelCost = new Label();
|
|
|
|
|
dataGridView = new DataGridView();
|
2024-02-12 10:03:12 +04:00
|
|
|
|
ColumnId = new DataGridViewTextBoxColumn();
|
|
|
|
|
ColumnComponent = new DataGridViewTextBoxColumn();
|
|
|
|
|
ColumnCount = new DataGridViewTextBoxColumn();
|
2024-02-08 17:48:08 +04:00
|
|
|
|
buttonAdd = new Button();
|
|
|
|
|
buttonEdit = new Button();
|
|
|
|
|
buttonDelete = new Button();
|
|
|
|
|
buttonUpdate = new Button();
|
|
|
|
|
buttonSave = new Button();
|
|
|
|
|
buttonCancel = new Button();
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
|
|
|
|
|
SuspendLayout();
|
|
|
|
|
//
|
|
|
|
|
// textBoxName
|
|
|
|
|
//
|
2024-02-10 11:13:05 +04:00
|
|
|
|
textBoxName.Location = new Point(116, 23);
|
2024-02-08 17:48:08 +04:00
|
|
|
|
textBoxName.Name = "textBoxName";
|
|
|
|
|
textBoxName.Size = new Size(265, 31);
|
|
|
|
|
textBoxName.TabIndex = 0;
|
|
|
|
|
//
|
|
|
|
|
// textBoxPrice
|
|
|
|
|
//
|
2024-02-12 10:03:12 +04:00
|
|
|
|
textBoxPrice.Enabled = false;
|
2024-02-10 11:13:05 +04:00
|
|
|
|
textBoxPrice.Location = new Point(116, 67);
|
2024-02-08 17:48:08 +04:00
|
|
|
|
textBoxPrice.Name = "textBoxPrice";
|
|
|
|
|
textBoxPrice.Size = new Size(259, 31);
|
|
|
|
|
textBoxPrice.TabIndex = 1;
|
|
|
|
|
//
|
|
|
|
|
// labelName
|
|
|
|
|
//
|
|
|
|
|
labelName.AutoSize = true;
|
2024-02-10 11:13:05 +04:00
|
|
|
|
labelName.Location = new Point(12, 23);
|
2024-02-08 17:48:08 +04:00
|
|
|
|
labelName.Name = "labelName";
|
|
|
|
|
labelName.Size = new Size(90, 25);
|
|
|
|
|
labelName.TabIndex = 2;
|
|
|
|
|
labelName.Text = "Название";
|
|
|
|
|
//
|
|
|
|
|
// labelCost
|
|
|
|
|
//
|
|
|
|
|
labelCost.AutoSize = true;
|
2024-02-10 11:13:05 +04:00
|
|
|
|
labelCost.Location = new Point(12, 70);
|
2024-02-08 17:48:08 +04:00
|
|
|
|
labelCost.Name = "labelCost";
|
|
|
|
|
labelCost.Size = new Size(53, 25);
|
|
|
|
|
labelCost.TabIndex = 3;
|
|
|
|
|
labelCost.Text = "Цена";
|
|
|
|
|
//
|
|
|
|
|
// dataGridView
|
|
|
|
|
//
|
|
|
|
|
dataGridView.AllowUserToAddRows = false;
|
|
|
|
|
dataGridView.AllowUserToDeleteRows = false;
|
2024-02-10 11:13:05 +04:00
|
|
|
|
dataGridView.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
|
2024-02-08 17:48:08 +04:00
|
|
|
|
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|
|
|
|
dataGridView.Columns.AddRange(new DataGridViewColumn[] { ColumnId, ColumnComponent, ColumnCount });
|
|
|
|
|
dataGridView.Location = new Point(12, 117);
|
|
|
|
|
dataGridView.Name = "dataGridView";
|
|
|
|
|
dataGridView.ReadOnly = true;
|
|
|
|
|
dataGridView.RowHeadersWidth = 62;
|
|
|
|
|
dataGridView.RowTemplate.Height = 33;
|
|
|
|
|
dataGridView.Size = new Size(497, 335);
|
|
|
|
|
dataGridView.TabIndex = 4;
|
|
|
|
|
//
|
2024-02-12 10:03:12 +04:00
|
|
|
|
// ColumnId
|
|
|
|
|
//
|
|
|
|
|
ColumnId.HeaderText = "Id";
|
|
|
|
|
ColumnId.MinimumWidth = 8;
|
|
|
|
|
ColumnId.Name = "ColumnId";
|
|
|
|
|
ColumnId.ReadOnly = true;
|
|
|
|
|
ColumnId.Visible = false;
|
|
|
|
|
//
|
|
|
|
|
// ColumnComponent
|
|
|
|
|
//
|
|
|
|
|
ColumnComponent.HeaderText = "Ингредиент";
|
|
|
|
|
ColumnComponent.MinimumWidth = 6;
|
|
|
|
|
ColumnComponent.Name = "ColumnComponent";
|
|
|
|
|
ColumnComponent.ReadOnly = true;
|
|
|
|
|
//
|
|
|
|
|
// ColumnCount
|
|
|
|
|
//
|
|
|
|
|
ColumnCount.HeaderText = "Количество";
|
|
|
|
|
ColumnCount.MinimumWidth = 8;
|
|
|
|
|
ColumnCount.Name = "ColumnCount";
|
|
|
|
|
ColumnCount.ReadOnly = true;
|
|
|
|
|
//
|
2024-02-08 17:48:08 +04:00
|
|
|
|
// buttonAdd
|
|
|
|
|
//
|
2024-02-10 11:13:05 +04:00
|
|
|
|
buttonAdd.Location = new Point(587, 117);
|
2024-02-08 17:48:08 +04:00
|
|
|
|
buttonAdd.Name = "buttonAdd";
|
2024-02-10 11:13:05 +04:00
|
|
|
|
buttonAdd.Size = new Size(160, 52);
|
2024-02-08 17:48:08 +04:00
|
|
|
|
buttonAdd.TabIndex = 5;
|
|
|
|
|
buttonAdd.Text = "Добавить";
|
|
|
|
|
buttonAdd.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonAdd.Click += buttonAdd_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonEdit
|
|
|
|
|
//
|
2024-02-10 11:13:05 +04:00
|
|
|
|
buttonEdit.Location = new Point(587, 198);
|
2024-02-08 17:48:08 +04:00
|
|
|
|
buttonEdit.Name = "buttonEdit";
|
2024-02-10 11:13:05 +04:00
|
|
|
|
buttonEdit.Size = new Size(160, 51);
|
2024-02-08 17:48:08 +04:00
|
|
|
|
buttonEdit.TabIndex = 6;
|
|
|
|
|
buttonEdit.Text = "Изменить";
|
|
|
|
|
buttonEdit.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonEdit.Click += buttonEdit_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonDelete
|
|
|
|
|
//
|
2024-02-10 11:13:05 +04:00
|
|
|
|
buttonDelete.Location = new Point(587, 278);
|
2024-02-08 17:48:08 +04:00
|
|
|
|
buttonDelete.Name = "buttonDelete";
|
2024-02-10 11:13:05 +04:00
|
|
|
|
buttonDelete.Size = new Size(160, 51);
|
2024-02-08 17:48:08 +04:00
|
|
|
|
buttonDelete.TabIndex = 7;
|
|
|
|
|
buttonDelete.Text = "Удалить";
|
|
|
|
|
buttonDelete.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonDelete.Click += buttonDelete_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonUpdate
|
|
|
|
|
//
|
2024-02-10 11:13:05 +04:00
|
|
|
|
buttonUpdate.Location = new Point(587, 358);
|
2024-02-08 17:48:08 +04:00
|
|
|
|
buttonUpdate.Name = "buttonUpdate";
|
2024-02-10 11:13:05 +04:00
|
|
|
|
buttonUpdate.Size = new Size(160, 46);
|
2024-02-08 17:48:08 +04:00
|
|
|
|
buttonUpdate.TabIndex = 8;
|
|
|
|
|
buttonUpdate.Text = "Обновить";
|
|
|
|
|
buttonUpdate.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonUpdate.Click += buttonUpdate_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonSave
|
|
|
|
|
//
|
2024-02-10 11:13:05 +04:00
|
|
|
|
buttonSave.Location = new Point(534, 453);
|
2024-02-08 17:48:08 +04:00
|
|
|
|
buttonSave.Name = "buttonSave";
|
2024-02-10 11:13:05 +04:00
|
|
|
|
buttonSave.Size = new Size(115, 49);
|
2024-02-08 17:48:08 +04:00
|
|
|
|
buttonSave.TabIndex = 9;
|
|
|
|
|
buttonSave.Text = "Сохранить";
|
|
|
|
|
buttonSave.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonSave.Click += buttonSave_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonCancel
|
|
|
|
|
//
|
2024-02-10 11:13:05 +04:00
|
|
|
|
buttonCancel.Location = new Point(655, 453);
|
2024-02-08 17:48:08 +04:00
|
|
|
|
buttonCancel.Name = "buttonCancel";
|
2024-02-10 11:13:05 +04:00
|
|
|
|
buttonCancel.Size = new Size(105, 49);
|
2024-02-08 17:48:08 +04:00
|
|
|
|
buttonCancel.TabIndex = 10;
|
|
|
|
|
buttonCancel.Text = "Отмена";
|
|
|
|
|
buttonCancel.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonCancel.Click += buttonCancel_Click;
|
|
|
|
|
//
|
|
|
|
|
// FormPizza
|
|
|
|
|
//
|
|
|
|
|
AutoScaleDimensions = new SizeF(10F, 25F);
|
|
|
|
|
AutoScaleMode = AutoScaleMode.Font;
|
2024-02-10 11:13:05 +04:00
|
|
|
|
ClientSize = new Size(800, 533);
|
2024-02-08 17:48:08 +04:00
|
|
|
|
Controls.Add(buttonCancel);
|
|
|
|
|
Controls.Add(buttonSave);
|
|
|
|
|
Controls.Add(buttonUpdate);
|
|
|
|
|
Controls.Add(buttonDelete);
|
|
|
|
|
Controls.Add(buttonEdit);
|
|
|
|
|
Controls.Add(buttonAdd);
|
|
|
|
|
Controls.Add(dataGridView);
|
|
|
|
|
Controls.Add(labelCost);
|
|
|
|
|
Controls.Add(labelName);
|
|
|
|
|
Controls.Add(textBoxPrice);
|
|
|
|
|
Controls.Add(textBoxName);
|
|
|
|
|
Name = "FormPizza";
|
2024-02-10 11:13:05 +04:00
|
|
|
|
Text = "Пицца";
|
2024-02-08 17:48:08 +04:00
|
|
|
|
Load += FormPizza_Load;
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
|
|
|
|
ResumeLayout(false);
|
|
|
|
|
PerformLayout();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
private TextBox textBoxName;
|
|
|
|
|
private TextBox textBoxPrice;
|
|
|
|
|
private Label labelName;
|
|
|
|
|
private Label labelCost;
|
|
|
|
|
private DataGridView dataGridView;
|
|
|
|
|
private Button buttonAdd;
|
|
|
|
|
private Button buttonEdit;
|
|
|
|
|
private Button buttonDelete;
|
|
|
|
|
private Button buttonUpdate;
|
|
|
|
|
private Button buttonSave;
|
|
|
|
|
private Button buttonCancel;
|
|
|
|
|
private DataGridViewTextBoxColumn ColumnId;
|
|
|
|
|
private DataGridViewTextBoxColumn ColumnComponent;
|
|
|
|
|
private DataGridViewTextBoxColumn ColumnCount;
|
|
|
|
|
}
|
|
|
|
|
}
|