2024-03-10 23:03:51 +04:00
|
|
|
|
namespace SushiBarView.Shops
|
|
|
|
|
{
|
|
|
|
|
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()
|
|
|
|
|
{
|
|
|
|
|
buttonCancel = new Button();
|
|
|
|
|
buttonSave = new Button();
|
|
|
|
|
textBoxAddress = new TextBox();
|
|
|
|
|
labelAddress = new Label();
|
|
|
|
|
labelName = new Label();
|
|
|
|
|
dateTimePickerDateOpening = new DateTimePicker();
|
2024-03-11 12:09:55 +04:00
|
|
|
|
groupBoxComponents = new GroupBox();
|
|
|
|
|
buttonRefresh = new Button();
|
|
|
|
|
buttonDelete = new Button();
|
|
|
|
|
buttonUpdate = new Button();
|
|
|
|
|
buttonAdd = new Button();
|
|
|
|
|
dataGridView = new DataGridView();
|
|
|
|
|
ColumnId = new DataGridViewTextBoxColumn();
|
|
|
|
|
ColumnSushiName = new DataGridViewTextBoxColumn();
|
|
|
|
|
ColumnCount = new DataGridViewTextBoxColumn();
|
|
|
|
|
textBoxName = new TextBox();
|
2024-04-07 21:17:08 +04:00
|
|
|
|
labelDateOpening = new Label();
|
|
|
|
|
labelMaxCount = new Label();
|
|
|
|
|
numericUpDownMaxCount = new NumericUpDown();
|
2024-03-11 12:09:55 +04:00
|
|
|
|
groupBoxComponents.SuspendLayout();
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
|
2024-04-07 21:17:08 +04:00
|
|
|
|
((System.ComponentModel.ISupportInitialize)numericUpDownMaxCount).BeginInit();
|
2024-03-10 23:03:51 +04:00
|
|
|
|
SuspendLayout();
|
|
|
|
|
//
|
|
|
|
|
// buttonCancel
|
|
|
|
|
//
|
|
|
|
|
buttonCancel.Anchor = AnchorStyles.None;
|
2024-03-11 12:09:55 +04:00
|
|
|
|
buttonCancel.Location = new Point(710, 431);
|
2024-03-10 23:03:51 +04:00
|
|
|
|
buttonCancel.Name = "buttonCancel";
|
|
|
|
|
buttonCancel.Size = new Size(116, 39);
|
|
|
|
|
buttonCancel.TabIndex = 11;
|
|
|
|
|
buttonCancel.Text = "Отмена";
|
|
|
|
|
buttonCancel.UseVisualStyleBackColor = true;
|
2024-03-11 12:09:55 +04:00
|
|
|
|
buttonCancel.Click += buttonCancel_Click;
|
2024-03-10 23:03:51 +04:00
|
|
|
|
//
|
|
|
|
|
// buttonSave
|
|
|
|
|
//
|
|
|
|
|
buttonSave.Anchor = AnchorStyles.None;
|
2024-03-11 12:09:55 +04:00
|
|
|
|
buttonSave.Location = new Point(471, 431);
|
2024-03-10 23:03:51 +04:00
|
|
|
|
buttonSave.Name = "buttonSave";
|
|
|
|
|
buttonSave.Size = new Size(116, 39);
|
|
|
|
|
buttonSave.TabIndex = 10;
|
|
|
|
|
buttonSave.Text = "Сохранить";
|
|
|
|
|
buttonSave.UseVisualStyleBackColor = true;
|
2024-03-11 12:09:55 +04:00
|
|
|
|
buttonSave.Click += buttonSave_Click;
|
2024-03-10 23:03:51 +04:00
|
|
|
|
//
|
|
|
|
|
// textBoxAddress
|
|
|
|
|
//
|
|
|
|
|
textBoxAddress.Anchor = AnchorStyles.None;
|
2024-03-11 12:09:55 +04:00
|
|
|
|
textBoxAddress.Location = new Point(124, 46);
|
2024-03-10 23:03:51 +04:00
|
|
|
|
textBoxAddress.Name = "textBoxAddress";
|
2024-03-11 12:09:55 +04:00
|
|
|
|
textBoxAddress.Size = new Size(330, 27);
|
2024-03-10 23:03:51 +04:00
|
|
|
|
textBoxAddress.TabIndex = 9;
|
|
|
|
|
//
|
|
|
|
|
// labelAddress
|
|
|
|
|
//
|
|
|
|
|
labelAddress.Anchor = AnchorStyles.None;
|
|
|
|
|
labelAddress.AutoSize = true;
|
|
|
|
|
labelAddress.Font = new Font("Candara", 12F);
|
2024-03-11 12:09:55 +04:00
|
|
|
|
labelAddress.Location = new Point(24, 46);
|
2024-03-10 23:03:51 +04:00
|
|
|
|
labelAddress.Margin = new Padding(4, 0, 4, 0);
|
|
|
|
|
labelAddress.Name = "labelAddress";
|
|
|
|
|
labelAddress.Size = new Size(63, 24);
|
|
|
|
|
labelAddress.TabIndex = 7;
|
|
|
|
|
labelAddress.Text = "Адрес";
|
|
|
|
|
//
|
|
|
|
|
// labelName
|
|
|
|
|
//
|
|
|
|
|
labelName.Anchor = AnchorStyles.None;
|
|
|
|
|
labelName.AutoSize = true;
|
|
|
|
|
labelName.Font = new Font("Candara", 12F);
|
2024-03-11 12:09:55 +04:00
|
|
|
|
labelName.Location = new Point(24, 9);
|
2024-03-10 23:03:51 +04:00
|
|
|
|
labelName.Margin = new Padding(4, 0, 4, 0);
|
|
|
|
|
labelName.Name = "labelName";
|
|
|
|
|
labelName.Size = new Size(93, 24);
|
|
|
|
|
labelName.TabIndex = 6;
|
|
|
|
|
labelName.Text = "Название";
|
|
|
|
|
//
|
|
|
|
|
// dateTimePickerDateOpening
|
|
|
|
|
//
|
2024-03-11 12:09:55 +04:00
|
|
|
|
dateTimePickerDateOpening.Location = new Point(471, 46);
|
2024-03-10 23:03:51 +04:00
|
|
|
|
dateTimePickerDateOpening.Name = "dateTimePickerDateOpening";
|
|
|
|
|
dateTimePickerDateOpening.Size = new Size(355, 27);
|
|
|
|
|
dateTimePickerDateOpening.TabIndex = 12;
|
|
|
|
|
//
|
2024-03-11 12:09:55 +04:00
|
|
|
|
// 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(11, 93);
|
|
|
|
|
groupBoxComponents.Margin = new Padding(2, 3, 2, 3);
|
|
|
|
|
groupBoxComponents.Name = "groupBoxComponents";
|
|
|
|
|
groupBoxComponents.Padding = new Padding(2, 3, 2, 3);
|
|
|
|
|
groupBoxComponents.Size = new Size(443, 396);
|
|
|
|
|
groupBoxComponents.TabIndex = 18;
|
|
|
|
|
groupBoxComponents.TabStop = false;
|
|
|
|
|
//
|
|
|
|
|
// 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;
|
|
|
|
|
//
|
|
|
|
|
// 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;
|
|
|
|
|
//
|
|
|
|
|
// 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;
|
|
|
|
|
//
|
|
|
|
|
// 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;
|
|
|
|
|
//
|
|
|
|
|
// dataGridView
|
|
|
|
|
//
|
|
|
|
|
dataGridView.AllowUserToAddRows = false;
|
|
|
|
|
dataGridView.AllowUserToResizeRows = false;
|
|
|
|
|
dataGridView.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
|
|
|
|
|
dataGridView.BackgroundColor = Color.FromArgb(255, 192, 192);
|
|
|
|
|
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|
|
|
|
dataGridView.Columns.AddRange(new DataGridViewColumn[] { ColumnId, ColumnSushiName, 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(419, 350);
|
|
|
|
|
dataGridView.TabIndex = 5;
|
|
|
|
|
//
|
|
|
|
|
// ColumnId
|
|
|
|
|
//
|
|
|
|
|
ColumnId.HeaderText = "id";
|
|
|
|
|
ColumnId.MinimumWidth = 6;
|
|
|
|
|
ColumnId.Name = "ColumnId";
|
|
|
|
|
ColumnId.Visible = false;
|
|
|
|
|
//
|
|
|
|
|
// ColumnSushiName
|
|
|
|
|
//
|
|
|
|
|
ColumnSushiName.HeaderText = "Название Суши";
|
|
|
|
|
ColumnSushiName.MinimumWidth = 6;
|
|
|
|
|
ColumnSushiName.Name = "ColumnSushiName";
|
|
|
|
|
//
|
|
|
|
|
// ColumnCount
|
|
|
|
|
//
|
|
|
|
|
ColumnCount.HeaderText = "Количество";
|
|
|
|
|
ColumnCount.MinimumWidth = 6;
|
|
|
|
|
ColumnCount.Name = "ColumnCount";
|
|
|
|
|
//
|
|
|
|
|
// textBoxName
|
|
|
|
|
//
|
|
|
|
|
textBoxName.Anchor = AnchorStyles.None;
|
|
|
|
|
textBoxName.Location = new Point(124, 6);
|
|
|
|
|
textBoxName.Name = "textBoxName";
|
|
|
|
|
textBoxName.Size = new Size(330, 27);
|
|
|
|
|
textBoxName.TabIndex = 19;
|
|
|
|
|
//
|
2024-04-07 21:17:08 +04:00
|
|
|
|
// labelDateOpening
|
|
|
|
|
//
|
|
|
|
|
labelDateOpening.Anchor = AnchorStyles.None;
|
|
|
|
|
labelDateOpening.AutoSize = true;
|
|
|
|
|
labelDateOpening.Font = new Font("Candara", 12F);
|
|
|
|
|
labelDateOpening.Location = new Point(471, 6);
|
|
|
|
|
labelDateOpening.Margin = new Padding(4, 0, 4, 0);
|
|
|
|
|
labelDateOpening.Name = "labelDateOpening";
|
|
|
|
|
labelDateOpening.Size = new Size(140, 24);
|
|
|
|
|
labelDateOpening.TabIndex = 13;
|
|
|
|
|
labelDateOpening.Text = "Дата открытия";
|
|
|
|
|
//
|
|
|
|
|
// labelMaxCount
|
|
|
|
|
//
|
|
|
|
|
labelMaxCount.AutoSize = true;
|
|
|
|
|
labelMaxCount.Font = new Font("Candara", 12F, FontStyle.Regular, GraphicsUnit.Point, 204);
|
|
|
|
|
labelMaxCount.Location = new Point(471, 120);
|
|
|
|
|
labelMaxCount.Name = "labelMaxCount";
|
|
|
|
|
labelMaxCount.Size = new Size(261, 24);
|
|
|
|
|
labelMaxCount.TabIndex = 20;
|
|
|
|
|
labelMaxCount.Text = "Сколько изделий максимум?";
|
|
|
|
|
//
|
|
|
|
|
// numericUpDownMaxCount
|
|
|
|
|
//
|
|
|
|
|
numericUpDownMaxCount.Location = new Point(471, 154);
|
|
|
|
|
numericUpDownMaxCount.Name = "numericUpDownMaxCount";
|
|
|
|
|
numericUpDownMaxCount.Size = new Size(355, 27);
|
|
|
|
|
numericUpDownMaxCount.TabIndex = 21;
|
|
|
|
|
//
|
2024-03-10 23:03:51 +04:00
|
|
|
|
// FormShop
|
|
|
|
|
//
|
|
|
|
|
AutoScaleDimensions = new SizeF(8F, 20F);
|
|
|
|
|
AutoScaleMode = AutoScaleMode.Font;
|
2024-03-11 12:09:55 +04:00
|
|
|
|
ClientSize = new Size(849, 522);
|
2024-04-07 21:17:08 +04:00
|
|
|
|
Controls.Add(numericUpDownMaxCount);
|
|
|
|
|
Controls.Add(labelMaxCount);
|
2024-03-11 12:09:55 +04:00
|
|
|
|
Controls.Add(textBoxName);
|
|
|
|
|
Controls.Add(groupBoxComponents);
|
2024-03-10 23:03:51 +04:00
|
|
|
|
Controls.Add(labelDateOpening);
|
|
|
|
|
Controls.Add(dateTimePickerDateOpening);
|
|
|
|
|
Controls.Add(buttonCancel);
|
|
|
|
|
Controls.Add(buttonSave);
|
|
|
|
|
Controls.Add(textBoxAddress);
|
|
|
|
|
Controls.Add(labelAddress);
|
|
|
|
|
Controls.Add(labelName);
|
|
|
|
|
Name = "FormShop";
|
|
|
|
|
Text = "Магазин";
|
2024-03-11 12:09:55 +04:00
|
|
|
|
Load += FormShop_Load;
|
|
|
|
|
groupBoxComponents.ResumeLayout(false);
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
2024-04-07 21:17:08 +04:00
|
|
|
|
((System.ComponentModel.ISupportInitialize)numericUpDownMaxCount).EndInit();
|
2024-03-10 23:03:51 +04:00
|
|
|
|
ResumeLayout(false);
|
|
|
|
|
PerformLayout();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
private Button buttonCancel;
|
|
|
|
|
private Button buttonSave;
|
|
|
|
|
private TextBox textBoxAddress;
|
|
|
|
|
private Label labelAddress;
|
|
|
|
|
private Label labelName;
|
|
|
|
|
private DateTimePicker dateTimePickerDateOpening;
|
2024-03-11 12:09:55 +04:00
|
|
|
|
private GroupBox groupBoxComponents;
|
|
|
|
|
private Button buttonRefresh;
|
|
|
|
|
private Button buttonDelete;
|
|
|
|
|
private Button buttonUpdate;
|
|
|
|
|
private Button buttonAdd;
|
|
|
|
|
private DataGridView dataGridView;
|
|
|
|
|
private TextBox textBoxName;
|
|
|
|
|
private DataGridViewTextBoxColumn ColumnId;
|
|
|
|
|
private DataGridViewTextBoxColumn ColumnSushiName;
|
|
|
|
|
private DataGridViewTextBoxColumn ColumnCount;
|
2024-04-07 21:17:08 +04:00
|
|
|
|
private Label labelDateOpening;
|
|
|
|
|
private Label labelMaxCount;
|
|
|
|
|
private NumericUpDown numericUpDownMaxCount;
|
2024-03-10 23:03:51 +04:00
|
|
|
|
}
|
|
|
|
|
}
|