210 lines
8.1 KiB
C#
210 lines
8.1 KiB
C#
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();
|
|
label1 = new Label();
|
|
buttonSave = new Button();
|
|
buttonCancel = new Button();
|
|
textBoxPrice = new TextBox();
|
|
comboBoxSupplier = new ComboBox();
|
|
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
|
|
groupBoxProducts.SuspendLayout();
|
|
SuspendLayout();
|
|
//
|
|
// textBoxName
|
|
//
|
|
textBoxName.Location = new Point(18, 41);
|
|
textBoxName.Multiline = true;
|
|
textBoxName.Name = "textBoxName";
|
|
textBoxName.Size = new Size(434, 103);
|
|
textBoxName.TabIndex = 0;
|
|
//
|
|
// dataGridView
|
|
//
|
|
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|
dataGridView.Columns.AddRange(new DataGridViewColumn[] { ProductId, ProductName, ProductAmount });
|
|
dataGridView.Location = new Point(6, 22);
|
|
dataGridView.Name = "dataGridView";
|
|
dataGridView.Size = new Size(423, 241);
|
|
dataGridView.TabIndex = 1;
|
|
//
|
|
// ProductId
|
|
//
|
|
ProductId.HeaderText = "Id";
|
|
ProductId.Name = "ProductId";
|
|
ProductId.ReadOnly = true;
|
|
ProductId.Visible = false;
|
|
//
|
|
// ProductName
|
|
//
|
|
ProductName.HeaderText = "Название";
|
|
ProductName.Name = "ProductName";
|
|
ProductName.ReadOnly = true;
|
|
//
|
|
// ProductAmount
|
|
//
|
|
ProductAmount.HeaderText = "Количество";
|
|
ProductAmount.Name = "ProductAmount";
|
|
ProductAmount.ReadOnly = true;
|
|
//
|
|
// groupBoxProducts
|
|
//
|
|
groupBoxProducts.Controls.Add(buttonDeleteProduct);
|
|
groupBoxProducts.Controls.Add(buttonUpdateProduct);
|
|
groupBoxProducts.Controls.Add(buttonAddProduct);
|
|
groupBoxProducts.Controls.Add(dataGridView);
|
|
groupBoxProducts.Location = new Point(12, 150);
|
|
groupBoxProducts.Name = "groupBoxProducts";
|
|
groupBoxProducts.Size = new Size(776, 288);
|
|
groupBoxProducts.TabIndex = 2;
|
|
groupBoxProducts.TabStop = false;
|
|
groupBoxProducts.Text = "Товары";
|
|
//
|
|
// buttonDeleteProduct
|
|
//
|
|
buttonDeleteProduct.Location = new Point(435, 132);
|
|
buttonDeleteProduct.Name = "buttonDeleteProduct";
|
|
buttonDeleteProduct.Size = new Size(126, 49);
|
|
buttonDeleteProduct.TabIndex = 4;
|
|
buttonDeleteProduct.Text = "Удалить";
|
|
buttonDeleteProduct.UseVisualStyleBackColor = true;
|
|
buttonDeleteProduct.Click += buttonDeleteProduct_Click;
|
|
//
|
|
// buttonUpdateProduct
|
|
//
|
|
buttonUpdateProduct.Location = new Point(435, 77);
|
|
buttonUpdateProduct.Name = "buttonUpdateProduct";
|
|
buttonUpdateProduct.Size = new Size(126, 49);
|
|
buttonUpdateProduct.TabIndex = 3;
|
|
buttonUpdateProduct.Text = "Изменить";
|
|
buttonUpdateProduct.UseVisualStyleBackColor = true;
|
|
buttonUpdateProduct.Click += buttonUpdateProduct_Click;
|
|
//
|
|
// buttonAddProduct
|
|
//
|
|
buttonAddProduct.Location = new Point(435, 22);
|
|
buttonAddProduct.Name = "buttonAddProduct";
|
|
buttonAddProduct.Size = new Size(126, 49);
|
|
buttonAddProduct.TabIndex = 2;
|
|
buttonAddProduct.Text = "Добавить";
|
|
buttonAddProduct.UseVisualStyleBackColor = true;
|
|
buttonAddProduct.Click += buttonAddProduct_Click;
|
|
//
|
|
// label1
|
|
//
|
|
label1.AutoSize = true;
|
|
label1.Location = new Point(18, 23);
|
|
label1.Name = "label1";
|
|
label1.Size = new Size(100, 15);
|
|
label1.TabIndex = 3;
|
|
label1.Text = "Общие сведения";
|
|
//
|
|
// buttonSave
|
|
//
|
|
buttonSave.Location = new Point(654, 40);
|
|
buttonSave.Name = "buttonSave";
|
|
buttonSave.Size = new Size(75, 23);
|
|
buttonSave.TabIndex = 4;
|
|
buttonSave.Text = "Сохранить";
|
|
buttonSave.UseVisualStyleBackColor = true;
|
|
buttonSave.Click += buttonSave_Click;
|
|
//
|
|
// buttonCancel
|
|
//
|
|
buttonCancel.Location = new Point(654, 88);
|
|
buttonCancel.Name = "buttonCancel";
|
|
buttonCancel.Size = new Size(75, 23);
|
|
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;
|
|
comboBoxSupplier.Location = new Point(473, 41);
|
|
comboBoxSupplier.Name = "comboBoxSupplier";
|
|
comboBoxSupplier.Size = new Size(121, 23);
|
|
comboBoxSupplier.TabIndex = 7;
|
|
//
|
|
// FormSupply
|
|
//
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(800, 450);
|
|
Controls.Add(comboBoxSupplier);
|
|
Controls.Add(textBoxPrice);
|
|
Controls.Add(buttonCancel);
|
|
Controls.Add(buttonSave);
|
|
Controls.Add(label1);
|
|
Controls.Add(groupBoxProducts);
|
|
Controls.Add(textBoxName);
|
|
Name = "FormSupply";
|
|
Text = "FormSupply";
|
|
Load += FormSupply_Load;
|
|
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
|
groupBoxProducts.ResumeLayout(false);
|
|
ResumeLayout(false);
|
|
PerformLayout();
|
|
}
|
|
|
|
#endregion
|
|
|
|
private TextBox textBoxName;
|
|
private DataGridView dataGridView;
|
|
private DataGridViewTextBoxColumn ProductId;
|
|
private DataGridViewTextBoxColumn ProductName;
|
|
private DataGridViewTextBoxColumn ProductAmount;
|
|
private GroupBox groupBoxProducts;
|
|
private Button buttonAddProduct;
|
|
private Label label1;
|
|
private Button buttonUpdateProduct;
|
|
private Button buttonDeleteProduct;
|
|
private Button buttonSave;
|
|
private Button buttonCancel;
|
|
private TextBox textBoxPrice;
|
|
private ComboBox comboBoxSupplier;
|
|
}
|
|
} |