/
DaNN26
/
SQLProvider
Обзор
Документация
Войти
/
DaNN26
/
SQLProvider
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
ProductEditForm.Designer.cs
225 строк
10 KB
DaNN
Добавьте файлы проекта.
27 май 2026, 12:50
27 май 2026, 12:50
4fe37b9
Код
Авторство
О чём код?
using System.Drawing; using System.Windows.Forms; namespace Demo { internal partial class ProductEditForm { private System.ComponentModel.IContainer components = null; private Label idLabel; private TextBox idTextBox; private TextBox articleTextBox; private TextBox nameTextBox; private ComboBox categoryComboBox; private TextBox descriptionTextBox; private ComboBox manufacturerComboBox; private ComboBox supplierComboBox; private ComboBox unitComboBox; private NumericUpDown priceNumeric; private NumericUpDown quantityNumeric; private NumericUpDown discountNumeric; private PictureBox photoPictureBox; private Button photoButton; private Button saveButton; private Button deleteButton; private Button cancelButton; protected override void Dispose(bool disposing) { if (disposing && components != null) { components.Dispose(); } base.Dispose(disposing); } private void InitializeComponent() { Label articleLabel = new Label(); Label nameLabel = new Label(); Label categoryLabel = new Label(); Label manufacturerLabel = new Label(); Label supplierLabel = new Label(); Label unitLabel = new Label(); Label priceLabel = new Label(); Label quantityLabel = new Label(); Label discountLabel = new Label(); Label descriptionLabel = new Label(); Label photoLabel = new Label(); this.idLabel = new Label(); this.idTextBox = new TextBox(); this.articleTextBox = new TextBox(); this.nameTextBox = new TextBox(); this.categoryComboBox = new ComboBox(); this.manufacturerComboBox = new ComboBox(); this.supplierComboBox = new ComboBox(); this.unitComboBox = new ComboBox(); this.priceNumeric = new NumericUpDown(); this.quantityNumeric = new NumericUpDown(); this.discountNumeric = new NumericUpDown(); this.descriptionTextBox = new TextBox(); this.photoPictureBox = new PictureBox(); this.photoButton = new Button(); this.saveButton = new Button(); this.deleteButton = new Button(); this.cancelButton = new Button(); ((System.ComponentModel.ISupportInitialize)(this.priceNumeric)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.quantityNumeric)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.discountNumeric)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.photoPictureBox)).BeginInit(); this.SuspendLayout(); this.Text = "Редактирование товара"; this.StartPosition = FormStartPosition.CenterParent; this.Size = new Size(650, 760); this.FormBorderStyle = FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.BackColor = Color.White; this.Font = new Font("Times New Roman", 11F); this.idLabel.Text = "ID товара:"; this.idLabel.Location = new Point(25, 22); this.idLabel.Size = new Size(150, 24); this.idTextBox.Location = new Point(190, 20); this.idTextBox.Size = new Size(160, 26); this.idTextBox.ReadOnly = true; articleLabel.Text = "Артикул:"; articleLabel.Location = new Point(25, 60); articleLabel.Size = new Size(150, 24); this.articleTextBox.Location = new Point(190, 58); this.articleTextBox.Size = new Size(220, 26); nameLabel.Text = "Наименование:"; nameLabel.Location = new Point(25, 98); nameLabel.Size = new Size(150, 24); this.nameTextBox.Location = new Point(190, 96); this.nameTextBox.Size = new Size(350, 26); categoryLabel.Text = "Категория:"; categoryLabel.Location = new Point(25, 136); categoryLabel.Size = new Size(150, 24); this.categoryComboBox.DropDownStyle = ComboBoxStyle.DropDownList; this.categoryComboBox.Location = new Point(190, 134); this.categoryComboBox.Size = new Size(250, 26); manufacturerLabel.Text = "Производитель:"; manufacturerLabel.Location = new Point(25, 174); manufacturerLabel.Size = new Size(150, 24); this.manufacturerComboBox.DropDownStyle = ComboBoxStyle.DropDownList; this.manufacturerComboBox.Location = new Point(190, 172); this.manufacturerComboBox.Size = new Size(250, 26); supplierLabel.Text = "Поставщик:"; supplierLabel.Location = new Point(25, 212); supplierLabel.Size = new Size(150, 24); this.supplierComboBox.DropDownStyle = ComboBoxStyle.DropDownList; this.supplierComboBox.Location = new Point(190, 210); this.supplierComboBox.Size = new Size(250, 26); unitLabel.Text = "Ед. измерения:"; unitLabel.Location = new Point(25, 250); unitLabel.Size = new Size(150, 24); this.unitComboBox.DropDownStyle = ComboBoxStyle.DropDownList; this.unitComboBox.Location = new Point(190, 248); this.unitComboBox.Size = new Size(120, 26); priceLabel.Text = "Цена:"; priceLabel.Location = new Point(25, 288); priceLabel.Size = new Size(150, 24); this.priceNumeric.Location = new Point(190, 286); this.priceNumeric.Size = new Size(120, 26); this.priceNumeric.Maximum = 1000000; this.priceNumeric.DecimalPlaces = 2; quantityLabel.Text = "Количество:"; quantityLabel.Location = new Point(25, 326); quantityLabel.Size = new Size(150, 24); this.quantityNumeric.Location = new Point(190, 324); this.quantityNumeric.Size = new Size(120, 26); this.quantityNumeric.Maximum = 100000; discountLabel.Text = "Скидка, %:"; discountLabel.Location = new Point(25, 364); discountLabel.Size = new Size(150, 24); this.discountNumeric.Location = new Point(190, 362); this.discountNumeric.Size = new Size(120, 26); this.discountNumeric.Maximum = 100; descriptionLabel.Text = "Описание:"; descriptionLabel.Location = new Point(25, 402); descriptionLabel.Size = new Size(150, 24); this.descriptionTextBox.Location = new Point(190, 400); this.descriptionTextBox.Size = new Size(390, 90); this.descriptionTextBox.Multiline = true; photoLabel.Text = "Фото:"; photoLabel.Location = new Point(25, 507); photoLabel.Size = new Size(150, 24); this.photoPictureBox.Location = new Point(190, 505); this.photoPictureBox.Size = new Size(180, 120); this.photoPictureBox.SizeMode = PictureBoxSizeMode.Zoom; this.photoPictureBox.BorderStyle = BorderStyle.FixedSingle; this.photoButton.Text = "Выбрать фото"; this.photoButton.BackColor = ColorTranslator.FromHtml("#00FA9A"); this.photoButton.Location = new Point(385, 550); this.photoButton.Size = new Size(135, 34); this.photoButton.Click += new System.EventHandler(this.PhotoButton_Click); this.saveButton.Text = "Сохранить"; this.saveButton.BackColor = ColorTranslator.FromHtml("#00FA9A"); this.saveButton.Location = new Point(190, 650); this.saveButton.Size = new Size(120, 36); this.saveButton.Click += new System.EventHandler(this.SaveButton_Click); this.deleteButton.Text = "Удалить"; this.deleteButton.BackColor = Color.LightCoral; this.deleteButton.Location = new Point(320, 650); this.deleteButton.Size = new Size(120, 36); this.deleteButton.Click += new System.EventHandler(this.DeleteButton_Click); this.cancelButton.Text = "Отмена"; this.cancelButton.Location = new Point(450, 650); this.cancelButton.Size = new Size(120, 36); this.cancelButton.Click += new System.EventHandler(this.CancelButton_Click); this.Controls.Add(this.idLabel); this.Controls.Add(this.idTextBox); this.Controls.Add(articleLabel); this.Controls.Add(this.articleTextBox); this.Controls.Add(nameLabel); this.Controls.Add(this.nameTextBox); this.Controls.Add(categoryLabel); this.Controls.Add(this.categoryComboBox); this.Controls.Add(manufacturerLabel); this.Controls.Add(this.manufacturerComboBox); this.Controls.Add(supplierLabel); this.Controls.Add(this.supplierComboBox); this.Controls.Add(unitLabel); this.Controls.Add(this.unitComboBox); this.Controls.Add(priceLabel); this.Controls.Add(this.priceNumeric); this.Controls.Add(quantityLabel); this.Controls.Add(this.quantityNumeric); this.Controls.Add(discountLabel); this.Controls.Add(this.discountNumeric); this.Controls.Add(descriptionLabel); this.Controls.Add(this.descriptionTextBox); this.Controls.Add(photoLabel); this.Controls.Add(this.photoPictureBox); this.Controls.Add(this.photoButton); this.Controls.Add(this.saveButton); this.Controls.Add(this.deleteButton); this.Controls.Add(this.cancelButton); ((System.ComponentModel.ISupportInitialize)(this.priceNumeric)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.quantityNumeric)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.discountNumeric)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.photoPictureBox)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); } } }