239 lines
9.1 KiB
C#
239 lines
9.1 KiB
C#
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();
|
|
labelPrice = new Label();
|
|
textBoxName = new TextBox();
|
|
textBoxPrice = new TextBox();
|
|
groupBox = new GroupBox();
|
|
buttonRef = new Button();
|
|
buttonDel = new Button();
|
|
buttonUpd = new Button();
|
|
buttonAdd = new Button();
|
|
dataGridView = new DataGridView();
|
|
id = new DataGridViewTextBoxColumn();
|
|
Component = new DataGridViewTextBoxColumn();
|
|
Count = new DataGridViewTextBoxColumn();
|
|
buttonCancel = new Button();
|
|
buttonSave = new Button();
|
|
groupBox.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
|
|
SuspendLayout();
|
|
//
|
|
// labelName
|
|
//
|
|
labelName.AutoSize = true;
|
|
labelName.Location = new Point(16, 21);
|
|
labelName.Name = "labelName";
|
|
labelName.Size = new Size(94, 25);
|
|
labelName.TabIndex = 0;
|
|
labelName.Text = "Название:";
|
|
//
|
|
// labelPrice
|
|
//
|
|
labelPrice.AutoSize = true;
|
|
labelPrice.Location = new Point(16, 66);
|
|
labelPrice.Name = "labelPrice";
|
|
labelPrice.Size = new Size(103, 25);
|
|
labelPrice.TabIndex = 1;
|
|
labelPrice.Text = "Стоимость:";
|
|
//
|
|
// textBoxName
|
|
//
|
|
textBoxName.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
textBoxName.Location = new Point(170, 21);
|
|
textBoxName.Name = "textBoxName";
|
|
textBoxName.Size = new Size(396, 31);
|
|
textBoxName.TabIndex = 2;
|
|
//
|
|
// textBoxPrice
|
|
//
|
|
textBoxPrice.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
textBoxPrice.Location = new Point(170, 66);
|
|
textBoxPrice.Name = "textBoxPrice";
|
|
textBoxPrice.Size = new Size(160, 31);
|
|
textBoxPrice.TabIndex = 3;
|
|
//
|
|
// groupBox
|
|
//
|
|
groupBox.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
groupBox.Controls.Add(buttonRef);
|
|
groupBox.Controls.Add(buttonDel);
|
|
groupBox.Controls.Add(buttonUpd);
|
|
groupBox.Controls.Add(buttonAdd);
|
|
groupBox.Controls.Add(dataGridView);
|
|
groupBox.Location = new Point(16, 112);
|
|
groupBox.Name = "groupBox";
|
|
groupBox.Size = new Size(850, 286);
|
|
groupBox.TabIndex = 4;
|
|
groupBox.TabStop = false;
|
|
groupBox.Text = "Компоненты";
|
|
//
|
|
// buttonRef
|
|
//
|
|
buttonRef.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
buttonRef.Location = new Point(732, 215);
|
|
buttonRef.Name = "buttonRef";
|
|
buttonRef.Size = new Size(112, 56);
|
|
buttonRef.TabIndex = 4;
|
|
buttonRef.Text = "Обновить";
|
|
buttonRef.UseVisualStyleBackColor = true;
|
|
buttonRef.Click += ButtonRef_Click;
|
|
//
|
|
// buttonDel
|
|
//
|
|
buttonDel.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
buttonDel.Location = new Point(732, 153);
|
|
buttonDel.Name = "buttonDel";
|
|
buttonDel.Size = new Size(112, 56);
|
|
buttonDel.TabIndex = 3;
|
|
buttonDel.Text = "Удалить";
|
|
buttonDel.UseVisualStyleBackColor = true;
|
|
buttonDel.Click += ButtonDel_Click;
|
|
//
|
|
// buttonUpd
|
|
//
|
|
buttonUpd.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
buttonUpd.Location = new Point(732, 91);
|
|
buttonUpd.Name = "buttonUpd";
|
|
buttonUpd.Size = new Size(112, 56);
|
|
buttonUpd.TabIndex = 2;
|
|
buttonUpd.Text = "Изменить";
|
|
buttonUpd.UseVisualStyleBackColor = true;
|
|
buttonUpd.Click += ButtonUpd_Click;
|
|
//
|
|
// buttonAdd
|
|
//
|
|
buttonAdd.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
buttonAdd.Location = new Point(732, 29);
|
|
buttonAdd.Name = "buttonAdd";
|
|
buttonAdd.Size = new Size(112, 56);
|
|
buttonAdd.TabIndex = 1;
|
|
buttonAdd.Text = "Добавить";
|
|
buttonAdd.UseVisualStyleBackColor = true;
|
|
buttonAdd.Click += ButtonAdd_Click;
|
|
//
|
|
// dataGridView
|
|
//
|
|
dataGridView.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
dataGridView.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
|
|
dataGridView.BackgroundColor = SystemColors.Window;
|
|
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|
dataGridView.Columns.AddRange(new DataGridViewColumn[] { id, Component, Count });
|
|
dataGridView.Location = new Point(6, 29);
|
|
dataGridView.Name = "dataGridView";
|
|
dataGridView.RowHeadersWidth = 51;
|
|
dataGridView.RowTemplate.Height = 29;
|
|
dataGridView.Size = new Size(720, 251);
|
|
dataGridView.TabIndex = 0;
|
|
//
|
|
// id
|
|
//
|
|
id.HeaderText = "id";
|
|
id.MinimumWidth = 6;
|
|
id.Name = "id";
|
|
id.Visible = false;
|
|
//
|
|
// Component
|
|
//
|
|
Component.FillWeight = 200F;
|
|
Component.HeaderText = "Компонент";
|
|
Component.MinimumWidth = 6;
|
|
Component.Name = "Component";
|
|
//
|
|
// Count
|
|
//
|
|
Count.HeaderText = "Количество";
|
|
Count.MinimumWidth = 6;
|
|
Count.Name = "Count";
|
|
//
|
|
// buttonCancel
|
|
//
|
|
buttonCancel.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
buttonCancel.Location = new Point(754, 404);
|
|
buttonCancel.Name = "buttonCancel";
|
|
buttonCancel.Size = new Size(112, 34);
|
|
buttonCancel.TabIndex = 5;
|
|
buttonCancel.Text = "Отмена";
|
|
buttonCancel.UseVisualStyleBackColor = true;
|
|
buttonCancel.Click += ButtonCancel_Click;
|
|
//
|
|
// buttonSave
|
|
//
|
|
buttonSave.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
buttonSave.Location = new Point(636, 404);
|
|
buttonSave.Name = "buttonSave";
|
|
buttonSave.Size = new Size(112, 34);
|
|
buttonSave.TabIndex = 6;
|
|
buttonSave.Text = "Сохранить";
|
|
buttonSave.UseVisualStyleBackColor = true;
|
|
buttonSave.Click += ButtonSave_Click;
|
|
//
|
|
// FormPastry
|
|
//
|
|
AutoScaleDimensions = new SizeF(10F, 25F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(878, 444);
|
|
Controls.Add(buttonSave);
|
|
Controls.Add(buttonCancel);
|
|
Controls.Add(groupBox);
|
|
Controls.Add(textBoxPrice);
|
|
Controls.Add(textBoxName);
|
|
Controls.Add(labelPrice);
|
|
Controls.Add(labelName);
|
|
Name = "FormPastry";
|
|
Text = "Кондитерское изделие";
|
|
Load += FormPastry_Load;
|
|
Click += FormPastry_Load;
|
|
groupBox.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 groupBox;
|
|
private Button buttonRef;
|
|
private Button buttonDel;
|
|
private Button buttonUpd;
|
|
private Button buttonAdd;
|
|
private DataGridView dataGridView;
|
|
private Button buttonCancel;
|
|
private Button buttonSave;
|
|
private DataGridViewTextBoxColumn id;
|
|
private DataGridViewTextBoxColumn Component;
|
|
private DataGridViewTextBoxColumn Count;
|
|
}
|
|
} |