248 lines
9.7 KiB
C#
248 lines
9.7 KiB
C#
|
namespace IceCreamShopView
|
|||
|
{
|
|||
|
partial class FormIceCream
|
|||
|
{
|
|||
|
/// <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()
|
|||
|
{
|
|||
|
buttonCancel = new Button();
|
|||
|
buttonSave = new Button();
|
|||
|
textBoxName = new TextBox();
|
|||
|
labelName = new Label();
|
|||
|
textBoxPrice = new TextBox();
|
|||
|
labelPrice = new Label();
|
|||
|
groupBoxComponents = new GroupBox();
|
|||
|
buttonUpd = new Button();
|
|||
|
buttonDel = new Button();
|
|||
|
buttonEdit = new Button();
|
|||
|
buttonAdd = new Button();
|
|||
|
dataGridView = new DataGridView();
|
|||
|
ColumnId = new DataGridViewTextBoxColumn();
|
|||
|
ColumnName = new DataGridViewTextBoxColumn();
|
|||
|
ColumnCount = new DataGridViewTextBoxColumn();
|
|||
|
groupBoxComponents.SuspendLayout();
|
|||
|
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
|
|||
|
SuspendLayout();
|
|||
|
//
|
|||
|
// buttonCancel
|
|||
|
//
|
|||
|
buttonCancel.Location = new Point(455, 362);
|
|||
|
buttonCancel.Margin = new Padding(4, 3, 4, 3);
|
|||
|
buttonCancel.Name = "buttonCancel";
|
|||
|
buttonCancel.Size = new Size(88, 27);
|
|||
|
buttonCancel.TabIndex = 6;
|
|||
|
buttonCancel.Text = "Отмена";
|
|||
|
buttonCancel.UseVisualStyleBackColor = true;
|
|||
|
buttonCancel.Click += ButtonCancel_Click;
|
|||
|
//
|
|||
|
// buttonSave
|
|||
|
//
|
|||
|
buttonSave.Location = new Point(360, 362);
|
|||
|
buttonSave.Margin = new Padding(4, 3, 4, 3);
|
|||
|
buttonSave.Name = "buttonSave";
|
|||
|
buttonSave.Size = new Size(88, 27);
|
|||
|
buttonSave.TabIndex = 5;
|
|||
|
buttonSave.Text = "Сохранить";
|
|||
|
buttonSave.UseVisualStyleBackColor = true;
|
|||
|
buttonSave.Click += ButtonSave_Click;
|
|||
|
//
|
|||
|
// textBoxName
|
|||
|
//
|
|||
|
textBoxName.Location = new Point(92, 7);
|
|||
|
textBoxName.Margin = new Padding(4, 3, 4, 3);
|
|||
|
textBoxName.Name = "textBoxName";
|
|||
|
textBoxName.Size = new Size(252, 23);
|
|||
|
textBoxName.TabIndex = 1;
|
|||
|
//
|
|||
|
// labelName
|
|||
|
//
|
|||
|
labelName.AutoSize = true;
|
|||
|
labelName.Location = new Point(14, 10);
|
|||
|
labelName.Margin = new Padding(4, 0, 4, 0);
|
|||
|
labelName.Name = "labelName";
|
|||
|
labelName.Size = new Size(65, 15);
|
|||
|
labelName.TabIndex = 0;
|
|||
|
labelName.Text = "Название :";
|
|||
|
//
|
|||
|
// textBoxPrice
|
|||
|
//
|
|||
|
textBoxPrice.Enabled = false;
|
|||
|
textBoxPrice.Location = new Point(92, 37);
|
|||
|
textBoxPrice.Margin = new Padding(4, 3, 4, 3);
|
|||
|
textBoxPrice.Name = "textBoxPrice";
|
|||
|
textBoxPrice.Size = new Size(147, 23);
|
|||
|
textBoxPrice.TabIndex = 3;
|
|||
|
//
|
|||
|
// labelPrice
|
|||
|
//
|
|||
|
labelPrice.AutoSize = true;
|
|||
|
labelPrice.Location = new Point(14, 40);
|
|||
|
labelPrice.Margin = new Padding(4, 0, 4, 0);
|
|||
|
labelPrice.Name = "labelPrice";
|
|||
|
labelPrice.Size = new Size(73, 15);
|
|||
|
labelPrice.TabIndex = 2;
|
|||
|
labelPrice.Text = "Стоимость :";
|
|||
|
//
|
|||
|
// groupBoxComponents
|
|||
|
//
|
|||
|
groupBoxComponents.Controls.Add(buttonUpd);
|
|||
|
groupBoxComponents.Controls.Add(buttonDel);
|
|||
|
groupBoxComponents.Controls.Add(buttonEdit);
|
|||
|
groupBoxComponents.Controls.Add(buttonAdd);
|
|||
|
groupBoxComponents.Controls.Add(dataGridView);
|
|||
|
groupBoxComponents.Location = new Point(14, 67);
|
|||
|
groupBoxComponents.Margin = new Padding(4, 3, 4, 3);
|
|||
|
groupBoxComponents.Name = "groupBoxComponents";
|
|||
|
groupBoxComponents.Padding = new Padding(4, 3, 4, 3);
|
|||
|
groupBoxComponents.Size = new Size(558, 288);
|
|||
|
groupBoxComponents.TabIndex = 4;
|
|||
|
groupBoxComponents.TabStop = false;
|
|||
|
groupBoxComponents.Text = "Компоненты";
|
|||
|
//
|
|||
|
// buttonUpd
|
|||
|
//
|
|||
|
buttonUpd.Location = new Point(441, 171);
|
|||
|
buttonUpd.Margin = new Padding(4, 3, 4, 3);
|
|||
|
buttonUpd.Name = "buttonUpd";
|
|||
|
buttonUpd.Size = new Size(88, 27);
|
|||
|
buttonUpd.TabIndex = 4;
|
|||
|
buttonUpd.Text = "Обновить";
|
|||
|
buttonUpd.UseVisualStyleBackColor = true;
|
|||
|
buttonUpd.Click += ButtonUpd_Click;
|
|||
|
//
|
|||
|
// buttonDel
|
|||
|
//
|
|||
|
buttonDel.Location = new Point(441, 123);
|
|||
|
buttonDel.Margin = new Padding(4, 3, 4, 3);
|
|||
|
buttonDel.Name = "buttonDel";
|
|||
|
buttonDel.Size = new Size(88, 27);
|
|||
|
buttonDel.TabIndex = 3;
|
|||
|
buttonDel.Text = "Удалить";
|
|||
|
buttonDel.UseVisualStyleBackColor = true;
|
|||
|
buttonDel.Click += ButtonDel_Click;
|
|||
|
//
|
|||
|
// buttonEdit
|
|||
|
//
|
|||
|
buttonEdit.Location = new Point(441, 76);
|
|||
|
buttonEdit.Margin = new Padding(4, 3, 4, 3);
|
|||
|
buttonEdit.Name = "buttonEdit";
|
|||
|
buttonEdit.Size = new Size(88, 27);
|
|||
|
buttonEdit.TabIndex = 2;
|
|||
|
buttonEdit.Text = "Изменить";
|
|||
|
buttonEdit.UseVisualStyleBackColor = true;
|
|||
|
buttonEdit.Click += ButtonEdit_Click;
|
|||
|
//
|
|||
|
// buttonAdd
|
|||
|
//
|
|||
|
buttonAdd.Location = new Point(441, 32);
|
|||
|
buttonAdd.Margin = new Padding(4, 3, 4, 3);
|
|||
|
buttonAdd.Name = "buttonAdd";
|
|||
|
buttonAdd.Size = new Size(88, 27);
|
|||
|
buttonAdd.TabIndex = 1;
|
|||
|
buttonAdd.Text = "Добавить";
|
|||
|
buttonAdd.UseVisualStyleBackColor = true;
|
|||
|
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, ColumnName, ColumnCount });
|
|||
|
dataGridView.Dock = DockStyle.Left;
|
|||
|
dataGridView.Location = new Point(4, 19);
|
|||
|
dataGridView.Margin = new Padding(4, 3, 4, 3);
|
|||
|
dataGridView.MultiSelect = false;
|
|||
|
dataGridView.Name = "dataGridView";
|
|||
|
dataGridView.ReadOnly = true;
|
|||
|
dataGridView.RowHeadersVisible = false;
|
|||
|
dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
|||
|
dataGridView.Size = new Size(408, 266);
|
|||
|
dataGridView.TabIndex = 0;
|
|||
|
//
|
|||
|
// ColumnId
|
|||
|
//
|
|||
|
ColumnId.HeaderText = "Id";
|
|||
|
ColumnId.Name = "ColumnId";
|
|||
|
ColumnId.ReadOnly = true;
|
|||
|
ColumnId.Visible = false;
|
|||
|
//
|
|||
|
// ColumnName
|
|||
|
//
|
|||
|
ColumnName.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
|||
|
ColumnName.HeaderText = "Компонент";
|
|||
|
ColumnName.Name = "ColumnName";
|
|||
|
ColumnName.ReadOnly = true;
|
|||
|
//
|
|||
|
// ColumnCount
|
|||
|
//
|
|||
|
ColumnCount.HeaderText = "Количество";
|
|||
|
ColumnCount.Name = "ColumnCount";
|
|||
|
ColumnCount.ReadOnly = true;
|
|||
|
//
|
|||
|
// FormIceCream
|
|||
|
//
|
|||
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|||
|
AutoScaleMode = AutoScaleMode.Font;
|
|||
|
ClientSize = new Size(586, 402);
|
|||
|
Controls.Add(groupBoxComponents);
|
|||
|
Controls.Add(textBoxPrice);
|
|||
|
Controls.Add(labelPrice);
|
|||
|
Controls.Add(buttonCancel);
|
|||
|
Controls.Add(buttonSave);
|
|||
|
Controls.Add(textBoxName);
|
|||
|
Controls.Add(labelName);
|
|||
|
Margin = new Padding(4, 3, 4, 3);
|
|||
|
Name = "FormIceCream";
|
|||
|
StartPosition = FormStartPosition.CenterScreen;
|
|||
|
Text = "Мороженое";
|
|||
|
Load += FormIceCream_Load;
|
|||
|
groupBoxComponents.ResumeLayout(false);
|
|||
|
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
|||
|
ResumeLayout(false);
|
|||
|
PerformLayout();
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
private Button buttonCancel;
|
|||
|
private Button buttonSave;
|
|||
|
private TextBox textBoxName;
|
|||
|
private Label labelName;
|
|||
|
private TextBox textBoxPrice;
|
|||
|
private Label labelPrice;
|
|||
|
private GroupBox groupBoxComponents;
|
|||
|
private Button buttonUpd;
|
|||
|
private Button buttonDel;
|
|||
|
private Button buttonEdit;
|
|||
|
private Button buttonAdd;
|
|||
|
private DataGridView dataGridView;
|
|||
|
private DataGridViewTextBoxColumn ColumnId;
|
|||
|
private DataGridViewTextBoxColumn ColumnName;
|
|||
|
private DataGridViewTextBoxColumn ColumnCount;
|
|||
|
}
|
|||
|
}
|