2024-04-23 21:55:19 +04:00
|
|
|
|
namespace ConfectioneryView
|
|
|
|
|
{
|
|
|
|
|
partial class FormPastry
|
|
|
|
|
{
|
|
|
|
|
/// <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();
|
|
|
|
|
labelCost = new Label();
|
|
|
|
|
textBoxName = new TextBox();
|
|
|
|
|
textBoxCost = new TextBox();
|
|
|
|
|
groupBoxComponents = new GroupBox();
|
|
|
|
|
buttonRefresh = new Button();
|
|
|
|
|
buttonDelete = new Button();
|
|
|
|
|
buttonUpload = new Button();
|
|
|
|
|
buttonAdd = new Button();
|
|
|
|
|
dataGridView = new DataGridView();
|
|
|
|
|
ColumnId = new DataGridViewTextBoxColumn();
|
|
|
|
|
ColumnComponent = 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(17, 22);
|
|
|
|
|
labelName.Name = "labelName";
|
|
|
|
|
labelName.Size = new Size(84, 20);
|
|
|
|
|
labelName.TabIndex = 0;
|
|
|
|
|
labelName.Text = "Название: ";
|
|
|
|
|
//
|
|
|
|
|
// labelCost
|
|
|
|
|
//
|
|
|
|
|
labelCost.AutoSize = true;
|
|
|
|
|
labelCost.Location = new Point(17, 67);
|
|
|
|
|
labelCost.Name = "labelCost";
|
|
|
|
|
labelCost.Size = new Size(86, 20);
|
|
|
|
|
labelCost.TabIndex = 1;
|
|
|
|
|
labelCost.Text = "Стоимость:";
|
|
|
|
|
//
|
|
|
|
|
// textBoxName
|
|
|
|
|
//
|
|
|
|
|
textBoxName.Location = new Point(129, 19);
|
|
|
|
|
textBoxName.Name = "textBoxName";
|
|
|
|
|
textBoxName.Size = new Size(350, 27);
|
|
|
|
|
textBoxName.TabIndex = 2;
|
|
|
|
|
//
|
|
|
|
|
// textBoxCost
|
|
|
|
|
//
|
|
|
|
|
textBoxCost.Enabled = false;
|
|
|
|
|
textBoxCost.Location = new Point(129, 64);
|
|
|
|
|
textBoxCost.Name = "textBoxCost";
|
|
|
|
|
textBoxCost.Size = new Size(179, 27);
|
|
|
|
|
textBoxCost.TabIndex = 3;
|
|
|
|
|
//
|
|
|
|
|
// groupBoxComponents
|
|
|
|
|
//
|
|
|
|
|
groupBoxComponents.Controls.Add(buttonRefresh);
|
|
|
|
|
groupBoxComponents.Controls.Add(buttonDelete);
|
|
|
|
|
groupBoxComponents.Controls.Add(buttonUpload);
|
|
|
|
|
groupBoxComponents.Controls.Add(buttonAdd);
|
|
|
|
|
groupBoxComponents.Controls.Add(dataGridView);
|
|
|
|
|
groupBoxComponents.Location = new Point(19, 104);
|
|
|
|
|
groupBoxComponents.Name = "groupBoxComponents";
|
|
|
|
|
groupBoxComponents.Size = new Size(760, 364);
|
|
|
|
|
groupBoxComponents.TabIndex = 4;
|
|
|
|
|
groupBoxComponents.TabStop = false;
|
|
|
|
|
groupBoxComponents.Text = "Компоненты";
|
|
|
|
|
//
|
|
|
|
|
// buttonRefresh
|
|
|
|
|
//
|
|
|
|
|
buttonRefresh.BackColor = SystemColors.ControlLightLight;
|
|
|
|
|
buttonRefresh.Location = new Point(608, 257);
|
|
|
|
|
buttonRefresh.Name = "buttonRefresh";
|
|
|
|
|
buttonRefresh.Size = new Size(135, 29);
|
|
|
|
|
buttonRefresh.TabIndex = 4;
|
|
|
|
|
buttonRefresh.Text = "Обновить";
|
|
|
|
|
buttonRefresh.UseVisualStyleBackColor = false;
|
|
|
|
|
buttonRefresh.Click += buttonRefresh_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonDelete
|
|
|
|
|
//
|
|
|
|
|
buttonDelete.BackColor = SystemColors.ControlLightLight;
|
|
|
|
|
buttonDelete.Location = new Point(608, 185);
|
|
|
|
|
buttonDelete.Name = "buttonDelete";
|
|
|
|
|
buttonDelete.Size = new Size(135, 29);
|
|
|
|
|
buttonDelete.TabIndex = 3;
|
|
|
|
|
buttonDelete.Text = "Удалить";
|
|
|
|
|
buttonDelete.UseVisualStyleBackColor = false;
|
|
|
|
|
buttonDelete.Click += buttonDelete_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonUpload
|
|
|
|
|
//
|
|
|
|
|
buttonUpload.BackColor = SystemColors.ControlLightLight;
|
|
|
|
|
buttonUpload.Location = new Point(608, 113);
|
|
|
|
|
buttonUpload.Name = "buttonUpload";
|
|
|
|
|
buttonUpload.Size = new Size(135, 29);
|
|
|
|
|
buttonUpload.TabIndex = 2;
|
|
|
|
|
buttonUpload.Text = "Изменить";
|
|
|
|
|
buttonUpload.UseVisualStyleBackColor = false;
|
|
|
|
|
buttonUpload.Click += buttonUpload_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonAdd
|
|
|
|
|
//
|
|
|
|
|
buttonAdd.BackColor = SystemColors.ControlLightLight;
|
|
|
|
|
buttonAdd.Location = new Point(608, 48);
|
|
|
|
|
buttonAdd.Name = "buttonAdd";
|
|
|
|
|
buttonAdd.Size = new Size(135, 29);
|
|
|
|
|
buttonAdd.TabIndex = 1;
|
|
|
|
|
buttonAdd.Text = "Добавить";
|
|
|
|
|
buttonAdd.UseVisualStyleBackColor = false;
|
|
|
|
|
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, ColumnComponent, ColumnCount });
|
|
|
|
|
dataGridView.Dock = DockStyle.Left;
|
|
|
|
|
dataGridView.Location = new Point(3, 23);
|
|
|
|
|
dataGridView.Margin = new Padding(5, 4, 5, 4);
|
|
|
|
|
dataGridView.MultiSelect = false;
|
|
|
|
|
dataGridView.Name = "dataGridView";
|
|
|
|
|
dataGridView.ReadOnly = true;
|
|
|
|
|
dataGridView.RowHeadersVisible = false;
|
|
|
|
|
dataGridView.RowHeadersWidth = 51;
|
|
|
|
|
dataGridView.RowTemplate.Height = 29;
|
|
|
|
|
dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
|
|
|
|
dataGridView.Size = new Size(579, 338);
|
|
|
|
|
dataGridView.TabIndex = 0;
|
|
|
|
|
//
|
|
|
|
|
// ColumnId
|
|
|
|
|
//
|
|
|
|
|
ColumnId.HeaderText = "Id";
|
|
|
|
|
ColumnId.MinimumWidth = 6;
|
|
|
|
|
ColumnId.Name = "ColumnId";
|
|
|
|
|
ColumnId.ReadOnly = true;
|
|
|
|
|
ColumnId.Visible = false;
|
|
|
|
|
ColumnId.Width = 125;
|
|
|
|
|
//
|
|
|
|
|
// ColumnComponent
|
|
|
|
|
//
|
|
|
|
|
ColumnComponent.HeaderText = "Компонент";
|
|
|
|
|
ColumnComponent.MinimumWidth = 6;
|
|
|
|
|
ColumnComponent.Name = "ColumnComponent";
|
|
|
|
|
ColumnComponent.ReadOnly = true;
|
|
|
|
|
ColumnComponent.Width = 400;
|
|
|
|
|
//
|
|
|
|
|
// ColumnCount
|
|
|
|
|
//
|
|
|
|
|
ColumnCount.HeaderText = "Количество";
|
|
|
|
|
ColumnCount.MinimumWidth = 6;
|
|
|
|
|
ColumnCount.Name = "ColumnCount";
|
|
|
|
|
ColumnCount.ReadOnly = true;
|
|
|
|
|
ColumnCount.Width = 175;
|
|
|
|
|
//
|
|
|
|
|
// buttonSave
|
|
|
|
|
//
|
|
|
|
|
buttonSave.BackColor = SystemColors.ControlLightLight;
|
|
|
|
|
buttonSave.Location = new Point(554, 480);
|
|
|
|
|
buttonSave.Name = "buttonSave";
|
|
|
|
|
buttonSave.Size = new Size(94, 29);
|
|
|
|
|
buttonSave.TabIndex = 5;
|
|
|
|
|
buttonSave.Text = "Сохранить";
|
|
|
|
|
buttonSave.UseVisualStyleBackColor = false;
|
|
|
|
|
buttonSave.Click += buttonSave_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonCancel
|
|
|
|
|
//
|
|
|
|
|
buttonCancel.BackColor = SystemColors.ControlLightLight;
|
|
|
|
|
buttonCancel.Location = new Point(685, 480);
|
|
|
|
|
buttonCancel.Name = "buttonCancel";
|
|
|
|
|
buttonCancel.Size = new Size(94, 29);
|
|
|
|
|
buttonCancel.TabIndex = 6;
|
|
|
|
|
buttonCancel.Text = "Отмена";
|
|
|
|
|
buttonCancel.UseVisualStyleBackColor = false;
|
|
|
|
|
buttonCancel.Click += buttonCancel_Click;
|
|
|
|
|
//
|
|
|
|
|
// FormPastry
|
|
|
|
|
//
|
|
|
|
|
AutoScaleDimensions = new SizeF(8F, 20F);
|
|
|
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
|
|
|
ClientSize = new Size(800, 521);
|
|
|
|
|
Controls.Add(buttonSave);
|
|
|
|
|
Controls.Add(buttonCancel);
|
|
|
|
|
Controls.Add(groupBoxComponents);
|
|
|
|
|
Controls.Add(textBoxCost);
|
|
|
|
|
Controls.Add(textBoxName);
|
|
|
|
|
Controls.Add(labelCost);
|
|
|
|
|
Controls.Add(labelName);
|
|
|
|
|
Name = "FormPastry";
|
|
|
|
|
Text = "Кондитерское изделие";
|
2024-04-23 23:02:28 +04:00
|
|
|
|
Load += FormPastry_Load;
|
2024-04-23 21:55:19 +04:00
|
|
|
|
groupBoxComponents.ResumeLayout(false);
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
|
|
|
|
ResumeLayout(false);
|
|
|
|
|
PerformLayout();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
private Label labelName;
|
|
|
|
|
private Label labelCost;
|
|
|
|
|
private TextBox textBoxName;
|
|
|
|
|
private TextBox textBoxCost;
|
|
|
|
|
private GroupBox groupBoxComponents;
|
|
|
|
|
private DataGridView dataGridView;
|
|
|
|
|
private Button buttonRefresh;
|
|
|
|
|
private Button buttonDelete;
|
|
|
|
|
private Button buttonUpload;
|
|
|
|
|
private Button buttonAdd;
|
|
|
|
|
private Button buttonSave;
|
|
|
|
|
private Button buttonCancel;
|
|
|
|
|
private DataGridViewTextBoxColumn ColumnId;
|
|
|
|
|
private DataGridViewTextBoxColumn ColumnComponent;
|
|
|
|
|
private DataGridViewTextBoxColumn ColumnCount;
|
|
|
|
|
}
|
|
|
|
|
}
|