/
DaNN26
/
SQLProvider
Обзор
Документация
Войти
/
DaNN26
/
SQLProvider
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
ProductCardControl.Designer.cs
198 строк
9 KB
DaNN
Добавьте файлы проекта.
27 май 2026, 12:50
27 май 2026, 12:50
4fe37b9
Код
Авторство
О чём код?
using System.Drawing; using System.Windows.Forms; namespace Demo { internal partial class ProductCardControl { private System.ComponentModel.IContainer components = null; private Panel photoPanel; private PictureBox photoPictureBox; private Panel infoPanel; private Label titleInfoLabel; private Label descriptionTitleLabel; private Label descriptionValueLabel; private Label manufacturerTitleLabel; private Label manufacturerValueLabel; private Label supplierTitleLabel; private Label supplierValueLabel; private Label unitTitleLabel; private Label unitValueLabel; private Label quantityTitleLabel; private Label quantityValueLabel; private Label priceTitleLabel; private Label oldPriceLabel; private Label newPriceLabel; private Label normalPriceLabel; private Panel discountPanel; private Label discountTitleLabel; private Label discountPercentLabel; protected override void Dispose(bool disposing) { if (disposing && components != null) { components.Dispose(); } base.Dispose(disposing); } private void InitializeComponent() { this.photoPanel = new Panel(); this.photoPictureBox = new PictureBox(); this.infoPanel = new Panel(); this.titleInfoLabel = new Label(); this.descriptionTitleLabel = new Label(); this.descriptionValueLabel = new Label(); this.manufacturerTitleLabel = new Label(); this.manufacturerValueLabel = new Label(); this.supplierTitleLabel = new Label(); this.supplierValueLabel = new Label(); this.unitTitleLabel = new Label(); this.unitValueLabel = new Label(); this.quantityTitleLabel = new Label(); this.quantityValueLabel = new Label(); this.priceTitleLabel = new Label(); this.oldPriceLabel = new Label(); this.newPriceLabel = new Label(); this.normalPriceLabel = new Label(); this.discountPanel = new Panel(); this.discountTitleLabel = new Label(); this.discountPercentLabel = new Label(); this.photoPanel.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.photoPictureBox)).BeginInit(); this.infoPanel.SuspendLayout(); this.discountPanel.SuspendLayout(); this.SuspendLayout(); this.BackColor = Color.White; this.BorderStyle = BorderStyle.FixedSingle; this.Font = new Font("Times New Roman", 11F); this.Margin = new Padding(0, 0, 0, 10); this.Size = new Size(820, 190); this.photoPanel.Anchor = AnchorStyles.Top | AnchorStyles.Left; this.photoPanel.BorderStyle = BorderStyle.FixedSingle; this.photoPanel.Location = new Point(15, 15); this.photoPanel.Size = new Size(175, 160); this.photoPanel.Controls.Add(this.photoPictureBox); this.photoPictureBox.Location = new Point(8, 8); this.photoPictureBox.Size = new Size(157, 142); this.photoPictureBox.SizeMode = PictureBoxSizeMode.Zoom; this.infoPanel.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.infoPanel.BorderStyle = BorderStyle.FixedSingle; this.infoPanel.Location = new Point(200, 15); this.infoPanel.Size = new Size(435, 160); this.infoPanel.Controls.Add(this.titleInfoLabel); this.infoPanel.Controls.Add(this.descriptionTitleLabel); this.infoPanel.Controls.Add(this.descriptionValueLabel); this.infoPanel.Controls.Add(this.manufacturerTitleLabel); this.infoPanel.Controls.Add(this.manufacturerValueLabel); this.infoPanel.Controls.Add(this.supplierTitleLabel); this.infoPanel.Controls.Add(this.supplierValueLabel); this.infoPanel.Controls.Add(this.unitTitleLabel); this.infoPanel.Controls.Add(this.unitValueLabel); this.infoPanel.Controls.Add(this.quantityTitleLabel); this.infoPanel.Controls.Add(this.quantityValueLabel); this.infoPanel.Controls.Add(this.priceTitleLabel); this.infoPanel.Controls.Add(this.oldPriceLabel); this.infoPanel.Controls.Add(this.newPriceLabel); this.infoPanel.Controls.Add(this.normalPriceLabel); this.titleInfoLabel.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.titleInfoLabel.Font = new Font("Times New Roman", 11F, FontStyle.Bold); this.titleInfoLabel.Location = new Point(10, 7); this.titleInfoLabel.Size = new Size(415, 22); this.descriptionTitleLabel.Text = "Описание товара:"; this.descriptionTitleLabel.Location = new Point(10, 31); this.descriptionTitleLabel.Size = new Size(125, 20); this.descriptionValueLabel.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.descriptionValueLabel.AutoEllipsis = true; this.descriptionValueLabel.Location = new Point(140, 31); this.descriptionValueLabel.Size = new Size(285, 20); this.manufacturerTitleLabel.Text = "Производитель:"; this.manufacturerTitleLabel.Location = new Point(10, 53); this.manufacturerTitleLabel.Size = new Size(125, 20); this.manufacturerValueLabel.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.manufacturerValueLabel.AutoEllipsis = true; this.manufacturerValueLabel.Location = new Point(140, 53); this.manufacturerValueLabel.Size = new Size(285, 20); this.supplierTitleLabel.Text = "Поставщик:"; this.supplierTitleLabel.Location = new Point(10, 75); this.supplierTitleLabel.Size = new Size(125, 20); this.supplierValueLabel.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.supplierValueLabel.AutoEllipsis = true; this.supplierValueLabel.Location = new Point(140, 75); this.supplierValueLabel.Size = new Size(285, 20); this.unitTitleLabel.Text = "Единица измерения:"; this.unitTitleLabel.Location = new Point(10, 97); this.unitTitleLabel.Size = new Size(125, 20); this.unitValueLabel.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.unitValueLabel.AutoEllipsis = true; this.unitValueLabel.Location = new Point(140, 97); this.unitValueLabel.Size = new Size(285, 20); this.quantityTitleLabel.Text = "Количество на складе:"; this.quantityTitleLabel.Location = new Point(10, 119); this.quantityTitleLabel.Size = new Size(160, 20); this.quantityValueLabel.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.quantityValueLabel.Location = new Point(170, 119); this.quantityValueLabel.Size = new Size(255, 20); this.priceTitleLabel.Text = "Цена:"; this.priceTitleLabel.Location = new Point(10, 140); this.priceTitleLabel.Size = new Size(50, 22); this.oldPriceLabel.ForeColor = Color.Red; this.oldPriceLabel.Font = new Font("Times New Roman", 11F, FontStyle.Strikeout); this.oldPriceLabel.Location = new Point(60, 140); this.oldPriceLabel.Size = new Size(115, 22); this.newPriceLabel.ForeColor = Color.Black; this.newPriceLabel.Location = new Point(178, 140); this.newPriceLabel.Size = new Size(130, 22); this.normalPriceLabel.Location = new Point(60, 140); this.normalPriceLabel.Size = new Size(130, 22); this.discountPanel.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.discountPanel.BorderStyle = BorderStyle.FixedSingle; this.discountPanel.Location = new Point(650, 15); this.discountPanel.Size = new Size(155, 160); this.discountPanel.Controls.Add(this.discountTitleLabel); this.discountPanel.Controls.Add(this.discountPercentLabel); this.discountTitleLabel.Text = "Действующая\nскидка"; this.discountTitleLabel.Location = new Point(8, 28); this.discountTitleLabel.Size = new Size(137, 44); this.discountTitleLabel.TextAlign = ContentAlignment.MiddleCenter; this.discountPercentLabel.Font = new Font("Times New Roman", 16F, FontStyle.Bold); this.discountPercentLabel.Location = new Point(8, 82); this.discountPercentLabel.Size = new Size(137, 40); this.discountPercentLabel.TextAlign = ContentAlignment.MiddleCenter; this.Controls.Add(this.photoPanel); this.Controls.Add(this.infoPanel); this.Controls.Add(this.discountPanel); this.photoPanel.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.photoPictureBox)).EndInit(); this.infoPanel.ResumeLayout(false); this.discountPanel.ResumeLayout(false); this.ResumeLayout(false); } } }