249 lines
9.4 KiB
C#
249 lines
9.4 KiB
C#
namespace SushiBarView.Forms
|
|
{
|
|
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()
|
|
{
|
|
NameLabel = new Label();
|
|
PriceLabel = new Label();
|
|
NameTextBox = new TextBox();
|
|
PriceTextBox = new TextBox();
|
|
ComponentsGroupBox = new GroupBox();
|
|
RefreshButton = new Button();
|
|
DeleteButton = new Button();
|
|
UpdateButton = new Button();
|
|
AddButton = new Button();
|
|
DataGridView = new DataGridView();
|
|
IdColumn = new DataGridViewTextBoxColumn();
|
|
IngredientNameColumn = new DataGridViewTextBoxColumn();
|
|
CountColumn = new DataGridViewTextBoxColumn();
|
|
SaveButton = new Button();
|
|
CancelButton = new Button();
|
|
label1 = new Label();
|
|
CategoryTextBox = new TextBox();
|
|
ComponentsGroupBox.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)DataGridView).BeginInit();
|
|
SuspendLayout();
|
|
//
|
|
// NameLabel
|
|
//
|
|
NameLabel.AutoSize = true;
|
|
NameLabel.Location = new Point(12, 9);
|
|
NameLabel.Name = "NameLabel";
|
|
NameLabel.Size = new Size(59, 15);
|
|
NameLabel.TabIndex = 0;
|
|
NameLabel.Text = "Название";
|
|
//
|
|
// PriceLabel
|
|
//
|
|
PriceLabel.AutoSize = true;
|
|
PriceLabel.Location = new Point(12, 67);
|
|
PriceLabel.Name = "PriceLabel";
|
|
PriceLabel.Size = new Size(35, 15);
|
|
PriceLabel.TabIndex = 1;
|
|
PriceLabel.Text = "Цена";
|
|
//
|
|
// NameTextBox
|
|
//
|
|
NameTextBox.Location = new Point(81, 6);
|
|
NameTextBox.Name = "NameTextBox";
|
|
NameTextBox.Size = new Size(237, 23);
|
|
NameTextBox.TabIndex = 2;
|
|
//
|
|
// PriceTextBox
|
|
//
|
|
PriceTextBox.Location = new Point(81, 64);
|
|
PriceTextBox.Name = "PriceTextBox";
|
|
PriceTextBox.ReadOnly = true;
|
|
PriceTextBox.Size = new Size(100, 23);
|
|
PriceTextBox.TabIndex = 3;
|
|
//
|
|
// ComponentsGroupBox
|
|
//
|
|
ComponentsGroupBox.Controls.Add(RefreshButton);
|
|
ComponentsGroupBox.Controls.Add(DeleteButton);
|
|
ComponentsGroupBox.Controls.Add(UpdateButton);
|
|
ComponentsGroupBox.Controls.Add(AddButton);
|
|
ComponentsGroupBox.Controls.Add(DataGridView);
|
|
ComponentsGroupBox.Location = new Point(12, 95);
|
|
ComponentsGroupBox.Name = "ComponentsGroupBox";
|
|
ComponentsGroupBox.Size = new Size(582, 287);
|
|
ComponentsGroupBox.TabIndex = 4;
|
|
ComponentsGroupBox.TabStop = false;
|
|
ComponentsGroupBox.Text = "Компоненты";
|
|
//
|
|
// RefreshButton
|
|
//
|
|
RefreshButton.Location = new Point(464, 127);
|
|
RefreshButton.Name = "RefreshButton";
|
|
RefreshButton.Size = new Size(112, 29);
|
|
RefreshButton.TabIndex = 4;
|
|
RefreshButton.Text = "Обновить";
|
|
RefreshButton.UseVisualStyleBackColor = true;
|
|
RefreshButton.Click += RefreshButton_Click;
|
|
//
|
|
// DeleteButton
|
|
//
|
|
DeleteButton.Location = new Point(464, 92);
|
|
DeleteButton.Name = "DeleteButton";
|
|
DeleteButton.Size = new Size(112, 29);
|
|
DeleteButton.TabIndex = 3;
|
|
DeleteButton.Text = "Удалить";
|
|
DeleteButton.UseVisualStyleBackColor = true;
|
|
DeleteButton.Click += DeleteButton_Click;
|
|
//
|
|
// UpdateButton
|
|
//
|
|
UpdateButton.Location = new Point(464, 57);
|
|
UpdateButton.Name = "UpdateButton";
|
|
UpdateButton.Size = new Size(112, 29);
|
|
UpdateButton.TabIndex = 2;
|
|
UpdateButton.Text = "Изменить";
|
|
UpdateButton.UseVisualStyleBackColor = true;
|
|
UpdateButton.Click += UpdateButton_Click;
|
|
//
|
|
// AddButton
|
|
//
|
|
AddButton.Location = new Point(464, 22);
|
|
AddButton.Name = "AddButton";
|
|
AddButton.Size = new Size(112, 29);
|
|
AddButton.TabIndex = 1;
|
|
AddButton.Text = "Добавить";
|
|
AddButton.UseVisualStyleBackColor = true;
|
|
AddButton.Click += AddButton_Click;
|
|
//
|
|
// DataGridView
|
|
//
|
|
DataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|
DataGridView.Columns.AddRange(new DataGridViewColumn[] { IdColumn, IngredientNameColumn, CountColumn });
|
|
DataGridView.Location = new Point(6, 22);
|
|
DataGridView.Name = "DataGridView";
|
|
DataGridView.RowHeadersWidth = 51;
|
|
DataGridView.Size = new Size(442, 259);
|
|
DataGridView.TabIndex = 0;
|
|
//
|
|
// IdColumn
|
|
//
|
|
IdColumn.HeaderText = "Column1";
|
|
IdColumn.MinimumWidth = 6;
|
|
IdColumn.Name = "IdColumn";
|
|
IdColumn.Visible = false;
|
|
IdColumn.Width = 6;
|
|
//
|
|
// IngredientNameColumn
|
|
//
|
|
IngredientNameColumn.HeaderText = "Ингредиент";
|
|
IngredientNameColumn.MinimumWidth = 6;
|
|
IngredientNameColumn.Name = "IngredientNameColumn";
|
|
IngredientNameColumn.Width = 300;
|
|
//
|
|
// CountColumn
|
|
//
|
|
CountColumn.HeaderText = "Количество";
|
|
CountColumn.MinimumWidth = 6;
|
|
CountColumn.Name = "CountColumn";
|
|
CountColumn.Width = 125;
|
|
//
|
|
// SaveButton
|
|
//
|
|
SaveButton.Location = new Point(421, 404);
|
|
SaveButton.Name = "SaveButton";
|
|
SaveButton.Size = new Size(92, 33);
|
|
SaveButton.TabIndex = 5;
|
|
SaveButton.Text = "Сохранить";
|
|
SaveButton.UseVisualStyleBackColor = true;
|
|
SaveButton.Click += SaveButton_Click;
|
|
//
|
|
// CancelButton
|
|
//
|
|
CancelButton.Location = new Point(519, 404);
|
|
CancelButton.Name = "CancelButton";
|
|
CancelButton.Size = new Size(75, 33);
|
|
CancelButton.TabIndex = 6;
|
|
CancelButton.Text = "Отмена";
|
|
CancelButton.UseVisualStyleBackColor = true;
|
|
//
|
|
// label1
|
|
//
|
|
label1.AutoSize = true;
|
|
label1.Location = new Point(12, 38);
|
|
label1.Name = "label1";
|
|
label1.Size = new Size(63, 15);
|
|
label1.TabIndex = 7;
|
|
label1.Text = "Категория";
|
|
//
|
|
// CategoryTextBox
|
|
//
|
|
CategoryTextBox.Location = new Point(81, 35);
|
|
CategoryTextBox.Name = "CategoryTextBox";
|
|
CategoryTextBox.Size = new Size(237, 23);
|
|
CategoryTextBox.TabIndex = 8;
|
|
//
|
|
// FormDish
|
|
//
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(606, 449);
|
|
Controls.Add(CategoryTextBox);
|
|
Controls.Add(label1);
|
|
Controls.Add(CancelButton);
|
|
Controls.Add(SaveButton);
|
|
Controls.Add(ComponentsGroupBox);
|
|
Controls.Add(PriceTextBox);
|
|
Controls.Add(NameTextBox);
|
|
Controls.Add(PriceLabel);
|
|
Controls.Add(NameLabel);
|
|
Name = "FormDish";
|
|
Text = "Блюдо";
|
|
Load += FormDish_Load;
|
|
ComponentsGroupBox.ResumeLayout(false);
|
|
((System.ComponentModel.ISupportInitialize)DataGridView).EndInit();
|
|
ResumeLayout(false);
|
|
PerformLayout();
|
|
}
|
|
|
|
#endregion
|
|
|
|
private Label NameLabel;
|
|
private Label PriceLabel;
|
|
private TextBox NameTextBox;
|
|
private TextBox PriceTextBox;
|
|
private GroupBox ComponentsGroupBox;
|
|
private Button RefreshButton;
|
|
private Button DeleteButton;
|
|
private Button UpdateButton;
|
|
private Button AddButton;
|
|
private DataGridView DataGridView;
|
|
private DataGridViewTextBoxColumn IdColumn;
|
|
private DataGridViewTextBoxColumn IngredientNameColumn;
|
|
private DataGridViewTextBoxColumn CountColumn;
|
|
private Button SaveButton;
|
|
private Button CancelButton;
|
|
private Label label1;
|
|
private TextBox CategoryTextBox;
|
|
}
|
|
} |