254 lines
9.9 KiB
C#
254 lines
9.9 KiB
C#
|
namespace FoodOrdersView
|
|||
|
{
|
|||
|
partial class FormDish
|
|||
|
{
|
|||
|
/// <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()
|
|||
|
{
|
|||
|
buttonCancel = new Button();
|
|||
|
buttonSave = new Button();
|
|||
|
textBoxName = new TextBox();
|
|||
|
labelName = new Label();
|
|||
|
textBoxPrice = new TextBox();
|
|||
|
labelPrice = new Label();
|
|||
|
groupBoxComponents = new GroupBox();
|
|||
|
buttonUpd = new Button();
|
|||
|
buttonDel = new Button();
|
|||
|
buttonEdit = new Button();
|
|||
|
buttonAdd = new Button();
|
|||
|
dataGridView = new DataGridView();
|
|||
|
ColumnId = new DataGridViewTextBoxColumn();
|
|||
|
ColumnName = new DataGridViewTextBoxColumn();
|
|||
|
ColumnCount = new DataGridViewTextBoxColumn();
|
|||
|
groupBoxComponents.SuspendLayout();
|
|||
|
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
|
|||
|
SuspendLayout();
|
|||
|
//
|
|||
|
// buttonCancel
|
|||
|
//
|
|||
|
buttonCancel.Location = new Point(520, 483);
|
|||
|
buttonCancel.Margin = new Padding(5, 4, 5, 4);
|
|||
|
buttonCancel.Name = "buttonCancel";
|
|||
|
buttonCancel.Size = new Size(101, 36);
|
|||
|
buttonCancel.TabIndex = 6;
|
|||
|
buttonCancel.Text = "Отмена";
|
|||
|
buttonCancel.UseVisualStyleBackColor = true;
|
|||
|
buttonCancel.Click += ButtonCancel_Click;
|
|||
|
//
|
|||
|
// buttonSave
|
|||
|
//
|
|||
|
buttonSave.Location = new Point(411, 483);
|
|||
|
buttonSave.Margin = new Padding(5, 4, 5, 4);
|
|||
|
buttonSave.Name = "buttonSave";
|
|||
|
buttonSave.Size = new Size(101, 36);
|
|||
|
buttonSave.TabIndex = 5;
|
|||
|
buttonSave.Text = "Сохранить";
|
|||
|
buttonSave.UseVisualStyleBackColor = true;
|
|||
|
buttonSave.Click += ButtonSave_Click;
|
|||
|
//
|
|||
|
// textBoxName
|
|||
|
//
|
|||
|
textBoxName.Location = new Point(105, 9);
|
|||
|
textBoxName.Margin = new Padding(5, 4, 5, 4);
|
|||
|
textBoxName.Name = "textBoxName";
|
|||
|
textBoxName.Size = new Size(287, 27);
|
|||
|
textBoxName.TabIndex = 1;
|
|||
|
//
|
|||
|
// labelName
|
|||
|
//
|
|||
|
labelName.AutoSize = true;
|
|||
|
labelName.Location = new Point(16, 13);
|
|||
|
labelName.Margin = new Padding(5, 0, 5, 0);
|
|||
|
labelName.Name = "labelName";
|
|||
|
labelName.Size = new Size(84, 20);
|
|||
|
labelName.TabIndex = 0;
|
|||
|
labelName.Text = "Название :";
|
|||
|
//
|
|||
|
// textBoxPrice
|
|||
|
//
|
|||
|
textBoxPrice.Enabled = false;
|
|||
|
textBoxPrice.Location = new Point(105, 49);
|
|||
|
textBoxPrice.Margin = new Padding(5, 4, 5, 4);
|
|||
|
textBoxPrice.Name = "textBoxPrice";
|
|||
|
textBoxPrice.Size = new Size(167, 27);
|
|||
|
textBoxPrice.TabIndex = 3;
|
|||
|
//
|
|||
|
// labelPrice
|
|||
|
//
|
|||
|
labelPrice.AutoSize = true;
|
|||
|
labelPrice.Location = new Point(16, 53);
|
|||
|
labelPrice.Margin = new Padding(5, 0, 5, 0);
|
|||
|
labelPrice.Name = "labelPrice";
|
|||
|
labelPrice.Size = new Size(90, 20);
|
|||
|
labelPrice.TabIndex = 2;
|
|||
|
labelPrice.Text = "Стоимость :";
|
|||
|
//
|
|||
|
// groupBoxComponents
|
|||
|
//
|
|||
|
groupBoxComponents.Controls.Add(buttonUpd);
|
|||
|
groupBoxComponents.Controls.Add(buttonDel);
|
|||
|
groupBoxComponents.Controls.Add(buttonEdit);
|
|||
|
groupBoxComponents.Controls.Add(buttonAdd);
|
|||
|
groupBoxComponents.Controls.Add(dataGridView);
|
|||
|
groupBoxComponents.Location = new Point(16, 89);
|
|||
|
groupBoxComponents.Margin = new Padding(5, 4, 5, 4);
|
|||
|
groupBoxComponents.Name = "groupBoxComponents";
|
|||
|
groupBoxComponents.Padding = new Padding(5, 4, 5, 4);
|
|||
|
groupBoxComponents.Size = new Size(638, 384);
|
|||
|
groupBoxComponents.TabIndex = 4;
|
|||
|
groupBoxComponents.TabStop = false;
|
|||
|
groupBoxComponents.Text = "Компоненты";
|
|||
|
//
|
|||
|
// buttonUpd
|
|||
|
//
|
|||
|
buttonUpd.Location = new Point(504, 228);
|
|||
|
buttonUpd.Margin = new Padding(5, 4, 5, 4);
|
|||
|
buttonUpd.Name = "buttonUpd";
|
|||
|
buttonUpd.Size = new Size(101, 36);
|
|||
|
buttonUpd.TabIndex = 4;
|
|||
|
buttonUpd.Text = "Обновить";
|
|||
|
buttonUpd.UseVisualStyleBackColor = true;
|
|||
|
buttonUpd.Click += ButtonUpd_Click;
|
|||
|
//
|
|||
|
// buttonDel
|
|||
|
//
|
|||
|
buttonDel.Location = new Point(504, 164);
|
|||
|
buttonDel.Margin = new Padding(5, 4, 5, 4);
|
|||
|
buttonDel.Name = "buttonDel";
|
|||
|
buttonDel.Size = new Size(101, 36);
|
|||
|
buttonDel.TabIndex = 3;
|
|||
|
buttonDel.Text = "Удалить";
|
|||
|
buttonDel.UseVisualStyleBackColor = true;
|
|||
|
buttonDel.Click += ButtonDel_Click;
|
|||
|
//
|
|||
|
// buttonEdit
|
|||
|
//
|
|||
|
buttonEdit.Location = new Point(504, 101);
|
|||
|
buttonEdit.Margin = new Padding(5, 4, 5, 4);
|
|||
|
buttonEdit.Name = "buttonEdit";
|
|||
|
buttonEdit.Size = new Size(101, 36);
|
|||
|
buttonEdit.TabIndex = 2;
|
|||
|
buttonEdit.Text = "Изменить";
|
|||
|
buttonEdit.UseVisualStyleBackColor = true;
|
|||
|
buttonEdit.Click += ButtonEdit_Click;
|
|||
|
//
|
|||
|
// buttonAdd
|
|||
|
//
|
|||
|
buttonAdd.Location = new Point(504, 43);
|
|||
|
buttonAdd.Margin = new Padding(5, 4, 5, 4);
|
|||
|
buttonAdd.Name = "buttonAdd";
|
|||
|
buttonAdd.Size = new Size(101, 36);
|
|||
|
buttonAdd.TabIndex = 1;
|
|||
|
buttonAdd.Text = "Добавить";
|
|||
|
buttonAdd.UseVisualStyleBackColor = true;
|
|||
|
buttonAdd.Click += ButtonAdd_Click;
|
|||
|
//
|
|||
|
// dataGridView
|
|||
|
//
|
|||
|
dataGridView.AllowUserToAddRows = false;
|
|||
|
dataGridView.AllowUserToDeleteRows = false;
|
|||
|
dataGridView.BackgroundColor = SystemColors.ControlLightLight;
|
|||
|
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|||
|
dataGridView.Columns.AddRange(new DataGridViewColumn[] { ColumnId, ColumnName, ColumnCount });
|
|||
|
dataGridView.Dock = DockStyle.Left;
|
|||
|
dataGridView.Location = new Point(5, 24);
|
|||
|
dataGridView.Margin = new Padding(5, 4, 5, 4);
|
|||
|
dataGridView.MultiSelect = false;
|
|||
|
dataGridView.Name = "dataGridView";
|
|||
|
dataGridView.ReadOnly = true;
|
|||
|
dataGridView.RowHeadersVisible = false;
|
|||
|
dataGridView.RowHeadersWidth = 51;
|
|||
|
dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
|||
|
dataGridView.Size = new Size(466, 356);
|
|||
|
dataGridView.TabIndex = 0;
|
|||
|
//
|
|||
|
// ColumnId
|
|||
|
//
|
|||
|
ColumnId.HeaderText = "Id";
|
|||
|
ColumnId.MinimumWidth = 6;
|
|||
|
ColumnId.Name = "ColumnId";
|
|||
|
ColumnId.ReadOnly = true;
|
|||
|
ColumnId.Visible = false;
|
|||
|
ColumnId.Width = 125;
|
|||
|
//
|
|||
|
// ColumnName
|
|||
|
//
|
|||
|
ColumnName.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
|||
|
ColumnName.HeaderText = "Компонент";
|
|||
|
ColumnName.MinimumWidth = 6;
|
|||
|
ColumnName.Name = "ColumnName";
|
|||
|
ColumnName.ReadOnly = true;
|
|||
|
//
|
|||
|
// ColumnCount
|
|||
|
//
|
|||
|
ColumnCount.HeaderText = "Количество";
|
|||
|
ColumnCount.MinimumWidth = 6;
|
|||
|
ColumnCount.Name = "ColumnCount";
|
|||
|
ColumnCount.ReadOnly = true;
|
|||
|
ColumnCount.Width = 125;
|
|||
|
//
|
|||
|
// FormFood
|
|||
|
//
|
|||
|
AutoScaleDimensions = new SizeF(8F, 20F);
|
|||
|
AutoScaleMode = AutoScaleMode.Font;
|
|||
|
ClientSize = new Size(670, 536);
|
|||
|
Controls.Add(groupBoxComponents);
|
|||
|
Controls.Add(textBoxPrice);
|
|||
|
Controls.Add(labelPrice);
|
|||
|
Controls.Add(buttonCancel);
|
|||
|
Controls.Add(buttonSave);
|
|||
|
Controls.Add(textBoxName);
|
|||
|
Controls.Add(labelName);
|
|||
|
Margin = new Padding(5, 4, 5, 4);
|
|||
|
Name = "FormFood";
|
|||
|
StartPosition = FormStartPosition.CenterScreen;
|
|||
|
Text = "Блюдо";
|
|||
|
Load += FormFood_Load;
|
|||
|
groupBoxComponents.ResumeLayout(false);
|
|||
|
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
|||
|
ResumeLayout(false);
|
|||
|
PerformLayout();
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
private Button buttonCancel;
|
|||
|
private Button buttonSave;
|
|||
|
private TextBox textBoxName;
|
|||
|
private Label labelName;
|
|||
|
private TextBox textBoxPrice;
|
|||
|
private Label labelPrice;
|
|||
|
private GroupBox groupBoxComponents;
|
|||
|
private Button buttonUpd;
|
|||
|
private Button buttonDel;
|
|||
|
private Button buttonEdit;
|
|||
|
private Button buttonAdd;
|
|||
|
private DataGridView dataGridView;
|
|||
|
private DataGridViewTextBoxColumn ColumnId;
|
|||
|
private DataGridViewTextBoxColumn ColumnName;
|
|||
|
private DataGridViewTextBoxColumn ColumnCount;
|
|||
|
}
|
|||
|
}
|