2024-02-28 22:55:32 +04:00
|
|
|
|
namespace ConfectioneryView
|
|
|
|
|
{
|
|
|
|
|
partial class FormShop
|
|
|
|
|
{
|
|
|
|
|
/// <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()
|
|
|
|
|
{
|
2024-02-29 21:38:29 +04:00
|
|
|
|
dataGridView = new DataGridView();
|
2024-03-14 23:26:40 +04:00
|
|
|
|
id = new DataGridViewTextBoxColumn();
|
|
|
|
|
PastryName = new DataGridViewTextBoxColumn();
|
|
|
|
|
Count = new DataGridViewTextBoxColumn();
|
2024-02-29 21:38:29 +04:00
|
|
|
|
labelName = new Label();
|
|
|
|
|
labelAddress = new Label();
|
|
|
|
|
labelOpen = new Label();
|
|
|
|
|
textBoxName = new TextBox();
|
|
|
|
|
textBoxAddress = new TextBox();
|
|
|
|
|
dateTimePickerOpen = new DateTimePicker();
|
|
|
|
|
buttonSave = new Button();
|
|
|
|
|
buttonCancel = new Button();
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
|
|
|
|
|
SuspendLayout();
|
|
|
|
|
//
|
|
|
|
|
// dataGridView
|
|
|
|
|
//
|
2024-03-14 23:26:40 +04:00
|
|
|
|
dataGridView.AllowUserToAddRows = false;
|
|
|
|
|
dataGridView.AllowUserToDeleteRows = false;
|
|
|
|
|
dataGridView.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
|
2024-02-29 21:38:29 +04:00
|
|
|
|
dataGridView.BackgroundColor = Color.AliceBlue;
|
|
|
|
|
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
2024-03-14 23:26:40 +04:00
|
|
|
|
dataGridView.Columns.AddRange(new DataGridViewColumn[] { id, PastryName, Count });
|
2024-02-29 21:38:29 +04:00
|
|
|
|
dataGridView.Location = new Point(12, 225);
|
|
|
|
|
dataGridView.Name = "dataGridView";
|
2024-03-14 23:26:40 +04:00
|
|
|
|
dataGridView.ReadOnly = true;
|
|
|
|
|
dataGridView.RowHeadersBorderStyle = DataGridViewHeaderBorderStyle.None;
|
|
|
|
|
dataGridView.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.AutoSizeToDisplayedHeaders;
|
2024-02-29 21:38:29 +04:00
|
|
|
|
dataGridView.RowTemplate.Height = 33;
|
|
|
|
|
dataGridView.Size = new Size(765, 393);
|
|
|
|
|
dataGridView.TabIndex = 0;
|
|
|
|
|
//
|
2024-03-14 23:26:40 +04:00
|
|
|
|
// id
|
|
|
|
|
//
|
|
|
|
|
id.HeaderText = "id";
|
|
|
|
|
id.MinimumWidth = 8;
|
|
|
|
|
id.Name = "id";
|
|
|
|
|
id.ReadOnly = true;
|
|
|
|
|
id.Visible = false;
|
|
|
|
|
//
|
|
|
|
|
// PastryName
|
|
|
|
|
//
|
|
|
|
|
PastryName.HeaderText = "Кондитерское изделие";
|
|
|
|
|
PastryName.MinimumWidth = 8;
|
|
|
|
|
PastryName.Name = "PastryName";
|
|
|
|
|
PastryName.ReadOnly = true;
|
|
|
|
|
//
|
|
|
|
|
// Count
|
|
|
|
|
//
|
|
|
|
|
Count.HeaderText = "Количество";
|
|
|
|
|
Count.MinimumWidth = 8;
|
|
|
|
|
Count.Name = "Count";
|
|
|
|
|
Count.ReadOnly = true;
|
|
|
|
|
//
|
2024-02-29 21:38:29 +04:00
|
|
|
|
// labelName
|
|
|
|
|
//
|
|
|
|
|
labelName.AutoSize = true;
|
|
|
|
|
labelName.Location = new Point(36, 50);
|
|
|
|
|
labelName.Name = "labelName";
|
|
|
|
|
labelName.Size = new Size(94, 25);
|
|
|
|
|
labelName.TabIndex = 1;
|
|
|
|
|
labelName.Text = "Название:";
|
|
|
|
|
//
|
|
|
|
|
// labelAddress
|
|
|
|
|
//
|
|
|
|
|
labelAddress.AutoSize = true;
|
|
|
|
|
labelAddress.Location = new Point(36, 98);
|
|
|
|
|
labelAddress.Name = "labelAddress";
|
|
|
|
|
labelAddress.Size = new Size(66, 25);
|
|
|
|
|
labelAddress.TabIndex = 2;
|
|
|
|
|
labelAddress.Text = "Адрес:";
|
|
|
|
|
//
|
|
|
|
|
// labelOpen
|
|
|
|
|
//
|
|
|
|
|
labelOpen.AutoSize = true;
|
|
|
|
|
labelOpen.Location = new Point(36, 146);
|
|
|
|
|
labelOpen.Name = "labelOpen";
|
|
|
|
|
labelOpen.Size = new Size(135, 25);
|
|
|
|
|
labelOpen.TabIndex = 3;
|
|
|
|
|
labelOpen.Text = "Дата открытия:";
|
|
|
|
|
//
|
|
|
|
|
// textBoxName
|
|
|
|
|
//
|
|
|
|
|
textBoxName.Location = new Point(201, 47);
|
|
|
|
|
textBoxName.Name = "textBoxName";
|
|
|
|
|
textBoxName.Size = new Size(378, 31);
|
|
|
|
|
textBoxName.TabIndex = 4;
|
|
|
|
|
//
|
|
|
|
|
// textBoxAddress
|
|
|
|
|
//
|
|
|
|
|
textBoxAddress.Location = new Point(201, 95);
|
|
|
|
|
textBoxAddress.Name = "textBoxAddress";
|
|
|
|
|
textBoxAddress.Size = new Size(378, 31);
|
|
|
|
|
textBoxAddress.TabIndex = 5;
|
|
|
|
|
//
|
|
|
|
|
// dateTimePickerOpen
|
|
|
|
|
//
|
|
|
|
|
dateTimePickerOpen.Location = new Point(201, 146);
|
|
|
|
|
dateTimePickerOpen.Name = "dateTimePickerOpen";
|
|
|
|
|
dateTimePickerOpen.Size = new Size(378, 31);
|
|
|
|
|
dateTimePickerOpen.TabIndex = 6;
|
|
|
|
|
//
|
|
|
|
|
// buttonSave
|
|
|
|
|
//
|
|
|
|
|
buttonSave.Location = new Point(466, 650);
|
|
|
|
|
buttonSave.Name = "buttonSave";
|
|
|
|
|
buttonSave.Size = new Size(139, 55);
|
|
|
|
|
buttonSave.TabIndex = 7;
|
|
|
|
|
buttonSave.Text = "Сохранить";
|
|
|
|
|
buttonSave.UseVisualStyleBackColor = true;
|
2024-02-29 23:33:00 +04:00
|
|
|
|
buttonSave.Click += buttonSave_Click;
|
2024-02-29 21:38:29 +04:00
|
|
|
|
//
|
|
|
|
|
// buttonCancel
|
|
|
|
|
//
|
|
|
|
|
buttonCancel.Location = new Point(639, 650);
|
|
|
|
|
buttonCancel.Name = "buttonCancel";
|
|
|
|
|
buttonCancel.Size = new Size(138, 55);
|
|
|
|
|
buttonCancel.TabIndex = 8;
|
|
|
|
|
buttonCancel.Text = "Отмена";
|
|
|
|
|
buttonCancel.UseVisualStyleBackColor = true;
|
2024-02-29 23:33:00 +04:00
|
|
|
|
buttonCancel.Click += buttonCancel_Click;
|
2024-02-29 21:38:29 +04:00
|
|
|
|
//
|
|
|
|
|
// FormShop
|
|
|
|
|
//
|
|
|
|
|
AutoScaleDimensions = new SizeF(10F, 25F);
|
|
|
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
|
|
|
ClientSize = new Size(805, 743);
|
|
|
|
|
Controls.Add(buttonCancel);
|
|
|
|
|
Controls.Add(buttonSave);
|
|
|
|
|
Controls.Add(dateTimePickerOpen);
|
|
|
|
|
Controls.Add(textBoxAddress);
|
|
|
|
|
Controls.Add(textBoxName);
|
|
|
|
|
Controls.Add(labelOpen);
|
|
|
|
|
Controls.Add(labelAddress);
|
|
|
|
|
Controls.Add(labelName);
|
|
|
|
|
Controls.Add(dataGridView);
|
|
|
|
|
Name = "FormShop";
|
|
|
|
|
Text = "Магазин";
|
2024-02-29 23:33:00 +04:00
|
|
|
|
Load += FormShop_Load;
|
2024-02-29 21:38:29 +04:00
|
|
|
|
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
|
|
|
|
ResumeLayout(false);
|
|
|
|
|
PerformLayout();
|
2024-02-28 22:55:32 +04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
2024-02-29 21:38:29 +04:00
|
|
|
|
|
|
|
|
|
private DataGridView dataGridView;
|
|
|
|
|
private Label labelName;
|
|
|
|
|
private Label labelAddress;
|
|
|
|
|
private Label labelOpen;
|
|
|
|
|
private TextBox textBoxName;
|
|
|
|
|
private TextBox textBoxAddress;
|
|
|
|
|
private DateTimePicker dateTimePickerOpen;
|
|
|
|
|
private Button buttonSave;
|
|
|
|
|
private Button buttonCancel;
|
2024-03-14 23:26:40 +04:00
|
|
|
|
private DataGridViewTextBoxColumn id;
|
|
|
|
|
private DataGridViewTextBoxColumn PastryName;
|
|
|
|
|
private DataGridViewTextBoxColumn Count;
|
2024-02-28 22:55:32 +04:00
|
|
|
|
}
|
|
|
|
|
}
|