221 lines
7.2 KiB
C#
221 lines
7.2 KiB
C#
|
namespace GiftShopView
|
|||
|
{
|
|||
|
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()
|
|||
|
{
|
|||
|
shopNameLabel = new Label();
|
|||
|
shopAddressLabel = new Label();
|
|||
|
openingDateLabel = new Label();
|
|||
|
addressTextBox = new TextBox();
|
|||
|
openingDatePicker = new DateTimePicker();
|
|||
|
dataGridView = new DataGridView();
|
|||
|
PackageName = new DataGridViewTextBoxColumn();
|
|||
|
PackagePrice = new DataGridViewTextBoxColumn();
|
|||
|
PackageCount = new DataGridViewTextBoxColumn();
|
|||
|
SaveButton = new Button();
|
|||
|
ButtonCancel = new Button();
|
|||
|
nameTextBox = new TextBox();
|
|||
|
labelCapacity = new Label();
|
|||
|
CapacityUpDown = new NumericUpDown();
|
|||
|
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
|
|||
|
SuspendLayout();
|
|||
|
//
|
|||
|
// shopNameLabel
|
|||
|
//
|
|||
|
shopNameLabel.AutoSize = true;
|
|||
|
shopNameLabel.Location = new Point(18, 15);
|
|||
|
shopNameLabel.Margin = new Padding(4, 0, 4, 0);
|
|||
|
shopNameLabel.Name = "shopNameLabel";
|
|||
|
shopNameLabel.Size = new Size(179, 25);
|
|||
|
shopNameLabel.TabIndex = 0;
|
|||
|
shopNameLabel.Text = "Название магазина: ";
|
|||
|
//
|
|||
|
// shopAddressLabel
|
|||
|
//
|
|||
|
shopAddressLabel.AutoSize = true;
|
|||
|
shopAddressLabel.Location = new Point(18, 66);
|
|||
|
shopAddressLabel.Margin = new Padding(4, 0, 4, 0);
|
|||
|
shopAddressLabel.Name = "shopAddressLabel";
|
|||
|
shopAddressLabel.Size = new Size(151, 25);
|
|||
|
shopAddressLabel.TabIndex = 1;
|
|||
|
shopAddressLabel.Text = "Адрес магазина: ";
|
|||
|
//
|
|||
|
// openingDateLabel
|
|||
|
//
|
|||
|
openingDateLabel.AutoSize = true;
|
|||
|
openingDateLabel.Location = new Point(18, 120);
|
|||
|
openingDateLabel.Margin = new Padding(4, 0, 4, 0);
|
|||
|
openingDateLabel.Name = "openingDateLabel";
|
|||
|
openingDateLabel.Size = new Size(140, 25);
|
|||
|
openingDateLabel.TabIndex = 2;
|
|||
|
openingDateLabel.Text = "Дата открытия: ";
|
|||
|
//
|
|||
|
// addressTextBox
|
|||
|
//
|
|||
|
addressTextBox.Location = new Point(204, 62);
|
|||
|
addressTextBox.Margin = new Padding(4, 5, 4, 5);
|
|||
|
addressTextBox.Name = "addressTextBox";
|
|||
|
addressTextBox.Size = new Size(246, 31);
|
|||
|
addressTextBox.TabIndex = 4;
|
|||
|
//
|
|||
|
// openingDatePicker
|
|||
|
//
|
|||
|
openingDatePicker.Location = new Point(204, 114);
|
|||
|
openingDatePicker.Margin = new Padding(4);
|
|||
|
openingDatePicker.Name = "openingDatePicker";
|
|||
|
openingDatePicker.Size = new Size(246, 31);
|
|||
|
openingDatePicker.TabIndex = 9;
|
|||
|
//
|
|||
|
// dataGridView
|
|||
|
//
|
|||
|
dataGridView.AllowUserToAddRows = false;
|
|||
|
dataGridView.AllowUserToDeleteRows = false;
|
|||
|
dataGridView.BackgroundColor = SystemColors.Window;
|
|||
|
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|||
|
dataGridView.Columns.AddRange(new DataGridViewColumn[] { PackageName, PackagePrice, PackageCount });
|
|||
|
dataGridView.Location = new Point(20, 225);
|
|||
|
dataGridView.Margin = new Padding(4, 5, 4, 5);
|
|||
|
dataGridView.MultiSelect = false;
|
|||
|
dataGridView.Name = "dataGridView";
|
|||
|
dataGridView.RowHeadersWidth = 51;
|
|||
|
dataGridView.RowTemplate.Height = 25;
|
|||
|
dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
|||
|
dataGridView.Size = new Size(1109, 418);
|
|||
|
dataGridView.TabIndex = 6;
|
|||
|
//
|
|||
|
// PackageName
|
|||
|
//
|
|||
|
PackageName.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
|||
|
PackageName.HeaderText = "Название изделия";
|
|||
|
PackageName.MinimumWidth = 6;
|
|||
|
PackageName.Name = "PackageName";
|
|||
|
//
|
|||
|
// PackagePrice
|
|||
|
//
|
|||
|
PackagePrice.HeaderText = "Цена";
|
|||
|
PackagePrice.MinimumWidth = 6;
|
|||
|
PackagePrice.Name = "PackagePrice";
|
|||
|
PackagePrice.Width = 125;
|
|||
|
//
|
|||
|
// PackageCount
|
|||
|
//
|
|||
|
PackageCount.HeaderText = "Количество";
|
|||
|
PackageCount.MinimumWidth = 6;
|
|||
|
PackageCount.Name = "PackageCount";
|
|||
|
PackageCount.Width = 125;
|
|||
|
//
|
|||
|
// SaveButton
|
|||
|
//
|
|||
|
SaveButton.Location = new Point(789, 671);
|
|||
|
SaveButton.Margin = new Padding(4, 5, 4, 5);
|
|||
|
SaveButton.Name = "SaveButton";
|
|||
|
SaveButton.Size = new Size(164, 59);
|
|||
|
SaveButton.TabIndex = 7;
|
|||
|
SaveButton.Text = "Сохранить";
|
|||
|
SaveButton.UseVisualStyleBackColor = true;
|
|||
|
SaveButton.Click += SaveButton_Click;
|
|||
|
//
|
|||
|
// ButtonCancel
|
|||
|
//
|
|||
|
ButtonCancel.Location = new Point(961, 671);
|
|||
|
ButtonCancel.Margin = new Padding(4, 5, 4, 5);
|
|||
|
ButtonCancel.Name = "ButtonCancel";
|
|||
|
ButtonCancel.Size = new Size(164, 59);
|
|||
|
ButtonCancel.TabIndex = 8;
|
|||
|
ButtonCancel.Text = "Отменить";
|
|||
|
ButtonCancel.UseVisualStyleBackColor = true;
|
|||
|
ButtonCancel.Click += ButtonCancel_Click;
|
|||
|
//
|
|||
|
// nameTextBox
|
|||
|
//
|
|||
|
nameTextBox.Location = new Point(204, 11);
|
|||
|
nameTextBox.Margin = new Padding(4);
|
|||
|
nameTextBox.Name = "nameTextBox";
|
|||
|
nameTextBox.Size = new Size(246, 31);
|
|||
|
nameTextBox.TabIndex = 10;
|
|||
|
//
|
|||
|
// labelCapacity
|
|||
|
//
|
|||
|
labelCapacity.AutoSize = true;
|
|||
|
labelCapacity.Location = new Point(20, 167);
|
|||
|
labelCapacity.Margin = new Padding(4, 0, 4, 0);
|
|||
|
labelCapacity.Name = "labelCapacity";
|
|||
|
labelCapacity.Size = new Size(121, 25);
|
|||
|
labelCapacity.TabIndex = 11;
|
|||
|
labelCapacity.Text = "Вместимость:";
|
|||
|
//
|
|||
|
// CapacityUpDown
|
|||
|
//
|
|||
|
CapacityUpDown.Location = new Point(204, 161);
|
|||
|
CapacityUpDown.Name = "CapacityUpDown";
|
|||
|
CapacityUpDown.Size = new Size(246, 31);
|
|||
|
CapacityUpDown.TabIndex = 12;
|
|||
|
//
|
|||
|
// FormShop
|
|||
|
//
|
|||
|
AutoScaleDimensions = new SizeF(10F, 25F);
|
|||
|
AutoScaleMode = AutoScaleMode.Font;
|
|||
|
ClientSize = new Size(1142, 750);
|
|||
|
Controls.Add(CapacityUpDown);
|
|||
|
Controls.Add(labelCapacity);
|
|||
|
Controls.Add(nameTextBox);
|
|||
|
Controls.Add(ButtonCancel);
|
|||
|
Controls.Add(SaveButton);
|
|||
|
Controls.Add(dataGridView);
|
|||
|
Controls.Add(openingDatePicker);
|
|||
|
Controls.Add(addressTextBox);
|
|||
|
Controls.Add(openingDateLabel);
|
|||
|
Controls.Add(shopAddressLabel);
|
|||
|
Controls.Add(shopNameLabel);
|
|||
|
Margin = new Padding(4, 5, 4, 5);
|
|||
|
Name = "FormShop";
|
|||
|
Text = "Магазин";
|
|||
|
Load += FormShop_Load;
|
|||
|
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
|||
|
ResumeLayout(false);
|
|||
|
PerformLayout();
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
private Label shopNameLabel;
|
|||
|
private Label shopAddressLabel;
|
|||
|
private Label openingDateLabel;
|
|||
|
private TextBox addressTextBox;
|
|||
|
private DateTimePicker openingDatePicker;
|
|||
|
private DataGridView dataGridView;
|
|||
|
private Button SaveButton;
|
|||
|
private Button ButtonCancel;
|
|||
|
private DataGridViewTextBoxColumn PackageName;
|
|||
|
private DataGridViewTextBoxColumn PackagePrice;
|
|||
|
private DataGridViewTextBoxColumn PackageCount;
|
|||
|
private TextBox nameTextBox;
|
|||
|
private Label labelCapacity;
|
|||
|
private NumericUpDown CapacityUpDown;
|
|||
|
}
|
|||
|
}
|