355 lines
16 KiB
C#
355 lines
16 KiB
C#
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()
|
||
{
|
||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormProducts));
|
||
dataGridView = new DataGridView();
|
||
buttonCreateProduct = new Button();
|
||
groupBoxControls = new GroupBox();
|
||
buttonDeleteProduct = new Button();
|
||
buttonUpdateProduct = new Button();
|
||
buttonPrintCheque = new Button();
|
||
buttonReadBarCode = new Button();
|
||
pictureBox1 = new PictureBox();
|
||
buttonGenerateBarCode = new Button();
|
||
groupBoxCreateProduct = new GroupBox();
|
||
label3 = new Label();
|
||
label2 = new Label();
|
||
label1 = new Label();
|
||
numericUpDownAmount = new NumericUpDown();
|
||
numericUpDownPrice = new NumericUpDown();
|
||
buttonCancel = new Button();
|
||
buttonSaveProduct = new Button();
|
||
checkBoxIsSold = new CheckBox();
|
||
textBoxName = new TextBox();
|
||
menuStrip1 = new MenuStrip();
|
||
медиаФайлыToolStripMenuItem = new ToolStripMenuItem();
|
||
прайслистToolStripMenuItem = new ToolStripMenuItem();
|
||
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
|
||
groupBoxControls.SuspendLayout();
|
||
((System.ComponentModel.ISupportInitialize)pictureBox1).BeginInit();
|
||
groupBoxCreateProduct.SuspendLayout();
|
||
((System.ComponentModel.ISupportInitialize)numericUpDownAmount).BeginInit();
|
||
((System.ComponentModel.ISupportInitialize)numericUpDownPrice).BeginInit();
|
||
menuStrip1.SuspendLayout();
|
||
SuspendLayout();
|
||
//
|
||
// dataGridView
|
||
//
|
||
dataGridView.BackgroundColor = Color.AliceBlue;
|
||
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||
dataGridView.Location = new Point(290, 27);
|
||
dataGridView.Name = "dataGridView";
|
||
dataGridView.ReadOnly = true;
|
||
dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
||
dataGridView.Size = new Size(629, 345);
|
||
dataGridView.TabIndex = 0;
|
||
dataGridView.SelectionChanged += dataGridView_SelectionChanged;
|
||
//
|
||
// buttonCreateProduct
|
||
//
|
||
buttonCreateProduct.BackColor = Color.FromArgb(192, 255, 192);
|
||
buttonCreateProduct.Font = new Font("Segoe UI", 10F, FontStyle.Bold);
|
||
buttonCreateProduct.ForeColor = SystemColors.ActiveCaptionText;
|
||
buttonCreateProduct.Location = new Point(69, 51);
|
||
buttonCreateProduct.Name = "buttonCreateProduct";
|
||
buttonCreateProduct.Size = new Size(139, 41);
|
||
buttonCreateProduct.TabIndex = 1;
|
||
buttonCreateProduct.Text = "Добавить товар";
|
||
buttonCreateProduct.UseVisualStyleBackColor = false;
|
||
buttonCreateProduct.Click += buttonCreateProduct_Click;
|
||
//
|
||
// groupBoxControls
|
||
//
|
||
groupBoxControls.BackColor = Color.Transparent;
|
||
groupBoxControls.Controls.Add(buttonDeleteProduct);
|
||
groupBoxControls.Controls.Add(buttonUpdateProduct);
|
||
groupBoxControls.Controls.Add(buttonCreateProduct);
|
||
groupBoxControls.Dock = DockStyle.Left;
|
||
groupBoxControls.Font = new Font("Segoe UI", 10F, FontStyle.Bold);
|
||
groupBoxControls.ForeColor = SystemColors.ControlLightLight;
|
||
groupBoxControls.Location = new Point(0, 24);
|
||
groupBoxControls.Name = "groupBoxControls";
|
||
groupBoxControls.Size = new Size(285, 535);
|
||
groupBoxControls.TabIndex = 2;
|
||
groupBoxControls.TabStop = false;
|
||
groupBoxControls.Text = "Действия";
|
||
//
|
||
// buttonDeleteProduct
|
||
//
|
||
buttonDeleteProduct.BackColor = Color.FromArgb(255, 192, 192);
|
||
buttonDeleteProduct.Font = new Font("Segoe UI", 10F, FontStyle.Bold);
|
||
buttonDeleteProduct.ForeColor = SystemColors.ActiveCaptionText;
|
||
buttonDeleteProduct.Location = new Point(69, 98);
|
||
buttonDeleteProduct.Name = "buttonDeleteProduct";
|
||
buttonDeleteProduct.Size = new Size(139, 39);
|
||
buttonDeleteProduct.TabIndex = 3;
|
||
buttonDeleteProduct.Text = "Удалить товар";
|
||
buttonDeleteProduct.UseVisualStyleBackColor = false;
|
||
buttonDeleteProduct.Click += buttonDeleteProduct_Click;
|
||
//
|
||
// buttonUpdateProduct
|
||
//
|
||
buttonUpdateProduct.Font = new Font("Segoe UI", 10F, FontStyle.Bold);
|
||
buttonUpdateProduct.ForeColor = SystemColors.ActiveCaptionText;
|
||
buttonUpdateProduct.Location = new Point(69, 143);
|
||
buttonUpdateProduct.Name = "buttonUpdateProduct";
|
||
buttonUpdateProduct.Size = new Size(139, 43);
|
||
buttonUpdateProduct.TabIndex = 2;
|
||
buttonUpdateProduct.Text = "Изменить товар";
|
||
buttonUpdateProduct.UseVisualStyleBackColor = true;
|
||
buttonUpdateProduct.Click += buttonUpdateProduct_Click;
|
||
//
|
||
// buttonPrintCheque
|
||
//
|
||
buttonPrintCheque.Font = new Font("Segoe UI", 10F, FontStyle.Bold);
|
||
buttonPrintCheque.Location = new Point(667, 378);
|
||
buttonPrintCheque.Name = "buttonPrintCheque";
|
||
buttonPrintCheque.Size = new Size(138, 57);
|
||
buttonPrintCheque.TabIndex = 7;
|
||
buttonPrintCheque.Text = "Распечатать чек";
|
||
buttonPrintCheque.UseVisualStyleBackColor = true;
|
||
buttonPrintCheque.Click += buttonPrintCheque_Click;
|
||
//
|
||
// buttonReadBarCode
|
||
//
|
||
buttonReadBarCode.Font = new Font("Segoe UI", 9F, FontStyle.Bold);
|
||
buttonReadBarCode.Location = new Point(667, 487);
|
||
buttonReadBarCode.Name = "buttonReadBarCode";
|
||
buttonReadBarCode.Size = new Size(138, 42);
|
||
buttonReadBarCode.TabIndex = 6;
|
||
buttonReadBarCode.Text = "Получить товар по штрих-коду";
|
||
buttonReadBarCode.UseVisualStyleBackColor = true;
|
||
buttonReadBarCode.Click += buttonReadBarCode_Click;
|
||
//
|
||
// pictureBox1
|
||
//
|
||
pictureBox1.Location = new Point(811, 378);
|
||
pictureBox1.Name = "pictureBox1";
|
||
pictureBox1.Size = new Size(102, 103);
|
||
pictureBox1.TabIndex = 5;
|
||
pictureBox1.TabStop = false;
|
||
//
|
||
// buttonGenerateBarCode
|
||
//
|
||
buttonGenerateBarCode.Font = new Font("Segoe UI", 9F, FontStyle.Bold);
|
||
buttonGenerateBarCode.Location = new Point(811, 487);
|
||
buttonGenerateBarCode.Name = "buttonGenerateBarCode";
|
||
buttonGenerateBarCode.Size = new Size(102, 42);
|
||
buttonGenerateBarCode.TabIndex = 4;
|
||
buttonGenerateBarCode.Text = "Сгенерировать штрих-код товара";
|
||
buttonGenerateBarCode.UseVisualStyleBackColor = true;
|
||
buttonGenerateBarCode.Click += buttonGenerateBarCode_Click;
|
||
//
|
||
// groupBoxCreateProduct
|
||
//
|
||
groupBoxCreateProduct.BackColor = Color.Transparent;
|
||
groupBoxCreateProduct.BackgroundImageLayout = ImageLayout.Center;
|
||
groupBoxCreateProduct.Controls.Add(label3);
|
||
groupBoxCreateProduct.Controls.Add(label2);
|
||
groupBoxCreateProduct.Controls.Add(label1);
|
||
groupBoxCreateProduct.Controls.Add(numericUpDownAmount);
|
||
groupBoxCreateProduct.Controls.Add(numericUpDownPrice);
|
||
groupBoxCreateProduct.Controls.Add(buttonCancel);
|
||
groupBoxCreateProduct.Controls.Add(buttonSaveProduct);
|
||
groupBoxCreateProduct.Controls.Add(checkBoxIsSold);
|
||
groupBoxCreateProduct.Controls.Add(textBoxName);
|
||
groupBoxCreateProduct.Dock = DockStyle.Left;
|
||
groupBoxCreateProduct.Font = new Font("Segoe UI", 10F, FontStyle.Bold);
|
||
groupBoxCreateProduct.ForeColor = SystemColors.ControlLightLight;
|
||
groupBoxCreateProduct.Location = new Point(285, 24);
|
||
groupBoxCreateProduct.Name = "groupBoxCreateProduct";
|
||
groupBoxCreateProduct.Size = new Size(243, 535);
|
||
groupBoxCreateProduct.TabIndex = 3;
|
||
groupBoxCreateProduct.TabStop = false;
|
||
groupBoxCreateProduct.Text = "Создание/изменение продукта";
|
||
//
|
||
// label3
|
||
//
|
||
label3.AutoSize = true;
|
||
label3.Location = new Point(5, 206);
|
||
label3.Name = "label3";
|
||
label3.Size = new Size(238, 19);
|
||
label3.TabIndex = 10;
|
||
label3.Text = "Кол-во на складе (если имеется)";
|
||
//
|
||
// label2
|
||
//
|
||
label2.AutoSize = true;
|
||
label2.Location = new Point(71, 139);
|
||
label2.Name = "label2";
|
||
label2.Size = new Size(90, 19);
|
||
label2.TabIndex = 9;
|
||
label2.Text = "Цена (руб.)";
|
||
//
|
||
// label1
|
||
//
|
||
label1.AutoSize = true;
|
||
label1.Location = new Point(24, 76);
|
||
label1.Name = "label1";
|
||
label1.Size = new Size(186, 19);
|
||
label1.TabIndex = 8;
|
||
label1.Text = "Наименование продукта";
|
||
//
|
||
// numericUpDownAmount
|
||
//
|
||
numericUpDownAmount.Location = new Point(36, 228);
|
||
numericUpDownAmount.Maximum = new decimal(new int[] { 100000, 0, 0, 0 });
|
||
numericUpDownAmount.Name = "numericUpDownAmount";
|
||
numericUpDownAmount.Size = new Size(165, 25);
|
||
numericUpDownAmount.TabIndex = 7;
|
||
//
|
||
// numericUpDownPrice
|
||
//
|
||
numericUpDownPrice.DecimalPlaces = 2;
|
||
numericUpDownPrice.Location = new Point(36, 161);
|
||
numericUpDownPrice.Maximum = new decimal(new int[] { 100000, 0, 0, 0 });
|
||
numericUpDownPrice.Name = "numericUpDownPrice";
|
||
numericUpDownPrice.Size = new Size(165, 25);
|
||
numericUpDownPrice.TabIndex = 6;
|
||
//
|
||
// buttonCancel
|
||
//
|
||
buttonCancel.ForeColor = SystemColors.ActiveCaptionText;
|
||
buttonCancel.Location = new Point(141, 473);
|
||
buttonCancel.Name = "buttonCancel";
|
||
buttonCancel.Size = new Size(96, 32);
|
||
buttonCancel.TabIndex = 5;
|
||
buttonCancel.Text = "Отмена";
|
||
buttonCancel.UseVisualStyleBackColor = true;
|
||
buttonCancel.Click += buttonCancel_Click;
|
||
//
|
||
// buttonSaveProduct
|
||
//
|
||
buttonSaveProduct.ForeColor = SystemColors.ActiveCaptionText;
|
||
buttonSaveProduct.Location = new Point(6, 473);
|
||
buttonSaveProduct.Name = "buttonSaveProduct";
|
||
buttonSaveProduct.Size = new Size(109, 30);
|
||
buttonSaveProduct.TabIndex = 4;
|
||
buttonSaveProduct.Text = "Сохранить";
|
||
buttonSaveProduct.UseVisualStyleBackColor = true;
|
||
buttonSaveProduct.Click += buttonSaveProduct_Click;
|
||
//
|
||
// checkBoxIsSold
|
||
//
|
||
checkBoxIsSold.AutoSize = true;
|
||
checkBoxIsSold.Location = new Point(27, 288);
|
||
checkBoxIsSold.Name = "checkBoxIsSold";
|
||
checkBoxIsSold.Size = new Size(183, 23);
|
||
checkBoxIsSold.TabIndex = 3;
|
||
checkBoxIsSold.Text = "Поместить в магазин?";
|
||
checkBoxIsSold.UseVisualStyleBackColor = true;
|
||
//
|
||
// textBoxName
|
||
//
|
||
textBoxName.Location = new Point(36, 98);
|
||
textBoxName.Name = "textBoxName";
|
||
textBoxName.Size = new Size(165, 25);
|
||
textBoxName.TabIndex = 0;
|
||
//
|
||
// menuStrip1
|
||
//
|
||
menuStrip1.Items.AddRange(new ToolStripItem[] { медиаФайлыToolStripMenuItem, прайслистToolStripMenuItem });
|
||
menuStrip1.Location = new Point(0, 0);
|
||
menuStrip1.Name = "menuStrip1";
|
||
menuStrip1.Size = new Size(925, 24);
|
||
menuStrip1.TabIndex = 4;
|
||
menuStrip1.Text = "menuStrip1";
|
||
//
|
||
// медиаФайлыToolStripMenuItem
|
||
//
|
||
медиаФайлыToolStripMenuItem.Name = "медиаФайлыToolStripMenuItem";
|
||
медиаФайлыToolStripMenuItem.Size = new Size(96, 20);
|
||
медиаФайлыToolStripMenuItem.Text = "Медиа файлы";
|
||
медиаФайлыToolStripMenuItem.Click += медиаФайлыToolStripMenuItem_Click;
|
||
//
|
||
// прайслистToolStripMenuItem
|
||
//
|
||
прайслистToolStripMenuItem.Name = "прайслистToolStripMenuItem";
|
||
прайслистToolStripMenuItem.Size = new Size(84, 20);
|
||
прайслистToolStripMenuItem.Text = "Прайс-лист";
|
||
прайслистToolStripMenuItem.Click += прайслистToolStripMenuItem_Click;
|
||
//
|
||
// FormProducts
|
||
//
|
||
AutoScaleDimensions = new SizeF(7F, 15F);
|
||
AutoScaleMode = AutoScaleMode.Font;
|
||
BackgroundImage = (Image)resources.GetObject("$this.BackgroundImage");
|
||
ClientSize = new Size(925, 559);
|
||
Controls.Add(buttonPrintCheque);
|
||
Controls.Add(groupBoxCreateProduct);
|
||
Controls.Add(buttonReadBarCode);
|
||
Controls.Add(groupBoxControls);
|
||
Controls.Add(buttonGenerateBarCode);
|
||
Controls.Add(pictureBox1);
|
||
Controls.Add(dataGridView);
|
||
Controls.Add(menuStrip1);
|
||
MainMenuStrip = menuStrip1;
|
||
Name = "FormProducts";
|
||
Text = "Товары";
|
||
Load += FormProducts_Load;
|
||
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
||
groupBoxControls.ResumeLayout(false);
|
||
((System.ComponentModel.ISupportInitialize)pictureBox1).EndInit();
|
||
groupBoxCreateProduct.ResumeLayout(false);
|
||
groupBoxCreateProduct.PerformLayout();
|
||
((System.ComponentModel.ISupportInitialize)numericUpDownAmount).EndInit();
|
||
((System.ComponentModel.ISupportInitialize)numericUpDownPrice).EndInit();
|
||
menuStrip1.ResumeLayout(false);
|
||
menuStrip1.PerformLayout();
|
||
ResumeLayout(false);
|
||
PerformLayout();
|
||
}
|
||
|
||
#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;
|
||
private Button buttonDeleteProduct;
|
||
private Button buttonGenerateBarCode;
|
||
private PictureBox pictureBox1;
|
||
private Button buttonReadBarCode;
|
||
private MenuStrip menuStrip1;
|
||
private ToolStripMenuItem медиаФайлыToolStripMenuItem;
|
||
private Button buttonPrintCheque;
|
||
private ToolStripMenuItem прайслистToolStripMenuItem;
|
||
private Label label3;
|
||
private Label label2;
|
||
private Label label1;
|
||
}
|
||
} |