/
DaNN26
/
SQLProvider
Обзор
Документация
Войти
/
DaNN26
/
SQLProvider
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
OrderEditForm.Designer.cs
128 строк
5 KB
DaNN
Добавьте файлы проекта.
27 май 2026, 12:50
27 май 2026, 12:50
4fe37b9
Код
Авторство
О чём код?
using System.Drawing; using System.Windows.Forms; namespace Demo { internal partial class OrderEditForm { private System.ComponentModel.IContainer components = null; private Label idLabel; private TextBox idTextBox; private TextBox articlesTextBox; private ComboBox statusComboBox; private ComboBox pickupPointComboBox; private DateTimePicker orderDatePicker; private DateTimePicker deliveryDatePicker; private Button saveButton; private Button cancelButton; protected override void Dispose(bool disposing) { if (disposing && components != null) { components.Dispose(); } base.Dispose(disposing); } private void InitializeComponent() { Label articlesLabel = new Label(); Label statusLabel = new Label(); Label pickupPointLabel = new Label(); Label orderDateLabel = new Label(); Label deliveryDateLabel = new Label(); this.idLabel = new Label(); this.idTextBox = new TextBox(); this.articlesTextBox = new TextBox(); this.statusComboBox = new ComboBox(); this.pickupPointComboBox = new ComboBox(); this.orderDatePicker = new DateTimePicker(); this.deliveryDatePicker = new DateTimePicker(); this.saveButton = new Button(); this.cancelButton = new Button(); this.SuspendLayout(); this.Text = "Редактирование заказа"; this.StartPosition = FormStartPosition.CenterParent; this.Size = new Size(690, 430); 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 = "Номер заказа:"; this.idLabel.Location = new Point(25, 27); this.idLabel.Size = new Size(170, 24); this.idTextBox.Location = new Point(210, 25); this.idTextBox.Size = new Size(120, 26); this.idTextBox.ReadOnly = true; articlesLabel.Text = "Артикул:"; articlesLabel.Location = new Point(25, 69); articlesLabel.Size = new Size(170, 24); this.articlesTextBox.Location = new Point(210, 67); this.articlesTextBox.Size = new Size(400, 26); statusLabel.Text = "Статус заказа:"; statusLabel.Location = new Point(25, 111); statusLabel.Size = new Size(170, 24); this.statusComboBox.DropDownStyle = ComboBoxStyle.DropDownList; this.statusComboBox.Location = new Point(210, 109); this.statusComboBox.Size = new Size(220, 26); pickupPointLabel.Text = "Пункт выдачи:"; pickupPointLabel.Location = new Point(25, 153); pickupPointLabel.Size = new Size(170, 24); this.pickupPointComboBox.DropDownStyle = ComboBoxStyle.DropDownList; this.pickupPointComboBox.Location = new Point(210, 151); this.pickupPointComboBox.Size = new Size(400, 26); orderDateLabel.Text = "Дата заказа:"; orderDateLabel.Location = new Point(25, 195); orderDateLabel.Size = new Size(170, 24); this.orderDatePicker.Location = new Point(210, 193); this.orderDatePicker.Size = new Size(160, 26); this.orderDatePicker.Format = DateTimePickerFormat.Custom; this.orderDatePicker.CustomFormat = "dd.MM.yyyy"; deliveryDateLabel.Text = "Дата выдачи:"; deliveryDateLabel.Location = new Point(25, 237); deliveryDateLabel.Size = new Size(170, 24); this.deliveryDatePicker.Location = new Point(210, 235); this.deliveryDatePicker.Size = new Size(160, 26); this.deliveryDatePicker.Format = DateTimePickerFormat.Custom; this.deliveryDatePicker.CustomFormat = "dd.MM.yyyy"; this.saveButton.Text = "Сохранить"; this.saveButton.BackColor = ColorTranslator.FromHtml("#00FA9A"); this.saveButton.Location = new Point(210, 305); this.saveButton.Size = new Size(125, 36); this.saveButton.Click += new System.EventHandler(this.SaveButton_Click); this.cancelButton.Text = "Отмена"; this.cancelButton.Location = new Point(350, 305); this.cancelButton.Size = new Size(125, 36); this.cancelButton.Click += new System.EventHandler(this.CancelButton_Click); this.Controls.Add(this.idLabel); this.Controls.Add(this.idTextBox); this.Controls.Add(articlesLabel); this.Controls.Add(this.articlesTextBox); this.Controls.Add(statusLabel); this.Controls.Add(this.statusComboBox); this.Controls.Add(pickupPointLabel); this.Controls.Add(this.pickupPointComboBox); this.Controls.Add(orderDateLabel); this.Controls.Add(this.orderDatePicker); this.Controls.Add(deliveryDateLabel); this.Controls.Add(this.deliveryDatePicker); this.Controls.Add(this.saveButton); this.Controls.Add(this.cancelButton); this.ResumeLayout(false); this.PerformLayout(); } } }