2024-06-23 14:01:09 +04:00
|
|
|
|
namespace WinFormsApp
|
|
|
|
|
{
|
|
|
|
|
partial class FormProducts
|
|
|
|
|
{
|
|
|
|
|
/// <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()
|
|
|
|
|
{
|
|
|
|
|
dataGridView = new DataGridView();
|
|
|
|
|
buttonCreateProduct = new Button();
|
|
|
|
|
groupBoxControls = new GroupBox();
|
2024-06-23 17:04:26 +04:00
|
|
|
|
buttonDeleteProduct = new Button();
|
2024-06-23 14:21:59 +04:00
|
|
|
|
buttonUpdateProduct = new Button();
|
2024-06-23 14:01:09 +04:00
|
|
|
|
groupBoxCreateProduct = new GroupBox();
|
|
|
|
|
numericUpDownAmount = new NumericUpDown();
|
|
|
|
|
numericUpDownPrice = new NumericUpDown();
|
|
|
|
|
buttonCancel = new Button();
|
|
|
|
|
buttonSaveProduct = new Button();
|
|
|
|
|
checkBoxIsSold = new CheckBox();
|
|
|
|
|
textBoxName = new TextBox();
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
|
|
|
|
|
groupBoxControls.SuspendLayout();
|
|
|
|
|
groupBoxCreateProduct.SuspendLayout();
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)numericUpDownAmount).BeginInit();
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)numericUpDownPrice).BeginInit();
|
|
|
|
|
SuspendLayout();
|
|
|
|
|
//
|
|
|
|
|
// dataGridView
|
|
|
|
|
//
|
|
|
|
|
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
2024-06-23 17:04:26 +04:00
|
|
|
|
dataGridView.Dock = DockStyle.Left;
|
|
|
|
|
dataGridView.Location = new Point(0, 0);
|
2024-06-23 14:01:09 +04:00
|
|
|
|
dataGridView.Name = "dataGridView";
|
2024-06-23 17:04:26 +04:00
|
|
|
|
dataGridView.Size = new Size(602, 646);
|
2024-06-23 14:01:09 +04:00
|
|
|
|
dataGridView.TabIndex = 0;
|
|
|
|
|
//
|
|
|
|
|
// buttonCreateProduct
|
|
|
|
|
//
|
|
|
|
|
buttonCreateProduct.Location = new Point(69, 22);
|
|
|
|
|
buttonCreateProduct.Name = "buttonCreateProduct";
|
|
|
|
|
buttonCreateProduct.Size = new Size(139, 23);
|
|
|
|
|
buttonCreateProduct.TabIndex = 1;
|
|
|
|
|
buttonCreateProduct.Text = "Добавить товар";
|
|
|
|
|
buttonCreateProduct.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonCreateProduct.Click += buttonCreateProduct_Click;
|
|
|
|
|
//
|
|
|
|
|
// groupBoxControls
|
|
|
|
|
//
|
|
|
|
|
groupBoxControls.BackColor = Color.Transparent;
|
2024-06-23 14:27:50 +04:00
|
|
|
|
groupBoxControls.Controls.Add(buttonDeleteProduct);
|
2024-06-23 14:01:09 +04:00
|
|
|
|
groupBoxControls.Controls.Add(buttonUpdateProduct);
|
|
|
|
|
groupBoxControls.Controls.Add(buttonCreateProduct);
|
2024-06-23 17:04:26 +04:00
|
|
|
|
groupBoxControls.Dock = DockStyle.Right;
|
|
|
|
|
groupBoxControls.Location = new Point(617, 0);
|
2024-06-23 14:01:09 +04:00
|
|
|
|
groupBoxControls.Name = "groupBoxControls";
|
2024-06-23 17:04:26 +04:00
|
|
|
|
groupBoxControls.Size = new Size(308, 646);
|
2024-06-23 14:01:09 +04:00
|
|
|
|
groupBoxControls.TabIndex = 2;
|
|
|
|
|
groupBoxControls.TabStop = false;
|
|
|
|
|
groupBoxControls.Text = "Действия";
|
|
|
|
|
//
|
2024-06-23 17:04:26 +04:00
|
|
|
|
// buttonDeleteProduct
|
|
|
|
|
//
|
|
|
|
|
buttonDeleteProduct.Location = new Point(69, 102);
|
|
|
|
|
buttonDeleteProduct.Name = "buttonDeleteProduct";
|
|
|
|
|
buttonDeleteProduct.Size = new Size(139, 23);
|
|
|
|
|
buttonDeleteProduct.TabIndex = 3;
|
|
|
|
|
buttonDeleteProduct.Text = "Удалить товар";
|
|
|
|
|
buttonDeleteProduct.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonDeleteProduct.Click += buttonDeleteProduct_Click;
|
|
|
|
|
//
|
2024-06-23 14:21:59 +04:00
|
|
|
|
// buttonUpdateProduct
|
|
|
|
|
//
|
|
|
|
|
buttonUpdateProduct.Location = new Point(69, 62);
|
|
|
|
|
buttonUpdateProduct.Name = "buttonUpdateProduct";
|
|
|
|
|
buttonUpdateProduct.Size = new Size(139, 23);
|
|
|
|
|
buttonUpdateProduct.TabIndex = 2;
|
|
|
|
|
buttonUpdateProduct.Text = "Изменить товар";
|
|
|
|
|
buttonUpdateProduct.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonUpdateProduct.Click += buttonUpdateProduct_Click;
|
|
|
|
|
//
|
2024-06-23 14:01:09 +04:00
|
|
|
|
// groupBoxCreateProduct
|
|
|
|
|
//
|
|
|
|
|
groupBoxCreateProduct.BackColor = Color.Transparent;
|
|
|
|
|
groupBoxCreateProduct.Controls.Add(numericUpDownAmount);
|
|
|
|
|
groupBoxCreateProduct.Controls.Add(numericUpDownPrice);
|
|
|
|
|
groupBoxCreateProduct.Controls.Add(buttonCancel);
|
|
|
|
|
groupBoxCreateProduct.Controls.Add(buttonSaveProduct);
|
|
|
|
|
groupBoxCreateProduct.Controls.Add(checkBoxIsSold);
|
|
|
|
|
groupBoxCreateProduct.Controls.Add(textBoxName);
|
2024-06-23 17:04:26 +04:00
|
|
|
|
groupBoxCreateProduct.Dock = DockStyle.Right;
|
|
|
|
|
groupBoxCreateProduct.Location = new Point(383, 0);
|
2024-06-23 14:01:09 +04:00
|
|
|
|
groupBoxCreateProduct.Name = "groupBoxCreateProduct";
|
2024-06-23 17:04:26 +04:00
|
|
|
|
groupBoxCreateProduct.Size = new Size(234, 646);
|
2024-06-23 14:01:09 +04:00
|
|
|
|
groupBoxCreateProduct.TabIndex = 3;
|
|
|
|
|
groupBoxCreateProduct.TabStop = false;
|
|
|
|
|
groupBoxCreateProduct.Text = "Создание/изменение продукта";
|
|
|
|
|
//
|
|
|
|
|
// numericUpDownAmount
|
|
|
|
|
//
|
|
|
|
|
numericUpDownAmount.Location = new Point(17, 153);
|
|
|
|
|
numericUpDownAmount.Maximum = new decimal(new int[] { 100000, 0, 0, 0 });
|
|
|
|
|
numericUpDownAmount.Name = "numericUpDownAmount";
|
|
|
|
|
numericUpDownAmount.Size = new Size(120, 23);
|
|
|
|
|
numericUpDownAmount.TabIndex = 7;
|
|
|
|
|
//
|
|
|
|
|
// numericUpDownPrice
|
|
|
|
|
//
|
|
|
|
|
numericUpDownPrice.DecimalPlaces = 2;
|
|
|
|
|
numericUpDownPrice.Location = new Point(17, 94);
|
|
|
|
|
numericUpDownPrice.Maximum = new decimal(new int[] { 100000, 0, 0, 0 });
|
|
|
|
|
numericUpDownPrice.Name = "numericUpDownPrice";
|
|
|
|
|
numericUpDownPrice.Size = new Size(120, 23);
|
|
|
|
|
numericUpDownPrice.TabIndex = 6;
|
|
|
|
|
//
|
|
|
|
|
// buttonCancel
|
|
|
|
|
//
|
|
|
|
|
buttonCancel.Location = new Point(111, 235);
|
|
|
|
|
buttonCancel.Name = "buttonCancel";
|
|
|
|
|
buttonCancel.Size = new Size(75, 23);
|
|
|
|
|
buttonCancel.TabIndex = 5;
|
|
|
|
|
buttonCancel.Text = "Отмена";
|
|
|
|
|
buttonCancel.UseVisualStyleBackColor = true;
|
2024-06-23 14:21:59 +04:00
|
|
|
|
buttonCancel.Click += buttonCancel_Click;
|
2024-06-23 14:01:09 +04:00
|
|
|
|
//
|
|
|
|
|
// buttonSaveProduct
|
|
|
|
|
//
|
|
|
|
|
buttonSaveProduct.Location = new Point(17, 235);
|
|
|
|
|
buttonSaveProduct.Name = "buttonSaveProduct";
|
|
|
|
|
buttonSaveProduct.Size = new Size(75, 23);
|
|
|
|
|
buttonSaveProduct.TabIndex = 4;
|
|
|
|
|
buttonSaveProduct.Text = "Сохранить";
|
|
|
|
|
buttonSaveProduct.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonSaveProduct.Click += buttonSaveProduct_Click;
|
|
|
|
|
//
|
|
|
|
|
// checkBoxIsSold
|
|
|
|
|
//
|
|
|
|
|
checkBoxIsSold.AutoSize = true;
|
|
|
|
|
checkBoxIsSold.Location = new Point(17, 210);
|
|
|
|
|
checkBoxIsSold.Name = "checkBoxIsSold";
|
|
|
|
|
checkBoxIsSold.Size = new Size(148, 19);
|
|
|
|
|
checkBoxIsSold.TabIndex = 3;
|
|
|
|
|
checkBoxIsSold.Text = "Поместить в магазин?";
|
|
|
|
|
checkBoxIsSold.UseVisualStyleBackColor = true;
|
|
|
|
|
//
|
|
|
|
|
// textBoxName
|
|
|
|
|
//
|
|
|
|
|
textBoxName.Location = new Point(17, 40);
|
|
|
|
|
textBoxName.Name = "textBoxName";
|
|
|
|
|
textBoxName.Size = new Size(100, 23);
|
|
|
|
|
textBoxName.TabIndex = 0;
|
|
|
|
|
//
|
|
|
|
|
// FormProducts
|
|
|
|
|
//
|
|
|
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
|
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
|
|
|
ClientSize = new Size(925, 646);
|
|
|
|
|
Controls.Add(groupBoxCreateProduct);
|
|
|
|
|
Controls.Add(groupBoxControls);
|
|
|
|
|
Controls.Add(dataGridView);
|
|
|
|
|
Name = "FormProducts";
|
|
|
|
|
Text = "FormProducts";
|
|
|
|
|
Load += FormProducts_Load;
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
|
|
|
|
groupBoxControls.ResumeLayout(false);
|
|
|
|
|
groupBoxCreateProduct.ResumeLayout(false);
|
|
|
|
|
groupBoxCreateProduct.PerformLayout();
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)numericUpDownAmount).EndInit();
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)numericUpDownPrice).EndInit();
|
|
|
|
|
ResumeLayout(false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
private DataGridView dataGridView;
|
|
|
|
|
private Button buttonCreateProduct;
|
|
|
|
|
private GroupBox groupBoxControls;
|
|
|
|
|
private GroupBox groupBoxCreateProduct;
|
|
|
|
|
private TextBox textBoxName;
|
|
|
|
|
private Button buttonSaveProduct;
|
|
|
|
|
private CheckBox checkBoxIsSold;
|
|
|
|
|
private NumericUpDown numericUpDownAmount;
|
|
|
|
|
private NumericUpDown numericUpDownPrice;
|
|
|
|
|
private Button buttonCancel;
|
|
|
|
|
private Button buttonUpdateProduct;
|
2024-06-23 14:27:50 +04:00
|
|
|
|
private Button buttonDeleteProduct;
|
2024-06-23 14:01:09 +04:00
|
|
|
|
}
|
|
|
|
|
}
|