242 lines
9.3 KiB
C#
242 lines
9.3 KiB
C#
namespace DinerView
|
|
{
|
|
partial class FormSnack
|
|
{
|
|
/// <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()
|
|
{
|
|
labelName = new Label();
|
|
labelPrice = new Label();
|
|
textBoxName = new TextBox();
|
|
textBoxPrice = new TextBox();
|
|
groupBoxFoods = new GroupBox();
|
|
buttonUpdate = new Button();
|
|
buttonRemove = new Button();
|
|
buttonChange = new Button();
|
|
buttonAdd = new Button();
|
|
dataGridView = new DataGridView();
|
|
ColumnID = new DataGridViewTextBoxColumn();
|
|
ColumnFood = new DataGridViewTextBoxColumn();
|
|
ColumnCount = new DataGridViewTextBoxColumn();
|
|
buttonCancel = new Button();
|
|
buttonSave = new Button();
|
|
groupBoxFoods.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
|
|
SuspendLayout();
|
|
//
|
|
// labelName
|
|
//
|
|
labelName.AutoSize = true;
|
|
labelName.Location = new Point(12, 9);
|
|
labelName.Name = "labelName";
|
|
labelName.Size = new Size(62, 15);
|
|
labelName.TabIndex = 0;
|
|
labelName.Text = "Название:";
|
|
//
|
|
// labelPrice
|
|
//
|
|
labelPrice.AutoSize = true;
|
|
labelPrice.Location = new Point(12, 36);
|
|
labelPrice.Name = "labelPrice";
|
|
labelPrice.Size = new Size(70, 15);
|
|
labelPrice.TabIndex = 1;
|
|
labelPrice.Text = "Стоимость:";
|
|
//
|
|
// textBoxName
|
|
//
|
|
textBoxName.Location = new Point(85, 6);
|
|
textBoxName.Name = "textBoxName";
|
|
textBoxName.Size = new Size(367, 23);
|
|
textBoxName.TabIndex = 2;
|
|
//
|
|
// textBoxPrice
|
|
//
|
|
textBoxPrice.Enabled = false;
|
|
textBoxPrice.Location = new Point(85, 36);
|
|
textBoxPrice.Name = "textBoxPrice";
|
|
textBoxPrice.Size = new Size(367, 23);
|
|
textBoxPrice.TabIndex = 3;
|
|
//
|
|
// groupBoxFoods
|
|
//
|
|
groupBoxFoods.BackColor = SystemColors.ControlDark;
|
|
groupBoxFoods.Controls.Add(buttonUpdate);
|
|
groupBoxFoods.Controls.Add(buttonRemove);
|
|
groupBoxFoods.Controls.Add(buttonChange);
|
|
groupBoxFoods.Controls.Add(buttonAdd);
|
|
groupBoxFoods.Controls.Add(dataGridView);
|
|
groupBoxFoods.ForeColor = SystemColors.Control;
|
|
groupBoxFoods.Location = new Point(12, 65);
|
|
groupBoxFoods.Name = "groupBoxFoods";
|
|
groupBoxFoods.Size = new Size(657, 373);
|
|
groupBoxFoods.TabIndex = 4;
|
|
groupBoxFoods.TabStop = false;
|
|
groupBoxFoods.Text = "Используемые продукты";
|
|
//
|
|
// buttonUpdate
|
|
//
|
|
buttonUpdate.ForeColor = Color.Black;
|
|
buttonUpdate.Location = new Point(446, 148);
|
|
buttonUpdate.Name = "buttonUpdate";
|
|
buttonUpdate.Size = new Size(205, 37);
|
|
buttonUpdate.TabIndex = 4;
|
|
buttonUpdate.Text = "Обновить";
|
|
buttonUpdate.UseVisualStyleBackColor = true;
|
|
buttonUpdate.Click += buttonUpdate_Click;
|
|
//
|
|
// buttonRemove
|
|
//
|
|
buttonRemove.ForeColor = Color.Black;
|
|
buttonRemove.Location = new Point(446, 105);
|
|
buttonRemove.Name = "buttonRemove";
|
|
buttonRemove.Size = new Size(205, 37);
|
|
buttonRemove.TabIndex = 3;
|
|
buttonRemove.Text = "Удалить";
|
|
buttonRemove.UseVisualStyleBackColor = true;
|
|
buttonRemove.Click += buttonRemove_Click;
|
|
//
|
|
// buttonChange
|
|
//
|
|
buttonChange.ForeColor = Color.Black;
|
|
buttonChange.Location = new Point(446, 62);
|
|
buttonChange.Name = "buttonChange";
|
|
buttonChange.Size = new Size(205, 37);
|
|
buttonChange.TabIndex = 2;
|
|
buttonChange.Text = "Изменить";
|
|
buttonChange.UseVisualStyleBackColor = true;
|
|
buttonChange.Click += buttonChange_Click;
|
|
//
|
|
// buttonAdd
|
|
//
|
|
buttonAdd.ForeColor = Color.Black;
|
|
buttonAdd.Location = new Point(446, 19);
|
|
buttonAdd.Name = "buttonAdd";
|
|
buttonAdd.Size = new Size(205, 37);
|
|
buttonAdd.TabIndex = 1;
|
|
buttonAdd.Text = "Добавить";
|
|
buttonAdd.UseVisualStyleBackColor = true;
|
|
buttonAdd.Click += buttonAdd_Click;
|
|
//
|
|
// dataGridView
|
|
//
|
|
dataGridView.AllowUserToAddRows = false;
|
|
dataGridView.AllowUserToDeleteRows = false;
|
|
dataGridView.BackgroundColor = SystemColors.ButtonFace;
|
|
dataGridView.BorderStyle = BorderStyle.None;
|
|
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|
dataGridView.Columns.AddRange(new DataGridViewColumn[] { ColumnID, ColumnFood, ColumnCount });
|
|
dataGridView.Dock = DockStyle.Left;
|
|
dataGridView.Location = new Point(3, 19);
|
|
dataGridView.MultiSelect = false;
|
|
dataGridView.Name = "dataGridView";
|
|
dataGridView.ReadOnly = true;
|
|
dataGridView.RowHeadersVisible = false;
|
|
dataGridView.RowTemplate.DefaultCellStyle.ForeColor = Color.Black;
|
|
dataGridView.RowTemplate.Height = 22;
|
|
dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
|
dataGridView.Size = new Size(437, 351);
|
|
dataGridView.TabIndex = 0;
|
|
//
|
|
// ColumnID
|
|
//
|
|
ColumnID.HeaderText = "ID";
|
|
ColumnID.Name = "ColumnID";
|
|
ColumnID.ReadOnly = true;
|
|
ColumnID.Visible = false;
|
|
//
|
|
// ColumnFood
|
|
//
|
|
ColumnFood.HeaderText = "Продукт";
|
|
ColumnFood.Name = "ColumnFood";
|
|
ColumnFood.ReadOnly = true;
|
|
ColumnFood.Width = 337;
|
|
//
|
|
// ColumnCount
|
|
//
|
|
ColumnCount.HeaderText = "Количество";
|
|
ColumnCount.Name = "ColumnCount";
|
|
ColumnCount.ReadOnly = true;
|
|
//
|
|
// buttonCancel
|
|
//
|
|
buttonCancel.Location = new Point(587, 30);
|
|
buttonCancel.Name = "buttonCancel";
|
|
buttonCancel.Size = new Size(82, 27);
|
|
buttonCancel.TabIndex = 5;
|
|
buttonCancel.Text = "Отмена";
|
|
buttonCancel.UseVisualStyleBackColor = true;
|
|
buttonCancel.Click += buttonCancel_Click;
|
|
//
|
|
// buttonSave
|
|
//
|
|
buttonSave.Location = new Point(499, 30);
|
|
buttonSave.Name = "buttonSave";
|
|
buttonSave.Size = new Size(82, 27);
|
|
buttonSave.TabIndex = 6;
|
|
buttonSave.Text = "Сохранить";
|
|
buttonSave.UseVisualStyleBackColor = true;
|
|
buttonSave.Click += buttonSave_Click;
|
|
//
|
|
// FormSnack
|
|
//
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(681, 450);
|
|
Controls.Add(buttonSave);
|
|
Controls.Add(buttonCancel);
|
|
Controls.Add(groupBoxFoods);
|
|
Controls.Add(textBoxPrice);
|
|
Controls.Add(textBoxName);
|
|
Controls.Add(labelPrice);
|
|
Controls.Add(labelName);
|
|
Name = "FormSnack";
|
|
Text = "Снэки";
|
|
Load += FormSnack_Load;
|
|
groupBoxFoods.ResumeLayout(false);
|
|
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
|
ResumeLayout(false);
|
|
PerformLayout();
|
|
}
|
|
|
|
#endregion
|
|
|
|
private Label labelName;
|
|
private Label labelPrice;
|
|
private TextBox textBoxName;
|
|
private TextBox textBoxPrice;
|
|
private GroupBox groupBoxFoods;
|
|
private DataGridView dataGridView;
|
|
private Button buttonChange;
|
|
private Button buttonAdd;
|
|
private Button buttonUpdate;
|
|
private Button buttonRemove;
|
|
private Button buttonCancel;
|
|
private Button buttonSave;
|
|
private DataGridViewTextBoxColumn ColumnID;
|
|
private DataGridViewTextBoxColumn ColumnFood;
|
|
private DataGridViewTextBoxColumn ColumnCount;
|
|
}
|
|
} |