/
DaNN26
/
SQLProvider
Обзор
Документация
Войти
/
DaNN26
/
SQLProvider
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
OrdersForm.Designer.cs
114 строк
5 KB
DaNN
Добавьте файлы проекта.
27 май 2026, 12:50
27 май 2026, 12:50
4fe37b9
Код
Авторство
О чём код?
using System.Drawing; using System.Windows.Forms; namespace Demo { internal partial class OrdersForm { private System.ComponentModel.IContainer components = null; private Panel headerPanel; private Label titleLabel; private Label userLabel; private Button closeButton; private Panel commandPanel; private Button addButton; private Button editButton; private Button deleteButton; private FlowLayoutPanel ordersPanel; protected override void Dispose(bool disposing) { if (disposing && components != null) { components.Dispose(); } base.Dispose(disposing); } private void InitializeComponent() { this.headerPanel = new Panel(); this.titleLabel = new Label(); this.userLabel = new Label(); this.closeButton = new Button(); this.commandPanel = new Panel(); this.addButton = new Button(); this.editButton = new Button(); this.deleteButton = new Button(); this.ordersPanel = new FlowLayoutPanel(); this.headerPanel.SuspendLayout(); this.commandPanel.SuspendLayout(); this.SuspendLayout(); this.Text = "Заказы"; this.StartPosition = FormStartPosition.CenterParent; this.Size = new Size(1000, 620); this.BackColor = Color.White; this.Font = new Font("Times New Roman", 11F); this.headerPanel.Dock = DockStyle.Top; this.headerPanel.Height = 76; this.headerPanel.BackColor = ColorTranslator.FromHtml("#7FFF00"); this.headerPanel.Controls.Add(this.titleLabel); this.headerPanel.Controls.Add(this.userLabel); this.headerPanel.Controls.Add(this.closeButton); this.titleLabel.Text = "Заказы"; this.titleLabel.Font = new Font("Times New Roman", 18F, FontStyle.Bold); this.titleLabel.AutoSize = true; this.titleLabel.Location = new Point(20, 23); this.userLabel.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.userLabel.TextAlign = ContentAlignment.MiddleRight; this.userLabel.Location = new Point(590, 15); this.userLabel.Size = new Size(240, 24); this.closeButton.Text = "Назад"; this.closeButton.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.closeButton.Location = new Point(845, 15); this.closeButton.Size = new Size(110, 32); this.closeButton.BackColor = ColorTranslator.FromHtml("#00FA9A"); this.closeButton.Click += new System.EventHandler(this.CloseButton_Click); this.commandPanel.Dock = DockStyle.Top; this.commandPanel.Height = 54; this.commandPanel.BackColor = Color.White; this.commandPanel.Controls.Add(this.addButton); this.commandPanel.Controls.Add(this.editButton); this.commandPanel.Controls.Add(this.deleteButton); this.addButton.Text = "Добавить заказ"; this.addButton.BackColor = ColorTranslator.FromHtml("#00FA9A"); this.addButton.Location = new Point(15, 10); this.addButton.Size = new Size(145, 32); this.addButton.Click += new System.EventHandler(this.AddButton_Click); this.editButton.Text = "Редактировать"; this.editButton.BackColor = ColorTranslator.FromHtml("#00FA9A"); this.editButton.Location = new Point(170, 10); this.editButton.Size = new Size(145, 32); this.editButton.Click += new System.EventHandler(this.EditButton_Click); this.deleteButton.Text = "Удалить"; this.deleteButton.BackColor = Color.LightCoral; this.deleteButton.Location = new Point(325, 10); this.deleteButton.Size = new Size(120, 32); this.deleteButton.Click += new System.EventHandler(this.DeleteButton_Click); this.ordersPanel.Dock = DockStyle.Fill; this.ordersPanel.AutoScroll = true; this.ordersPanel.FlowDirection = FlowDirection.TopDown; this.ordersPanel.WrapContents = false; this.ordersPanel.Padding = new Padding(10); this.ordersPanel.BackColor = Color.White; this.Controls.Add(this.ordersPanel); this.Controls.Add(this.commandPanel); this.Controls.Add(this.headerPanel); this.headerPanel.ResumeLayout(false); this.headerPanel.PerformLayout(); this.commandPanel.ResumeLayout(false); this.ResumeLayout(false); } } }