421 lines
17 KiB
C#
421 lines
17 KiB
C#
namespace DEM_Timofeev_prob
|
|
{
|
|
partial class Form_add
|
|
{
|
|
/// <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();
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form_add));
|
|
button3 = new Button();
|
|
Save = new Button();
|
|
button_photo = new Button();
|
|
bindingSource_product = new BindingSource(components);
|
|
textBox1 = new TextBox();
|
|
textBox2 = new TextBox();
|
|
textBox3 = new TextBox();
|
|
textBox4 = new TextBox();
|
|
textBox5 = new TextBox();
|
|
textBox6 = new TextBox();
|
|
comboBox1 = new ComboBox();
|
|
bindingSource_manufactur = new BindingSource(components);
|
|
comboBox2 = new ComboBox();
|
|
bindingSource_supplier = new BindingSource(components);
|
|
comboBox3 = new ComboBox();
|
|
bindingSource_tipe_product = new BindingSource(components);
|
|
comboBox4 = new ComboBox();
|
|
bindingSource_ed = new BindingSource(components);
|
|
label1 = new Label();
|
|
label2 = new Label();
|
|
label3 = new Label();
|
|
label4 = new Label();
|
|
label5 = new Label();
|
|
label6 = new Label();
|
|
label7 = new Label();
|
|
label8 = new Label();
|
|
label9 = new Label();
|
|
label10 = new Label();
|
|
pictureBox_22 = new PictureBox();
|
|
((System.ComponentModel.ISupportInitialize)bindingSource_product).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)bindingSource_manufactur).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)bindingSource_supplier).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)bindingSource_tipe_product).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)bindingSource_ed).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)pictureBox_22).BeginInit();
|
|
SuspendLayout();
|
|
//
|
|
// button3
|
|
//
|
|
button3.BackColor = Color.Red;
|
|
button3.Location = new Point(342, 476);
|
|
button3.Name = "button3";
|
|
button3.Size = new Size(159, 45);
|
|
button3.TabIndex = 10;
|
|
button3.Text = "Назад";
|
|
button3.UseVisualStyleBackColor = false;
|
|
button3.Click += button3_Click;
|
|
//
|
|
// Save
|
|
//
|
|
Save.BackColor = Color.Red;
|
|
Save.Location = new Point(72, 423);
|
|
Save.Name = "Save";
|
|
Save.Size = new Size(159, 45);
|
|
Save.TabIndex = 11;
|
|
Save.Text = "Сохранить";
|
|
Save.UseVisualStyleBackColor = false;
|
|
//
|
|
// button_photo
|
|
//
|
|
button_photo.BackColor = Color.Red;
|
|
button_photo.Location = new Point(342, 381);
|
|
button_photo.Name = "button_photo";
|
|
button_photo.Size = new Size(159, 45);
|
|
button_photo.TabIndex = 12;
|
|
button_photo.Text = "Добавить фото";
|
|
button_photo.UseVisualStyleBackColor = false;
|
|
//
|
|
// bindingSource_product
|
|
//
|
|
bindingSource_product.DataSource = typeof(Models.Product);
|
|
//
|
|
// textBox1
|
|
//
|
|
textBox1.BackColor = Color.FromArgb(133, 242, 189);
|
|
textBox1.DataBindings.Add(new Binding("DataContext", bindingSource_product, "Articl", true));
|
|
textBox1.DataBindings.Add(new Binding("Text", bindingSource_product, "Articl", true));
|
|
textBox1.ForeColor = Color.Black;
|
|
textBox1.Location = new Point(36, 82);
|
|
textBox1.Name = "textBox1";
|
|
textBox1.Size = new Size(211, 28);
|
|
textBox1.TabIndex = 14;
|
|
//
|
|
// textBox2
|
|
//
|
|
textBox2.BackColor = Color.FromArgb(133, 242, 189);
|
|
textBox2.DataBindings.Add(new Binding("DataContext", bindingSource_product, "ProductContent", true));
|
|
textBox2.DataBindings.Add(new Binding("Text", bindingSource_product, "ProductContent", true));
|
|
textBox2.ForeColor = Color.Black;
|
|
textBox2.Location = new Point(36, 145);
|
|
textBox2.Name = "textBox2";
|
|
textBox2.Size = new Size(211, 28);
|
|
textBox2.TabIndex = 15;
|
|
//
|
|
// textBox3
|
|
//
|
|
textBox3.BackColor = Color.FromArgb(133, 242, 189);
|
|
textBox3.DataBindings.Add(new Binding("DataContext", bindingSource_product, "Sale", true));
|
|
textBox3.DataBindings.Add(new Binding("Text", bindingSource_product, "Sale", true));
|
|
textBox3.ForeColor = Color.Black;
|
|
textBox3.Location = new Point(36, 205);
|
|
textBox3.Name = "textBox3";
|
|
textBox3.Size = new Size(211, 28);
|
|
textBox3.TabIndex = 16;
|
|
//
|
|
// textBox4
|
|
//
|
|
textBox4.BackColor = Color.FromArgb(133, 242, 189);
|
|
textBox4.DataBindings.Add(new Binding("DataContext", bindingSource_product, "PriceProduct", true));
|
|
textBox4.DataBindings.Add(new Binding("Text", bindingSource_product, "PriceProduct", true));
|
|
textBox4.ForeColor = Color.Black;
|
|
textBox4.Location = new Point(36, 268);
|
|
textBox4.Name = "textBox4";
|
|
textBox4.Size = new Size(211, 28);
|
|
textBox4.TabIndex = 17;
|
|
//
|
|
// textBox5
|
|
//
|
|
textBox5.BackColor = Color.FromArgb(133, 242, 189);
|
|
textBox5.DataBindings.Add(new Binding("DataContext", bindingSource_product, "Name", true));
|
|
textBox5.DataBindings.Add(new Binding("Text", bindingSource_product, "Name", true));
|
|
textBox5.ForeColor = Color.Black;
|
|
textBox5.Location = new Point(36, 25);
|
|
textBox5.Name = "textBox5";
|
|
textBox5.Size = new Size(211, 28);
|
|
textBox5.TabIndex = 18;
|
|
//
|
|
// textBox6
|
|
//
|
|
textBox6.BackColor = Color.FromArgb(133, 242, 189);
|
|
textBox6.DataBindings.Add(new Binding("DataContext", bindingSource_product, "KolVo", true));
|
|
textBox6.DataBindings.Add(new Binding("Text", bindingSource_product, "KolVo", true));
|
|
textBox6.ForeColor = Color.Black;
|
|
textBox6.Location = new Point(36, 323);
|
|
textBox6.Name = "textBox6";
|
|
textBox6.Size = new Size(211, 28);
|
|
textBox6.TabIndex = 19;
|
|
//
|
|
// comboBox1
|
|
//
|
|
comboBox1.BackColor = Color.FromArgb(133, 242, 189);
|
|
comboBox1.DataBindings.Add(new Binding("SelectedValue", bindingSource_product, "IdManufactur", true));
|
|
comboBox1.DataSource = bindingSource_manufactur;
|
|
comboBox1.DisplayMember = "Name";
|
|
comboBox1.FormattingEnabled = true;
|
|
comboBox1.Location = new Point(307, 84);
|
|
comboBox1.Name = "comboBox1";
|
|
comboBox1.Size = new Size(162, 28);
|
|
comboBox1.TabIndex = 20;
|
|
comboBox1.ValueMember = "Idmanufact";
|
|
//
|
|
// bindingSource_manufactur
|
|
//
|
|
bindingSource_manufactur.DataSource = typeof(Models.Manufact);
|
|
//
|
|
// comboBox2
|
|
//
|
|
comboBox2.BackColor = Color.FromArgb(133, 242, 189);
|
|
comboBox2.DataBindings.Add(new Binding("SelectedValue", bindingSource_product, "IdSuplier", true));
|
|
comboBox2.DataSource = bindingSource_supplier;
|
|
comboBox2.DisplayMember = "Name";
|
|
comboBox2.FormattingEnabled = true;
|
|
comboBox2.Location = new Point(307, 138);
|
|
comboBox2.Name = "comboBox2";
|
|
comboBox2.Size = new Size(162, 28);
|
|
comboBox2.TabIndex = 21;
|
|
comboBox2.ValueMember = "Idsuplier";
|
|
//
|
|
// bindingSource_supplier
|
|
//
|
|
bindingSource_supplier.DataSource = typeof(Models.Suplier);
|
|
//
|
|
// comboBox3
|
|
//
|
|
comboBox3.BackColor = Color.FromArgb(133, 242, 189);
|
|
comboBox3.DataBindings.Add(new Binding("SelectedValue", bindingSource_product, "IdTipeProduct", true));
|
|
comboBox3.DataSource = bindingSource_tipe_product;
|
|
comboBox3.DisplayMember = "Name";
|
|
comboBox3.FormattingEnabled = true;
|
|
comboBox3.Location = new Point(307, 31);
|
|
comboBox3.Name = "comboBox3";
|
|
comboBox3.Size = new Size(162, 28);
|
|
comboBox3.TabIndex = 22;
|
|
comboBox3.ValueMember = "IdtipeProduct";
|
|
//
|
|
// bindingSource_tipe_product
|
|
//
|
|
bindingSource_tipe_product.DataSource = typeof(Models.TipeProduct);
|
|
//
|
|
// comboBox4
|
|
//
|
|
comboBox4.BackColor = Color.FromArgb(133, 242, 189);
|
|
comboBox4.DataBindings.Add(new Binding("SelectedValue", bindingSource_product, "IdEd", true));
|
|
comboBox4.DataSource = bindingSource_ed;
|
|
comboBox4.DisplayMember = "Name";
|
|
comboBox4.FormattingEnabled = true;
|
|
comboBox4.Location = new Point(307, 193);
|
|
comboBox4.Name = "comboBox4";
|
|
comboBox4.Size = new Size(162, 28);
|
|
comboBox4.TabIndex = 23;
|
|
comboBox4.ValueMember = "Ided";
|
|
//
|
|
// bindingSource_ed
|
|
//
|
|
bindingSource_ed.DataSource = typeof(Models.Ed);
|
|
//
|
|
// label1
|
|
//
|
|
label1.AutoSize = true;
|
|
label1.Location = new Point(37, 4);
|
|
label1.Name = "label1";
|
|
label1.Size = new Size(74, 20);
|
|
label1.TabIndex = 24;
|
|
label1.Text = "название";
|
|
//
|
|
// label2
|
|
//
|
|
label2.AutoSize = true;
|
|
label2.Location = new Point(37, 61);
|
|
label2.Name = "label2";
|
|
label2.Size = new Size(67, 20);
|
|
label2.TabIndex = 25;
|
|
label2.Text = "артикал";
|
|
//
|
|
// label3
|
|
//
|
|
label3.AutoSize = true;
|
|
label3.Location = new Point(37, 122);
|
|
label3.Name = "label3";
|
|
label3.Size = new Size(80, 20);
|
|
label3.TabIndex = 26;
|
|
label3.Text = "описание";
|
|
//
|
|
// label4
|
|
//
|
|
label4.AutoSize = true;
|
|
label4.Location = new Point(37, 176);
|
|
label4.Name = "label4";
|
|
label4.Size = new Size(58, 20);
|
|
label4.TabIndex = 27;
|
|
label4.Text = "скидка";
|
|
//
|
|
// label5
|
|
//
|
|
label5.AutoSize = true;
|
|
label5.Location = new Point(37, 245);
|
|
label5.Name = "label5";
|
|
label5.Size = new Size(42, 20);
|
|
label5.TabIndex = 28;
|
|
label5.Text = "цена";
|
|
//
|
|
// label6
|
|
//
|
|
label6.AutoSize = true;
|
|
label6.Location = new Point(37, 300);
|
|
label6.Name = "label6";
|
|
label6.Size = new Size(58, 20);
|
|
label6.TabIndex = 29;
|
|
label6.Text = "кол-во";
|
|
//
|
|
// label7
|
|
//
|
|
label7.AutoSize = true;
|
|
label7.Location = new Point(307, 9);
|
|
label7.Name = "label7";
|
|
label7.Size = new Size(106, 20);
|
|
label7.TabIndex = 30;
|
|
label7.Text = "тип продукта";
|
|
//
|
|
// label8
|
|
//
|
|
label8.AutoSize = true;
|
|
label8.Location = new Point(307, 61);
|
|
label8.Name = "label8";
|
|
label8.Size = new Size(121, 20);
|
|
label8.TabIndex = 31;
|
|
label8.Text = "производитель";
|
|
//
|
|
// label9
|
|
//
|
|
label9.AutoSize = true;
|
|
label9.Location = new Point(307, 115);
|
|
label9.Name = "label9";
|
|
label9.Size = new Size(88, 20);
|
|
label9.TabIndex = 32;
|
|
label9.Text = "поставщик";
|
|
//
|
|
// label10
|
|
//
|
|
label10.AutoSize = true;
|
|
label10.Location = new Point(307, 170);
|
|
label10.Name = "label10";
|
|
label10.Size = new Size(143, 20);
|
|
label10.TabIndex = 33;
|
|
label10.Text = "единица измереня";
|
|
//
|
|
// pictureBox_22
|
|
//
|
|
pictureBox_22.BackColor = Color.FromArgb(133, 242, 189);
|
|
pictureBox_22.DataBindings.Add(new Binding("DataContext", bindingSource_product, "IdPhoto", true));
|
|
pictureBox_22.Location = new Point(330, 255);
|
|
pictureBox_22.Name = "pictureBox_22";
|
|
pictureBox_22.Size = new Size(187, 109);
|
|
pictureBox_22.SizeMode = PictureBoxSizeMode.Zoom;
|
|
pictureBox_22.TabIndex = 34;
|
|
pictureBox_22.TabStop = false;
|
|
//
|
|
// Form_add
|
|
//
|
|
AutoScaleDimensions = new SizeF(9F, 20F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
BackColor = Color.FromArgb(192, 237, 215);
|
|
ClientSize = new Size(538, 533);
|
|
Controls.Add(pictureBox_22);
|
|
Controls.Add(label10);
|
|
Controls.Add(label9);
|
|
Controls.Add(label8);
|
|
Controls.Add(label7);
|
|
Controls.Add(label6);
|
|
Controls.Add(label5);
|
|
Controls.Add(label4);
|
|
Controls.Add(label3);
|
|
Controls.Add(label2);
|
|
Controls.Add(label1);
|
|
Controls.Add(comboBox4);
|
|
Controls.Add(comboBox3);
|
|
Controls.Add(comboBox2);
|
|
Controls.Add(comboBox1);
|
|
Controls.Add(textBox6);
|
|
Controls.Add(textBox5);
|
|
Controls.Add(textBox4);
|
|
Controls.Add(textBox3);
|
|
Controls.Add(textBox2);
|
|
Controls.Add(textBox1);
|
|
Controls.Add(button_photo);
|
|
Controls.Add(Save);
|
|
Controls.Add(button3);
|
|
Font = new Font("Comic Sans MS", 11.25F, FontStyle.Regular, GraphicsUnit.Point, 204);
|
|
FormBorderStyle = FormBorderStyle.FixedSingle;
|
|
Icon = (Icon)resources.GetObject("$this.Icon");
|
|
Margin = new Padding(4);
|
|
MaximizeBox = false;
|
|
MinimizeBox = false;
|
|
Name = "Form_add";
|
|
StartPosition = FormStartPosition.CenterScreen;
|
|
Text = "Создать";
|
|
((System.ComponentModel.ISupportInitialize)bindingSource_product).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)bindingSource_manufactur).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)bindingSource_supplier).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)bindingSource_tipe_product).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)bindingSource_ed).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)pictureBox_22).EndInit();
|
|
ResumeLayout(false);
|
|
PerformLayout();
|
|
}
|
|
|
|
#endregion
|
|
|
|
private Button button3;
|
|
private TextBox textBox1;
|
|
private TextBox textBox2;
|
|
private TextBox textBox3;
|
|
private TextBox textBox4;
|
|
private TextBox textBox5;
|
|
private TextBox textBox6;
|
|
private ComboBox comboBox1;
|
|
private ComboBox comboBox2;
|
|
private ComboBox comboBox3;
|
|
private ComboBox comboBox4;
|
|
public Button button_photo;
|
|
public BindingSource bindingSource_tipe_product;
|
|
public BindingSource bindingSource_manufactur;
|
|
public BindingSource bindingSource_supplier;
|
|
public BindingSource bindingSource_product;
|
|
private Label label1;
|
|
private Label label2;
|
|
private Label label3;
|
|
private Label label4;
|
|
private Label label5;
|
|
private Label label6;
|
|
private Label label7;
|
|
private Label label8;
|
|
private Label label9;
|
|
private Label label10;
|
|
public Button Save;
|
|
public PictureBox pictureBox_22;
|
|
public BindingSource bindingSource_ed;
|
|
}
|
|
} |