2024-06-23 21:35:37 +04:00
|
|
|
|
namespace WinFormsApp
|
|
|
|
|
{
|
|
|
|
|
partial class FormSupply
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Required designer variable.
|
|
|
|
|
/// </summary>
|
|
|
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Clean up any resources being used.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
|
|
|
protected override void Dispose(bool disposing)
|
|
|
|
|
{
|
|
|
|
|
if (disposing && (components != null))
|
|
|
|
|
{
|
|
|
|
|
components.Dispose();
|
|
|
|
|
}
|
|
|
|
|
base.Dispose(disposing);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Required method for Designer support - do not modify
|
|
|
|
|
/// the contents of this method with the code editor.
|
|
|
|
|
/// </summary>
|
|
|
|
|
private void InitializeComponent()
|
|
|
|
|
{
|
|
|
|
|
textBoxName = new TextBox();
|
|
|
|
|
dataGridView = new DataGridView();
|
|
|
|
|
ProductId = new DataGridViewTextBoxColumn();
|
|
|
|
|
ProductName = new DataGridViewTextBoxColumn();
|
|
|
|
|
ProductAmount = new DataGridViewTextBoxColumn();
|
|
|
|
|
groupBoxProducts = new GroupBox();
|
|
|
|
|
buttonDeleteProduct = new Button();
|
|
|
|
|
buttonUpdateProduct = new Button();
|
|
|
|
|
buttonAddProduct = new Button();
|
|
|
|
|
buttonSave = new Button();
|
|
|
|
|
buttonCancel = new Button();
|
|
|
|
|
textBoxPrice = new TextBox();
|
|
|
|
|
comboBoxSupplier = new ComboBox();
|
2024-06-25 22:22:21 +04:00
|
|
|
|
groupBox1 = new GroupBox();
|
|
|
|
|
label1 = new Label();
|
2024-06-23 21:35:37 +04:00
|
|
|
|
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
|
|
|
|
|
groupBoxProducts.SuspendLayout();
|
2024-06-25 22:22:21 +04:00
|
|
|
|
groupBox1.SuspendLayout();
|
2024-06-23 21:35:37 +04:00
|
|
|
|
SuspendLayout();
|
|
|
|
|
//
|
|
|
|
|
// textBoxName
|
|
|
|
|
//
|
2024-06-25 22:22:21 +04:00
|
|
|
|
textBoxName.Dock = DockStyle.Fill;
|
|
|
|
|
textBoxName.Font = new Font("Segoe UI", 10F);
|
|
|
|
|
textBoxName.Location = new Point(3, 21);
|
2024-06-23 21:35:37 +04:00
|
|
|
|
textBoxName.Multiline = true;
|
|
|
|
|
textBoxName.Name = "textBoxName";
|
2024-06-25 22:22:21 +04:00
|
|
|
|
textBoxName.Size = new Size(244, 426);
|
2024-06-23 21:35:37 +04:00
|
|
|
|
textBoxName.TabIndex = 0;
|
|
|
|
|
//
|
|
|
|
|
// dataGridView
|
|
|
|
|
//
|
2024-06-25 22:22:21 +04:00
|
|
|
|
dataGridView.BackgroundColor = Color.AliceBlue;
|
2024-06-23 21:35:37 +04:00
|
|
|
|
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|
|
|
|
dataGridView.Columns.AddRange(new DataGridViewColumn[] { ProductId, ProductName, ProductAmount });
|
2024-06-25 22:22:21 +04:00
|
|
|
|
dataGridView.Dock = DockStyle.Top;
|
|
|
|
|
dataGridView.Location = new Point(3, 21);
|
2024-06-23 21:35:37 +04:00
|
|
|
|
dataGridView.Name = "dataGridView";
|
2024-06-25 22:22:21 +04:00
|
|
|
|
dataGridView.Size = new Size(405, 241);
|
2024-06-23 21:35:37 +04:00
|
|
|
|
dataGridView.TabIndex = 1;
|
|
|
|
|
//
|
|
|
|
|
// ProductId
|
|
|
|
|
//
|
|
|
|
|
ProductId.HeaderText = "Id";
|
|
|
|
|
ProductId.Name = "ProductId";
|
|
|
|
|
ProductId.ReadOnly = true;
|
|
|
|
|
ProductId.Visible = false;
|
|
|
|
|
//
|
|
|
|
|
// ProductName
|
|
|
|
|
//
|
2024-06-25 22:22:21 +04:00
|
|
|
|
ProductName.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
2024-06-23 21:35:37 +04:00
|
|
|
|
ProductName.HeaderText = "Название";
|
|
|
|
|
ProductName.Name = "ProductName";
|
|
|
|
|
ProductName.ReadOnly = true;
|
|
|
|
|
//
|
|
|
|
|
// ProductAmount
|
|
|
|
|
//
|
|
|
|
|
ProductAmount.HeaderText = "Количество";
|
|
|
|
|
ProductAmount.Name = "ProductAmount";
|
|
|
|
|
ProductAmount.ReadOnly = true;
|
|
|
|
|
//
|
|
|
|
|
// groupBoxProducts
|
|
|
|
|
//
|
2024-06-25 22:22:21 +04:00
|
|
|
|
groupBoxProducts.BackColor = Color.Transparent;
|
2024-06-23 21:35:37 +04:00
|
|
|
|
groupBoxProducts.Controls.Add(buttonDeleteProduct);
|
|
|
|
|
groupBoxProducts.Controls.Add(buttonUpdateProduct);
|
|
|
|
|
groupBoxProducts.Controls.Add(buttonAddProduct);
|
|
|
|
|
groupBoxProducts.Controls.Add(dataGridView);
|
2024-06-25 22:22:21 +04:00
|
|
|
|
groupBoxProducts.Dock = DockStyle.Left;
|
|
|
|
|
groupBoxProducts.Font = new Font("Segoe UI", 10F, FontStyle.Bold);
|
|
|
|
|
groupBoxProducts.ForeColor = SystemColors.Control;
|
|
|
|
|
groupBoxProducts.Location = new Point(0, 0);
|
2024-06-23 21:35:37 +04:00
|
|
|
|
groupBoxProducts.Name = "groupBoxProducts";
|
2024-06-25 22:22:21 +04:00
|
|
|
|
groupBoxProducts.Size = new Size(411, 450);
|
2024-06-23 21:35:37 +04:00
|
|
|
|
groupBoxProducts.TabIndex = 2;
|
|
|
|
|
groupBoxProducts.TabStop = false;
|
|
|
|
|
groupBoxProducts.Text = "Товары";
|
|
|
|
|
//
|
|
|
|
|
// buttonDeleteProduct
|
|
|
|
|
//
|
2024-06-25 22:22:21 +04:00
|
|
|
|
buttonDeleteProduct.BackColor = Color.FromArgb(255, 192, 192);
|
|
|
|
|
buttonDeleteProduct.ForeColor = SystemColors.ActiveCaptionText;
|
|
|
|
|
buttonDeleteProduct.Location = new Point(213, 268);
|
2024-06-23 21:35:37 +04:00
|
|
|
|
buttonDeleteProduct.Name = "buttonDeleteProduct";
|
|
|
|
|
buttonDeleteProduct.Size = new Size(126, 49);
|
|
|
|
|
buttonDeleteProduct.TabIndex = 4;
|
|
|
|
|
buttonDeleteProduct.Text = "Удалить";
|
2024-06-25 22:22:21 +04:00
|
|
|
|
buttonDeleteProduct.UseVisualStyleBackColor = false;
|
2024-06-23 21:35:37 +04:00
|
|
|
|
buttonDeleteProduct.Click += buttonDeleteProduct_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonUpdateProduct
|
|
|
|
|
//
|
2024-06-25 22:22:21 +04:00
|
|
|
|
buttonUpdateProduct.ForeColor = SystemColors.ActiveCaptionText;
|
|
|
|
|
buttonUpdateProduct.Location = new Point(12, 323);
|
2024-06-23 21:35:37 +04:00
|
|
|
|
buttonUpdateProduct.Name = "buttonUpdateProduct";
|
|
|
|
|
buttonUpdateProduct.Size = new Size(126, 49);
|
|
|
|
|
buttonUpdateProduct.TabIndex = 3;
|
|
|
|
|
buttonUpdateProduct.Text = "Изменить";
|
|
|
|
|
buttonUpdateProduct.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonUpdateProduct.Click += buttonUpdateProduct_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonAddProduct
|
|
|
|
|
//
|
2024-06-25 22:22:21 +04:00
|
|
|
|
buttonAddProduct.BackColor = Color.FromArgb(192, 255, 192);
|
|
|
|
|
buttonAddProduct.ForeColor = SystemColors.ActiveCaptionText;
|
|
|
|
|
buttonAddProduct.Location = new Point(12, 268);
|
2024-06-23 21:35:37 +04:00
|
|
|
|
buttonAddProduct.Name = "buttonAddProduct";
|
|
|
|
|
buttonAddProduct.Size = new Size(126, 49);
|
|
|
|
|
buttonAddProduct.TabIndex = 2;
|
|
|
|
|
buttonAddProduct.Text = "Добавить";
|
2024-06-25 22:22:21 +04:00
|
|
|
|
buttonAddProduct.UseVisualStyleBackColor = false;
|
2024-06-23 21:35:37 +04:00
|
|
|
|
buttonAddProduct.Click += buttonAddProduct_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonSave
|
|
|
|
|
//
|
2024-06-25 22:22:21 +04:00
|
|
|
|
buttonSave.Font = new Font("Segoe UI", 10F, FontStyle.Bold);
|
|
|
|
|
buttonSave.Location = new Point(679, 353);
|
2024-06-23 21:35:37 +04:00
|
|
|
|
buttonSave.Name = "buttonSave";
|
2024-06-25 22:22:21 +04:00
|
|
|
|
buttonSave.Size = new Size(109, 41);
|
2024-06-23 21:35:37 +04:00
|
|
|
|
buttonSave.TabIndex = 4;
|
|
|
|
|
buttonSave.Text = "Сохранить";
|
|
|
|
|
buttonSave.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonSave.Click += buttonSave_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonCancel
|
|
|
|
|
//
|
2024-06-25 22:22:21 +04:00
|
|
|
|
buttonCancel.Font = new Font("Segoe UI", 10F, FontStyle.Bold);
|
|
|
|
|
buttonCancel.Location = new Point(679, 400);
|
2024-06-23 21:35:37 +04:00
|
|
|
|
buttonCancel.Name = "buttonCancel";
|
2024-06-25 22:22:21 +04:00
|
|
|
|
buttonCancel.Size = new Size(109, 38);
|
2024-06-23 21:35:37 +04:00
|
|
|
|
buttonCancel.TabIndex = 5;
|
|
|
|
|
buttonCancel.Text = "Отмена";
|
|
|
|
|
buttonCancel.UseVisualStyleBackColor = true;
|
|
|
|
|
//
|
|
|
|
|
// textBoxPrice
|
|
|
|
|
//
|
|
|
|
|
textBoxPrice.Enabled = false;
|
|
|
|
|
textBoxPrice.Location = new Point(473, 88);
|
|
|
|
|
textBoxPrice.Name = "textBoxPrice";
|
|
|
|
|
textBoxPrice.Size = new Size(100, 23);
|
|
|
|
|
textBoxPrice.TabIndex = 6;
|
|
|
|
|
//
|
|
|
|
|
// comboBoxSupplier
|
|
|
|
|
//
|
|
|
|
|
comboBoxSupplier.FormattingEnabled = true;
|
2024-06-25 22:22:21 +04:00
|
|
|
|
comboBoxSupplier.Location = new Point(679, 283);
|
2024-06-23 21:35:37 +04:00
|
|
|
|
comboBoxSupplier.Name = "comboBoxSupplier";
|
2024-06-25 22:22:21 +04:00
|
|
|
|
comboBoxSupplier.Size = new Size(109, 23);
|
2024-06-23 21:35:37 +04:00
|
|
|
|
comboBoxSupplier.TabIndex = 7;
|
|
|
|
|
//
|
2024-06-25 22:22:21 +04:00
|
|
|
|
// groupBox1
|
|
|
|
|
//
|
|
|
|
|
groupBox1.BackColor = Color.Transparent;
|
|
|
|
|
groupBox1.Controls.Add(textBoxName);
|
|
|
|
|
groupBox1.Dock = DockStyle.Left;
|
|
|
|
|
groupBox1.Font = new Font("Segoe UI", 10F, FontStyle.Bold);
|
|
|
|
|
groupBox1.ForeColor = SystemColors.Control;
|
|
|
|
|
groupBox1.Location = new Point(411, 0);
|
|
|
|
|
groupBox1.Name = "groupBox1";
|
|
|
|
|
groupBox1.Size = new Size(250, 450);
|
|
|
|
|
groupBox1.TabIndex = 8;
|
|
|
|
|
groupBox1.TabStop = false;
|
|
|
|
|
groupBox1.Text = "Общие сведения";
|
|
|
|
|
//
|
|
|
|
|
// label1
|
|
|
|
|
//
|
|
|
|
|
label1.AutoSize = true;
|
|
|
|
|
label1.BackColor = Color.Transparent;
|
|
|
|
|
label1.Font = new Font("Segoe UI", 12F, FontStyle.Bold);
|
|
|
|
|
label1.ForeColor = SystemColors.Control;
|
|
|
|
|
label1.Location = new Point(679, 259);
|
|
|
|
|
label1.Name = "label1";
|
|
|
|
|
label1.Size = new Size(98, 21);
|
|
|
|
|
label1.TabIndex = 9;
|
|
|
|
|
label1.Text = "Поставщик";
|
|
|
|
|
//
|
2024-06-23 21:35:37 +04:00
|
|
|
|
// FormSupply
|
|
|
|
|
//
|
|
|
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
|
|
|
AutoScaleMode = AutoScaleMode.Font;
|
2024-06-25 22:22:21 +04:00
|
|
|
|
BackgroundImage = Properties.Resources._9AZKH1_1911594361;
|
2024-06-23 21:35:37 +04:00
|
|
|
|
ClientSize = new Size(800, 450);
|
2024-06-25 22:22:21 +04:00
|
|
|
|
Controls.Add(label1);
|
|
|
|
|
Controls.Add(groupBox1);
|
|
|
|
|
Controls.Add(buttonCancel);
|
2024-06-23 21:35:37 +04:00
|
|
|
|
Controls.Add(comboBoxSupplier);
|
|
|
|
|
Controls.Add(textBoxPrice);
|
|
|
|
|
Controls.Add(buttonSave);
|
|
|
|
|
Controls.Add(groupBoxProducts);
|
|
|
|
|
Name = "FormSupply";
|
|
|
|
|
Text = "FormSupply";
|
|
|
|
|
Load += FormSupply_Load;
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
|
|
|
|
groupBoxProducts.ResumeLayout(false);
|
2024-06-25 22:22:21 +04:00
|
|
|
|
groupBox1.ResumeLayout(false);
|
|
|
|
|
groupBox1.PerformLayout();
|
2024-06-23 21:35:37 +04:00
|
|
|
|
ResumeLayout(false);
|
|
|
|
|
PerformLayout();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
private TextBox textBoxName;
|
|
|
|
|
private DataGridView dataGridView;
|
|
|
|
|
private GroupBox groupBoxProducts;
|
|
|
|
|
private Button buttonAddProduct;
|
|
|
|
|
private Button buttonUpdateProduct;
|
|
|
|
|
private Button buttonDeleteProduct;
|
|
|
|
|
private Button buttonSave;
|
|
|
|
|
private Button buttonCancel;
|
|
|
|
|
private TextBox textBoxPrice;
|
|
|
|
|
private ComboBox comboBoxSupplier;
|
2024-06-25 22:22:21 +04:00
|
|
|
|
private GroupBox groupBox1;
|
|
|
|
|
private DataGridViewTextBoxColumn ProductId;
|
|
|
|
|
private DataGridViewTextBoxColumn ProductName;
|
|
|
|
|
private DataGridViewTextBoxColumn ProductAmount;
|
|
|
|
|
private Label label1;
|
2024-06-23 21:35:37 +04:00
|
|
|
|
}
|
|
|
|
|
}
|