2024-02-12 00:44:42 +04:00
|
|
|
|
namespace SushiBarView
|
|
|
|
|
{
|
|
|
|
|
partial class FormSushi
|
|
|
|
|
{
|
|
|
|
|
/// <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();
|
|
|
|
|
groupBoxComponents = new GroupBox();
|
|
|
|
|
buttonRefresh = new Button();
|
|
|
|
|
buttonDelete = new Button();
|
|
|
|
|
buttonUpdate = new Button();
|
|
|
|
|
buttonAdd = new Button();
|
|
|
|
|
dataGridView = new DataGridView();
|
|
|
|
|
ColumnId = new DataGridViewTextBoxColumn();
|
|
|
|
|
ColumnName = new DataGridViewTextBoxColumn();
|
|
|
|
|
ColumnCount = new DataGridViewTextBoxColumn();
|
|
|
|
|
buttonSave = new Button();
|
|
|
|
|
buttonCancel = new Button();
|
|
|
|
|
groupBoxComponents.SuspendLayout();
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
|
|
|
|
|
SuspendLayout();
|
|
|
|
|
//
|
|
|
|
|
// labelName
|
|
|
|
|
//
|
|
|
|
|
labelName.AutoSize = true;
|
|
|
|
|
labelName.Location = new Point(26, 16);
|
|
|
|
|
labelName.Margin = new Padding(2, 0, 2, 0);
|
|
|
|
|
labelName.Name = "labelName";
|
|
|
|
|
labelName.Size = new Size(79, 21);
|
|
|
|
|
labelName.TabIndex = 0;
|
|
|
|
|
labelName.Text = "Название";
|
|
|
|
|
//
|
|
|
|
|
// labelPrice
|
|
|
|
|
//
|
|
|
|
|
labelPrice.AutoSize = true;
|
|
|
|
|
labelPrice.Location = new Point(26, 53);
|
|
|
|
|
labelPrice.Margin = new Padding(2, 0, 2, 0);
|
|
|
|
|
labelPrice.Name = "labelPrice";
|
|
|
|
|
labelPrice.Size = new Size(90, 21);
|
|
|
|
|
labelPrice.TabIndex = 1;
|
|
|
|
|
labelPrice.Text = "Стоимость";
|
|
|
|
|
//
|
|
|
|
|
// textBoxName
|
|
|
|
|
//
|
|
|
|
|
textBoxName.Location = new Point(124, 9);
|
|
|
|
|
textBoxName.Margin = new Padding(2, 3, 2, 3);
|
|
|
|
|
textBoxName.Name = "textBoxName";
|
|
|
|
|
textBoxName.Size = new Size(261, 28);
|
|
|
|
|
textBoxName.TabIndex = 2;
|
|
|
|
|
//
|
|
|
|
|
// textBoxPrice
|
|
|
|
|
//
|
|
|
|
|
textBoxPrice.Enabled = false;
|
|
|
|
|
textBoxPrice.Location = new Point(124, 53);
|
|
|
|
|
textBoxPrice.Margin = new Padding(2, 3, 2, 3);
|
|
|
|
|
textBoxPrice.Name = "textBoxPrice";
|
|
|
|
|
textBoxPrice.Size = new Size(261, 28);
|
|
|
|
|
textBoxPrice.TabIndex = 3;
|
|
|
|
|
//
|
|
|
|
|
// groupBoxComponents
|
|
|
|
|
//
|
|
|
|
|
groupBoxComponents.Controls.Add(buttonRefresh);
|
|
|
|
|
groupBoxComponents.Controls.Add(buttonDelete);
|
|
|
|
|
groupBoxComponents.Controls.Add(buttonUpdate);
|
|
|
|
|
groupBoxComponents.Controls.Add(buttonAdd);
|
|
|
|
|
groupBoxComponents.Controls.Add(dataGridView);
|
|
|
|
|
groupBoxComponents.Location = new Point(26, 94);
|
|
|
|
|
groupBoxComponents.Margin = new Padding(2, 3, 2, 3);
|
|
|
|
|
groupBoxComponents.Name = "groupBoxComponents";
|
|
|
|
|
groupBoxComponents.Padding = new Padding(2, 3, 2, 3);
|
|
|
|
|
groupBoxComponents.Size = new Size(674, 396);
|
|
|
|
|
groupBoxComponents.TabIndex = 5;
|
|
|
|
|
groupBoxComponents.TabStop = false;
|
|
|
|
|
groupBoxComponents.Text = "Компоненты";
|
|
|
|
|
//
|
|
|
|
|
// buttonRefresh
|
|
|
|
|
//
|
|
|
|
|
buttonRefresh.BackColor = Color.FromArgb(255, 192, 192);
|
|
|
|
|
buttonRefresh.Location = new Point(483, 330);
|
|
|
|
|
buttonRefresh.Name = "buttonRefresh";
|
|
|
|
|
buttonRefresh.Size = new Size(127, 47);
|
|
|
|
|
buttonRefresh.TabIndex = 9;
|
|
|
|
|
buttonRefresh.Text = "Обновить";
|
|
|
|
|
buttonRefresh.UseVisualStyleBackColor = false;
|
|
|
|
|
buttonRefresh.Click += ButtonRef_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonDelete
|
|
|
|
|
//
|
|
|
|
|
buttonDelete.BackColor = Color.FromArgb(255, 192, 192);
|
|
|
|
|
buttonDelete.Location = new Point(483, 228);
|
|
|
|
|
buttonDelete.Name = "buttonDelete";
|
|
|
|
|
buttonDelete.Size = new Size(127, 47);
|
|
|
|
|
buttonDelete.TabIndex = 8;
|
|
|
|
|
buttonDelete.Text = "Удалить";
|
|
|
|
|
buttonDelete.UseVisualStyleBackColor = false;
|
|
|
|
|
buttonDelete.Click += ButtonDel_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonUpdate
|
|
|
|
|
//
|
|
|
|
|
buttonUpdate.BackColor = Color.FromArgb(255, 192, 192);
|
|
|
|
|
buttonUpdate.Location = new Point(483, 125);
|
|
|
|
|
buttonUpdate.Name = "buttonUpdate";
|
|
|
|
|
buttonUpdate.Size = new Size(127, 47);
|
|
|
|
|
buttonUpdate.TabIndex = 7;
|
|
|
|
|
buttonUpdate.Text = "Изменить";
|
|
|
|
|
buttonUpdate.UseVisualStyleBackColor = false;
|
|
|
|
|
buttonUpdate.Click += ButtonUpd_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonAdd
|
|
|
|
|
//
|
|
|
|
|
buttonAdd.BackColor = Color.FromArgb(255, 192, 192);
|
|
|
|
|
buttonAdd.Location = new Point(483, 27);
|
|
|
|
|
buttonAdd.Name = "buttonAdd";
|
|
|
|
|
buttonAdd.Size = new Size(127, 47);
|
|
|
|
|
buttonAdd.TabIndex = 6;
|
|
|
|
|
buttonAdd.Text = "Добавить";
|
|
|
|
|
buttonAdd.UseVisualStyleBackColor = false;
|
|
|
|
|
buttonAdd.Click += ButtonAdd_Click;
|
|
|
|
|
//
|
|
|
|
|
// dataGridView
|
|
|
|
|
//
|
2024-02-23 21:51:10 +04:00
|
|
|
|
dataGridView.AllowUserToAddRows = false;
|
2024-02-12 00:44:42 +04:00
|
|
|
|
dataGridView.AllowUserToResizeRows = false;
|
2024-02-23 21:51:10 +04:00
|
|
|
|
dataGridView.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
|
2024-02-12 00:44:42 +04:00
|
|
|
|
dataGridView.BackgroundColor = Color.FromArgb(255, 192, 192);
|
|
|
|
|
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|
|
|
|
dataGridView.Columns.AddRange(new DataGridViewColumn[] { ColumnId, ColumnName, ColumnCount });
|
|
|
|
|
dataGridView.Location = new Point(13, 27);
|
|
|
|
|
dataGridView.Margin = new Padding(2, 3, 2, 3);
|
|
|
|
|
dataGridView.Name = "dataGridView";
|
|
|
|
|
dataGridView.RowHeadersVisible = false;
|
|
|
|
|
dataGridView.RowHeadersWidth = 51;
|
|
|
|
|
dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
|
|
|
|
dataGridView.Size = new Size(381, 350);
|
|
|
|
|
dataGridView.TabIndex = 5;
|
|
|
|
|
//
|
|
|
|
|
// ColumnId
|
|
|
|
|
//
|
|
|
|
|
ColumnId.HeaderText = "id";
|
|
|
|
|
ColumnId.MinimumWidth = 6;
|
|
|
|
|
ColumnId.Name = "ColumnId";
|
|
|
|
|
ColumnId.Visible = false;
|
|
|
|
|
//
|
|
|
|
|
// ColumnName
|
|
|
|
|
//
|
|
|
|
|
ColumnName.HeaderText = "Компонент";
|
|
|
|
|
ColumnName.MinimumWidth = 6;
|
|
|
|
|
ColumnName.Name = "ColumnName";
|
|
|
|
|
//
|
|
|
|
|
// ColumnCount
|
|
|
|
|
//
|
|
|
|
|
ColumnCount.HeaderText = "Количество";
|
|
|
|
|
ColumnCount.MinimumWidth = 6;
|
|
|
|
|
ColumnCount.Name = "ColumnCount";
|
|
|
|
|
//
|
|
|
|
|
// buttonSave
|
|
|
|
|
//
|
|
|
|
|
buttonSave.BackColor = Color.FromArgb(255, 192, 192);
|
|
|
|
|
buttonSave.Location = new Point(428, 521);
|
|
|
|
|
buttonSave.Name = "buttonSave";
|
|
|
|
|
buttonSave.Size = new Size(127, 47);
|
|
|
|
|
buttonSave.TabIndex = 10;
|
|
|
|
|
buttonSave.Text = "Сохранить";
|
|
|
|
|
buttonSave.UseVisualStyleBackColor = false;
|
|
|
|
|
buttonSave.Click += ButtonSave_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonCancel
|
|
|
|
|
//
|
|
|
|
|
buttonCancel.BackColor = Color.FromArgb(255, 192, 192);
|
|
|
|
|
buttonCancel.Location = new Point(572, 520);
|
|
|
|
|
buttonCancel.Name = "buttonCancel";
|
|
|
|
|
buttonCancel.Size = new Size(127, 47);
|
|
|
|
|
buttonCancel.TabIndex = 11;
|
|
|
|
|
buttonCancel.Text = "Отменить";
|
|
|
|
|
buttonCancel.UseVisualStyleBackColor = false;
|
|
|
|
|
buttonCancel.Click += ButtonCancel_Click;
|
|
|
|
|
//
|
|
|
|
|
// FormSushi
|
|
|
|
|
//
|
|
|
|
|
AutoScaleDimensions = new SizeF(9F, 21F);
|
|
|
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
|
|
|
BackColor = Color.Cornsilk;
|
|
|
|
|
ClientSize = new Size(723, 580);
|
|
|
|
|
Controls.Add(buttonCancel);
|
|
|
|
|
Controls.Add(buttonSave);
|
|
|
|
|
Controls.Add(groupBoxComponents);
|
|
|
|
|
Controls.Add(textBoxPrice);
|
|
|
|
|
Controls.Add(textBoxName);
|
|
|
|
|
Controls.Add(labelPrice);
|
|
|
|
|
Controls.Add(labelName);
|
|
|
|
|
Font = new Font("Candara", 10.2F, FontStyle.Regular, GraphicsUnit.Point, 204);
|
|
|
|
|
Margin = new Padding(3, 4, 3, 4);
|
|
|
|
|
Name = "FormSushi";
|
2024-02-25 09:28:26 +04:00
|
|
|
|
Text = "Суши";
|
2024-02-12 00:44:42 +04:00
|
|
|
|
Load += FormSushi_Load;
|
|
|
|
|
groupBoxComponents.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 groupBoxComponents;
|
|
|
|
|
private Button buttonRefresh;
|
|
|
|
|
private Button buttonDelete;
|
|
|
|
|
private Button buttonUpdate;
|
|
|
|
|
private Button buttonAdd;
|
|
|
|
|
private DataGridView dataGridView;
|
|
|
|
|
private DataGridViewTextBoxColumn ColumnId;
|
|
|
|
|
private DataGridViewTextBoxColumn ColumnName;
|
|
|
|
|
private DataGridViewTextBoxColumn ColumnCount;
|
|
|
|
|
private Button buttonSave;
|
|
|
|
|
private Button buttonCancel;
|
|
|
|
|
}
|
|
|
|
|
}
|