2023-04-08 16:23:25 +04:00
|
|
|
|
namespace ComputersShopView
|
|
|
|
|
{
|
|
|
|
|
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()
|
|
|
|
|
{
|
2023-04-09 19:52:16 +04:00
|
|
|
|
dateTimePicker = new DateTimePicker();
|
|
|
|
|
textBoxName = new TextBox();
|
2023-04-08 16:23:25 +04:00
|
|
|
|
textBoxAddress = new TextBox();
|
2023-04-09 19:52:16 +04:00
|
|
|
|
labelTime = new Label();
|
|
|
|
|
labelAddress = new Label();
|
2023-04-08 16:23:25 +04:00
|
|
|
|
dataGridView = new DataGridView();
|
2023-04-09 19:52:16 +04:00
|
|
|
|
ColumnID = new DataGridViewTextBoxColumn();
|
|
|
|
|
ColumnManufactureName = new DataGridViewTextBoxColumn();
|
|
|
|
|
Цена = new DataGridViewTextBoxColumn();
|
|
|
|
|
ColumnCount = new DataGridViewTextBoxColumn();
|
|
|
|
|
labelShop = new Label();
|
2023-04-08 16:23:25 +04:00
|
|
|
|
buttonSave = new Button();
|
|
|
|
|
buttonCancel = new Button();
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
|
|
|
|
|
SuspendLayout();
|
|
|
|
|
//
|
2023-04-09 19:52:16 +04:00
|
|
|
|
// dateTimePicker
|
2023-04-08 16:23:25 +04:00
|
|
|
|
//
|
2023-04-09 19:52:16 +04:00
|
|
|
|
dateTimePicker.Location = new Point(384, 27);
|
|
|
|
|
dateTimePicker.Name = "dateTimePicker";
|
|
|
|
|
dateTimePicker.Size = new Size(207, 23);
|
|
|
|
|
dateTimePicker.TabIndex = 26;
|
2023-04-08 16:23:25 +04:00
|
|
|
|
//
|
2023-04-09 19:52:16 +04:00
|
|
|
|
// textBoxName
|
2023-04-08 16:23:25 +04:00
|
|
|
|
//
|
2023-04-09 19:52:16 +04:00
|
|
|
|
textBoxName.Location = new Point(10, 27);
|
|
|
|
|
textBoxName.Name = "textBoxName";
|
|
|
|
|
textBoxName.Size = new Size(141, 23);
|
|
|
|
|
textBoxName.TabIndex = 25;
|
2023-04-08 16:23:25 +04:00
|
|
|
|
//
|
|
|
|
|
// textBoxAddress
|
|
|
|
|
//
|
2023-04-09 19:52:16 +04:00
|
|
|
|
textBoxAddress.Location = new Point(158, 27);
|
2023-04-08 16:23:25 +04:00
|
|
|
|
textBoxAddress.Name = "textBoxAddress";
|
2023-04-09 19:52:16 +04:00
|
|
|
|
textBoxAddress.Size = new Size(221, 23);
|
|
|
|
|
textBoxAddress.TabIndex = 24;
|
|
|
|
|
//
|
|
|
|
|
// labelTime
|
|
|
|
|
//
|
|
|
|
|
labelTime.AutoSize = true;
|
|
|
|
|
labelTime.Location = new Point(384, 9);
|
|
|
|
|
labelTime.Name = "labelTime";
|
|
|
|
|
labelTime.Size = new Size(87, 15);
|
|
|
|
|
labelTime.TabIndex = 23;
|
|
|
|
|
labelTime.Text = "Дата открытия";
|
|
|
|
|
//
|
|
|
|
|
// labelAddress
|
|
|
|
|
//
|
|
|
|
|
labelAddress.AutoSize = true;
|
|
|
|
|
labelAddress.Location = new Point(158, 9);
|
|
|
|
|
labelAddress.Name = "labelAddress";
|
|
|
|
|
labelAddress.Size = new Size(40, 15);
|
|
|
|
|
labelAddress.TabIndex = 22;
|
|
|
|
|
labelAddress.Text = "Адрес";
|
2023-04-08 16:23:25 +04:00
|
|
|
|
//
|
|
|
|
|
// dataGridView
|
|
|
|
|
//
|
2023-04-09 19:52:16 +04:00
|
|
|
|
dataGridView.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
2023-04-08 16:23:25 +04:00
|
|
|
|
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
2023-04-09 19:52:16 +04:00
|
|
|
|
dataGridView.Columns.AddRange(new DataGridViewColumn[] { ColumnID, ColumnManufactureName, Цена, ColumnCount });
|
|
|
|
|
dataGridView.Location = new Point(10, 56);
|
2023-04-08 16:23:25 +04:00
|
|
|
|
dataGridView.Name = "dataGridView";
|
2023-04-09 19:52:16 +04:00
|
|
|
|
dataGridView.RowHeadersWidth = 62;
|
2023-04-08 16:23:25 +04:00
|
|
|
|
dataGridView.RowTemplate.Height = 25;
|
2023-04-09 19:52:16 +04:00
|
|
|
|
dataGridView.Size = new Size(581, 327);
|
|
|
|
|
dataGridView.TabIndex = 21;
|
|
|
|
|
//
|
|
|
|
|
// ColumnID
|
2023-04-08 16:23:25 +04:00
|
|
|
|
//
|
2023-04-09 19:52:16 +04:00
|
|
|
|
ColumnID.HeaderText = "ID";
|
|
|
|
|
ColumnID.MinimumWidth = 8;
|
|
|
|
|
ColumnID.Name = "ColumnID";
|
|
|
|
|
ColumnID.Visible = false;
|
|
|
|
|
ColumnID.Width = 150;
|
2023-04-08 16:23:25 +04:00
|
|
|
|
//
|
2023-04-09 19:52:16 +04:00
|
|
|
|
// ColumnManufactureName
|
2023-04-08 16:23:25 +04:00
|
|
|
|
//
|
2023-04-09 19:52:16 +04:00
|
|
|
|
ColumnManufactureName.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
ColumnManufactureName.HeaderText = "Название компьютера";
|
|
|
|
|
ColumnManufactureName.MinimumWidth = 8;
|
|
|
|
|
ColumnManufactureName.Name = "ColumnManufactureName";
|
2023-04-08 16:23:25 +04:00
|
|
|
|
//
|
2023-04-09 19:52:16 +04:00
|
|
|
|
// Цена
|
2023-04-08 16:23:25 +04:00
|
|
|
|
//
|
2023-04-09 19:52:16 +04:00
|
|
|
|
Цена.HeaderText = "Цена";
|
|
|
|
|
Цена.MinimumWidth = 6;
|
|
|
|
|
Цена.Name = "Цена";
|
|
|
|
|
Цена.Width = 125;
|
2023-04-08 16:23:25 +04:00
|
|
|
|
//
|
2023-04-09 19:52:16 +04:00
|
|
|
|
// ColumnCount
|
|
|
|
|
//
|
|
|
|
|
ColumnCount.HeaderText = "Количество";
|
|
|
|
|
ColumnCount.MinimumWidth = 8;
|
|
|
|
|
ColumnCount.Name = "ColumnCount";
|
|
|
|
|
ColumnCount.Width = 150;
|
|
|
|
|
//
|
|
|
|
|
// labelShop
|
|
|
|
|
//
|
|
|
|
|
labelShop.AutoSize = true;
|
|
|
|
|
labelShop.Location = new Point(10, 9);
|
|
|
|
|
labelShop.Name = "labelShop";
|
|
|
|
|
labelShop.Size = new Size(54, 15);
|
|
|
|
|
labelShop.TabIndex = 20;
|
|
|
|
|
labelShop.Text = "Магазин";
|
2023-04-08 16:23:25 +04:00
|
|
|
|
//
|
|
|
|
|
// buttonSave
|
|
|
|
|
//
|
2023-04-09 19:52:16 +04:00
|
|
|
|
buttonSave.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
|
|
|
buttonSave.Location = new Point(363, 392);
|
2023-04-08 16:23:25 +04:00
|
|
|
|
buttonSave.Name = "buttonSave";
|
2023-04-09 19:52:16 +04:00
|
|
|
|
buttonSave.Size = new Size(120, 22);
|
|
|
|
|
buttonSave.TabIndex = 28;
|
2023-04-08 16:23:25 +04:00
|
|
|
|
buttonSave.Text = "Сохранить";
|
|
|
|
|
buttonSave.UseVisualStyleBackColor = true;
|
2023-04-09 19:52:16 +04:00
|
|
|
|
buttonSave.Click += ButtonSave_Click;
|
2023-04-08 16:23:25 +04:00
|
|
|
|
//
|
|
|
|
|
// buttonCancel
|
|
|
|
|
//
|
2023-04-09 19:52:16 +04:00
|
|
|
|
buttonCancel.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
|
|
|
buttonCancel.Location = new Point(488, 392);
|
2023-04-08 16:23:25 +04:00
|
|
|
|
buttonCancel.Name = "buttonCancel";
|
2023-04-09 19:52:16 +04:00
|
|
|
|
buttonCancel.Size = new Size(103, 22);
|
|
|
|
|
buttonCancel.TabIndex = 27;
|
|
|
|
|
buttonCancel.Text = "Отмена";
|
2023-04-08 16:23:25 +04:00
|
|
|
|
buttonCancel.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonCancel.Click += ButtonCancel_Click;
|
|
|
|
|
//
|
|
|
|
|
// FormShop
|
|
|
|
|
//
|
|
|
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
|
|
|
AutoScaleMode = AutoScaleMode.Font;
|
2023-04-09 19:52:16 +04:00
|
|
|
|
ClientSize = new Size(616, 425);
|
2023-04-08 16:23:25 +04:00
|
|
|
|
Controls.Add(buttonSave);
|
2023-04-09 19:52:16 +04:00
|
|
|
|
Controls.Add(buttonCancel);
|
|
|
|
|
Controls.Add(dateTimePicker);
|
|
|
|
|
Controls.Add(textBoxName);
|
2023-04-08 16:23:25 +04:00
|
|
|
|
Controls.Add(textBoxAddress);
|
2023-04-09 19:52:16 +04:00
|
|
|
|
Controls.Add(labelTime);
|
|
|
|
|
Controls.Add(labelAddress);
|
|
|
|
|
Controls.Add(dataGridView);
|
|
|
|
|
Controls.Add(labelShop);
|
|
|
|
|
Margin = new Padding(3, 2, 3, 2);
|
2023-04-08 16:23:25 +04:00
|
|
|
|
Name = "FormShop";
|
2023-04-09 19:52:16 +04:00
|
|
|
|
Text = "FormShop";
|
2023-04-08 16:23:25 +04:00
|
|
|
|
Load += FormShop_Load;
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
|
|
|
|
ResumeLayout(false);
|
|
|
|
|
PerformLayout();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
2023-04-09 19:52:16 +04:00
|
|
|
|
private DateTimePicker dateTimePicker;
|
|
|
|
|
private TextBox textBoxName;
|
2023-04-08 16:23:25 +04:00
|
|
|
|
private TextBox textBoxAddress;
|
2023-04-09 19:52:16 +04:00
|
|
|
|
private Label labelTime;
|
|
|
|
|
private Label labelAddress;
|
2023-04-08 16:23:25 +04:00
|
|
|
|
private DataGridView dataGridView;
|
2023-04-09 19:52:16 +04:00
|
|
|
|
private Label labelShop;
|
2023-04-08 16:23:25 +04:00
|
|
|
|
private Button buttonSave;
|
|
|
|
|
private Button buttonCancel;
|
2023-04-09 19:52:16 +04:00
|
|
|
|
private DataGridViewTextBoxColumn ColumnID;
|
|
|
|
|
private DataGridViewTextBoxColumn ColumnManufactureName;
|
|
|
|
|
private DataGridViewTextBoxColumn Цена;
|
|
|
|
|
private DataGridViewTextBoxColumn ColumnCount;
|
2023-04-08 16:23:25 +04:00
|
|
|
|
}
|
|
|
|
|
}
|