/
DaNN26
/
SQLProvider
Обзор
Документация
Войти
/
DaNN26
/
SQLProvider
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
ProductListForm.Designer.cs
174 строки
8 KB
DaNN
Добавьте файлы проекта.
27 май 2026, 12:50
27 май 2026, 12:50
4fe37b9
Код
Авторство
О чём код?
using System.Drawing; using System.Windows.Forms; namespace Demo { internal partial class ProductListForm { private System.ComponentModel.IContainer components = null; private Panel headerPanel; private Panel headerRightPanel; private PictureBox logoPictureBox; private Label titleLabel; private Label userLabel; private Button exitButton; private Panel filterPanel; private Label searchLabel; private TextBox searchTextBox; private Label supplierLabel; private ComboBox supplierComboBox; private Label sortLabel; private ComboBox sortComboBox; private Button addButton; private Button ordersButton; private FlowLayoutPanel productsPanel; protected override void Dispose(bool disposing) { if (disposing && components != null) { components.Dispose(); } base.Dispose(disposing); } private void InitializeComponent() { this.headerPanel = new Panel(); this.headerRightPanel = new Panel(); this.logoPictureBox = new PictureBox(); this.titleLabel = new Label(); this.userLabel = new Label(); this.exitButton = new Button(); this.filterPanel = new Panel(); this.searchLabel = new Label(); this.searchTextBox = new TextBox(); this.supplierLabel = new Label(); this.supplierComboBox = new ComboBox(); this.sortLabel = new Label(); this.sortComboBox = new ComboBox(); this.addButton = new Button(); this.ordersButton = new Button(); this.productsPanel = new FlowLayoutPanel(); this.headerPanel.SuspendLayout(); this.headerRightPanel.SuspendLayout(); this.filterPanel.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).BeginInit(); this.SuspendLayout(); this.Text = "Список товаров"; this.StartPosition = FormStartPosition.CenterScreen; this.Size = new Size(1100, 740); this.MinimumSize = new Size(900, 600); this.BackColor = Color.White; this.Font = new Font("Times New Roman", 11F); this.headerPanel.Dock = DockStyle.Top; this.headerPanel.Height = 86; this.headerPanel.BackColor = ColorTranslator.FromHtml("#7FFF00"); this.headerPanel.Controls.Add(this.logoPictureBox); this.headerPanel.Controls.Add(this.titleLabel); this.headerPanel.Controls.Add(this.headerRightPanel); this.headerRightPanel.Dock = DockStyle.Right; this.headerRightPanel.Width = 430; this.headerRightPanel.BackColor = ColorTranslator.FromHtml("#7FFF00"); this.headerRightPanel.Controls.Add(this.userLabel); this.headerRightPanel.Controls.Add(this.exitButton); this.logoPictureBox.Location = new Point(14, 10); this.logoPictureBox.Size = new Size(70, 60); this.logoPictureBox.SizeMode = PictureBoxSizeMode.Zoom; this.titleLabel.Text = "Товары"; this.titleLabel.Font = new Font("Times New Roman", 18F, FontStyle.Bold); this.titleLabel.AutoSize = true; this.titleLabel.Location = new Point(100, 27); this.userLabel.TextAlign = ContentAlignment.MiddleRight; this.userLabel.Location = new Point(10, 17); this.userLabel.Size = new Size(270, 25); this.exitButton.Text = "Выйти"; this.exitButton.Location = new Point(290, 15); this.exitButton.Size = new Size(120, 32); this.exitButton.BackColor = ColorTranslator.FromHtml("#00FA9A"); this.exitButton.Click += new System.EventHandler(this.ExitButton_Click); this.filterPanel.Dock = DockStyle.Top; this.filterPanel.Height = 96; this.filterPanel.BackColor = Color.White; this.filterPanel.Controls.Add(this.searchLabel); this.filterPanel.Controls.Add(this.searchTextBox); this.filterPanel.Controls.Add(this.supplierLabel); this.filterPanel.Controls.Add(this.supplierComboBox); this.filterPanel.Controls.Add(this.sortLabel); this.filterPanel.Controls.Add(this.sortComboBox); this.filterPanel.Controls.Add(this.addButton); this.filterPanel.Controls.Add(this.ordersButton); this.searchLabel.Text = "Поиск:"; this.searchLabel.Location = new Point(15, 20); this.searchLabel.Size = new Size(60, 24); this.searchTextBox.Location = new Point(80, 17); this.searchTextBox.Size = new Size(220, 26); this.searchTextBox.TextChanged += new System.EventHandler(this.FilterChanged); this.supplierLabel.Text = "Поставщик:"; this.supplierLabel.Location = new Point(320, 20); this.supplierLabel.Size = new Size(100, 24); this.supplierComboBox.DropDownStyle = ComboBoxStyle.DropDownList; this.supplierComboBox.Location = new Point(420, 17); this.supplierComboBox.Size = new Size(180, 26); this.supplierComboBox.SelectedIndexChanged += new System.EventHandler(this.FilterChanged); this.sortLabel.Text = "Сортировка:"; this.sortLabel.Location = new Point(620, 20); this.sortLabel.Size = new Size(100, 24); this.sortComboBox.DropDownStyle = ComboBoxStyle.DropDownList; this.sortComboBox.Location = new Point(720, 17); this.sortComboBox.Size = new Size(210, 26); this.sortComboBox.Items.AddRange(new object[] { "Без сортировки", "Количество по возрастанию", "Количество по убыванию" }); this.sortComboBox.SelectedIndex = 0; this.sortComboBox.SelectedIndexChanged += new System.EventHandler(this.FilterChanged); this.addButton.Text = "Добавить товар"; this.addButton.BackColor = ColorTranslator.FromHtml("#00FA9A"); this.addButton.Location = new Point(15, 55); this.addButton.Size = new Size(145, 32); this.addButton.Click += new System.EventHandler(this.AddButton_Click); this.ordersButton.Text = "Заказы"; this.ordersButton.BackColor = ColorTranslator.FromHtml("#00FA9A"); this.ordersButton.Location = new Point(170, 55); this.ordersButton.Size = new Size(120, 32); this.ordersButton.Click += new System.EventHandler(this.OrdersButton_Click); this.productsPanel.Dock = DockStyle.Fill; this.productsPanel.AutoScroll = true; this.productsPanel.FlowDirection = FlowDirection.TopDown; this.productsPanel.WrapContents = false; this.productsPanel.Padding = new Padding(10); this.productsPanel.BackColor = Color.White; this.Controls.Add(this.productsPanel); this.Controls.Add(this.filterPanel); this.Controls.Add(this.headerPanel); this.headerRightPanel.ResumeLayout(false); this.headerPanel.ResumeLayout(false); this.headerPanel.PerformLayout(); this.filterPanel.ResumeLayout(false); this.filterPanel.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).EndInit(); this.ResumeLayout(false); } } }