247 lines
9.9 KiB
C#
247 lines
9.9 KiB
C#
namespace shoe_store
|
|
{
|
|
partial class Formadd
|
|
{
|
|
/// <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()
|
|
{
|
|
components = new System.ComponentModel.Container();
|
|
button1 = new Button();
|
|
productBindingSource = new BindingSource(components);
|
|
Save = new Button();
|
|
textBox1 = new TextBox();
|
|
comboBox1 = new ComboBox();
|
|
categoryBindingSourse = new BindingSource(components);
|
|
comboBox2 = new ComboBox();
|
|
manufacturerBindingSourse = new BindingSource(components);
|
|
comboBox3 = new ComboBox();
|
|
supplierBindingSource = new BindingSource(components);
|
|
textBox2 = new TextBox();
|
|
textBox3 = new TextBox();
|
|
textBox4 = new TextBox();
|
|
textBox5 = new TextBox();
|
|
textBox6 = new TextBox();
|
|
textBox7 = new TextBox();
|
|
((System.ComponentModel.ISupportInitialize)productBindingSource).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)categoryBindingSourse).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)manufacturerBindingSourse).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)supplierBindingSource).BeginInit();
|
|
SuspendLayout();
|
|
//
|
|
// button1
|
|
//
|
|
button1.Location = new Point(346, 297);
|
|
button1.Margin = new Padding(3, 2, 3, 2);
|
|
button1.Name = "button1";
|
|
button1.Size = new Size(80, 23);
|
|
button1.TabIndex = 0;
|
|
button1.Text = "Exit";
|
|
button1.UseVisualStyleBackColor = true;
|
|
button1.Click += button1_Click;
|
|
//
|
|
// productBindingSource
|
|
//
|
|
productBindingSource.DataSource = typeof(Models.Product);
|
|
//
|
|
// Save
|
|
//
|
|
Save.Location = new Point(321, 244);
|
|
Save.Margin = new Padding(3, 2, 3, 2);
|
|
Save.Name = "Save";
|
|
Save.Size = new Size(97, 35);
|
|
Save.TabIndex = 1;
|
|
Save.Text = "save";
|
|
Save.UseVisualStyleBackColor = true;
|
|
//
|
|
// textBox1
|
|
//
|
|
textBox1.DataBindings.Add(new Binding("Text", productBindingSource, "ArticleProduct", true));
|
|
textBox1.Location = new Point(46, 9);
|
|
textBox1.Margin = new Padding(3, 2, 3, 2);
|
|
textBox1.Name = "textBox1";
|
|
textBox1.Size = new Size(128, 23);
|
|
textBox1.TabIndex = 2;
|
|
textBox1.TextChanged += textBox1_TextChanged;
|
|
//
|
|
// comboBox1
|
|
//
|
|
comboBox1.DataBindings.Add(new Binding("SelectedValue", productBindingSource, "CategoryId", true));
|
|
comboBox1.DataSource = categoryBindingSourse;
|
|
comboBox1.DisplayMember = "CategoryName";
|
|
comboBox1.FormattingEnabled = true;
|
|
comboBox1.Location = new Point(46, 164);
|
|
comboBox1.Margin = new Padding(3, 2, 3, 2);
|
|
comboBox1.Name = "comboBox1";
|
|
comboBox1.Size = new Size(106, 23);
|
|
comboBox1.TabIndex = 3;
|
|
comboBox1.ValueMember = "IdCategory";
|
|
//
|
|
// categoryBindingSourse
|
|
//
|
|
categoryBindingSourse.DataSource = typeof(Models.Category);
|
|
//
|
|
// comboBox2
|
|
//
|
|
comboBox2.DataBindings.Add(new Binding("SelectedValue", productBindingSource, "ManufacturerId", true));
|
|
comboBox2.DataSource = manufacturerBindingSourse;
|
|
comboBox2.DisplayMember = "ManufacturerName";
|
|
comboBox2.FormattingEnabled = true;
|
|
comboBox2.Location = new Point(46, 139);
|
|
comboBox2.Margin = new Padding(3, 2, 3, 2);
|
|
comboBox2.Name = "comboBox2";
|
|
comboBox2.Size = new Size(106, 23);
|
|
comboBox2.TabIndex = 4;
|
|
comboBox2.ValueMember = "IdManufacturer";
|
|
//
|
|
// manufacturerBindingSourse
|
|
//
|
|
manufacturerBindingSourse.DataSource = typeof(Models.Manufacturer);
|
|
//
|
|
// comboBox3
|
|
//
|
|
comboBox3.DataBindings.Add(new Binding("SelectedValue", productBindingSource, "SupplierId", true));
|
|
comboBox3.DataSource = supplierBindingSource;
|
|
comboBox3.DisplayMember = "SupplierName";
|
|
comboBox3.FormattingEnabled = true;
|
|
comboBox3.Location = new Point(46, 105);
|
|
comboBox3.Margin = new Padding(3, 2, 3, 2);
|
|
comboBox3.Name = "comboBox3";
|
|
comboBox3.Size = new Size(128, 23);
|
|
comboBox3.TabIndex = 5;
|
|
comboBox3.ValueMember = "IdSupplier";
|
|
//
|
|
// supplierBindingSource
|
|
//
|
|
supplierBindingSource.DataSource = typeof(Models.Supplier);
|
|
//
|
|
// textBox2
|
|
//
|
|
textBox2.DataBindings.Add(new Binding("Text", productBindingSource, "ProductName", true));
|
|
textBox2.Location = new Point(46, 41);
|
|
textBox2.Margin = new Padding(3, 2, 3, 2);
|
|
textBox2.Name = "textBox2";
|
|
textBox2.Size = new Size(128, 23);
|
|
textBox2.TabIndex = 7;
|
|
textBox2.Text = "v";
|
|
//
|
|
// textBox3
|
|
//
|
|
textBox3.DataBindings.Add(new Binding("Text", productBindingSource, "SalePercent", true));
|
|
textBox3.Location = new Point(46, 190);
|
|
textBox3.Margin = new Padding(3, 2, 3, 2);
|
|
textBox3.Name = "textBox3";
|
|
textBox3.Size = new Size(128, 23);
|
|
textBox3.TabIndex = 9;
|
|
//
|
|
// textBox4
|
|
//
|
|
textBox4.DataBindings.Add(new Binding("Text", productBindingSource, "Price", true));
|
|
textBox4.Location = new Point(46, 71);
|
|
textBox4.Margin = new Padding(3, 2, 3, 2);
|
|
textBox4.Name = "textBox4";
|
|
textBox4.Size = new Size(128, 23);
|
|
textBox4.TabIndex = 8;
|
|
//
|
|
// textBox5
|
|
//
|
|
textBox5.DataBindings.Add(new Binding("Text", productBindingSource, "Description", true));
|
|
textBox5.Location = new Point(46, 251);
|
|
textBox5.Margin = new Padding(3, 2, 3, 2);
|
|
textBox5.Name = "textBox5";
|
|
textBox5.Size = new Size(128, 23);
|
|
textBox5.TabIndex = 12;
|
|
//
|
|
// textBox6
|
|
//
|
|
textBox6.DataBindings.Add(new Binding("Text", productBindingSource, "UnitType", true));
|
|
textBox6.Location = new Point(46, 219);
|
|
textBox6.Margin = new Padding(3, 2, 3, 2);
|
|
textBox6.Name = "textBox6";
|
|
textBox6.Size = new Size(128, 23);
|
|
textBox6.TabIndex = 11;
|
|
//
|
|
// textBox7
|
|
//
|
|
textBox7.DataBindings.Add(new Binding("Text", productBindingSource, "QuantityInStock", true));
|
|
textBox7.Location = new Point(55, 312);
|
|
textBox7.Margin = new Padding(3, 2, 3, 2);
|
|
textBox7.Name = "textBox7";
|
|
textBox7.Size = new Size(128, 23);
|
|
textBox7.TabIndex = 10;
|
|
//
|
|
// Formadd
|
|
//
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(441, 341);
|
|
Controls.Add(textBox5);
|
|
Controls.Add(textBox6);
|
|
Controls.Add(textBox7);
|
|
Controls.Add(textBox3);
|
|
Controls.Add(textBox4);
|
|
Controls.Add(textBox2);
|
|
Controls.Add(comboBox3);
|
|
Controls.Add(comboBox2);
|
|
Controls.Add(comboBox1);
|
|
Controls.Add(textBox1);
|
|
Controls.Add(Save);
|
|
Controls.Add(button1);
|
|
FormBorderStyle = FormBorderStyle.FixedSingle;
|
|
Margin = new Padding(3, 2, 3, 2);
|
|
MaximizeBox = false;
|
|
MinimizeBox = false;
|
|
Name = "Formadd";
|
|
StartPosition = FormStartPosition.CenterScreen;
|
|
Text = "Formadd";
|
|
Load += Formadd_Load;
|
|
((System.ComponentModel.ISupportInitialize)productBindingSource).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)categoryBindingSourse).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)manufacturerBindingSourse).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)supplierBindingSource).EndInit();
|
|
ResumeLayout(false);
|
|
PerformLayout();
|
|
}
|
|
|
|
#endregion
|
|
|
|
private Button button1;
|
|
public BindingSource productBindingSource;
|
|
public Button Save;
|
|
private TextBox textBox1;
|
|
private ComboBox comboBox1;
|
|
private ComboBox comboBox2;
|
|
private ComboBox comboBox3;
|
|
private TextBox textBox2;
|
|
private TextBox textBox3;
|
|
private TextBox textBox4;
|
|
private TextBox textBox5;
|
|
private TextBox textBox6;
|
|
private TextBox textBox7;
|
|
public BindingSource categoryBindingSourse;
|
|
public BindingSource manufacturerBindingSourse;
|
|
public BindingSource supplierBindingSource;
|
|
}
|
|
} |