Георгий Лебедько пре 2 година
родитељ
комит
5e85e5dfbb

+ 139 - 0
Швейная фабрика/Form1.Designer.cs

@@ -0,0 +1,139 @@
+namespace Швейная_фабрика
+{
+    partial class Form1
+    {
+        /// <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()
+        {
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.LblTitle = new System.Windows.Forms.Label();
+            this.LblColor = new System.Windows.Forms.Label();
+            this.LblWith = new System.Windows.Forms.Label();
+            this.LblLength = new System.Windows.Forms.Label();
+            this.LblComment = new System.Windows.Forms.Label();
+            this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // panel1
+            // 
+            this.panel1.BackColor = System.Drawing.Color.White;
+            this.panel1.Controls.Add(this.LblComment);
+            this.panel1.Controls.Add(this.LblLength);
+            this.panel1.Controls.Add(this.LblWith);
+            this.panel1.Controls.Add(this.LblColor);
+            this.panel1.Controls.Add(this.LblTitle);
+            this.panel1.Controls.Add(this.pictureBox1);
+            this.panel1.Location = new System.Drawing.Point(13, 13);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(390, 161);
+            this.panel1.TabIndex = 0;
+            // 
+            // LblTitle
+            // 
+            this.LblTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.LblTitle.Location = new System.Drawing.Point(225, 13);
+            this.LblTitle.Name = "LblTitle";
+            this.LblTitle.Size = new System.Drawing.Size(147, 23);
+            this.LblTitle.TabIndex = 1;
+            this.LblTitle.Text = "label1";
+            // 
+            // LblColor
+            // 
+            this.LblColor.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.LblColor.Location = new System.Drawing.Point(225, 41);
+            this.LblColor.Name = "LblColor";
+            this.LblColor.Size = new System.Drawing.Size(147, 23);
+            this.LblColor.TabIndex = 2;
+            this.LblColor.Text = "label2";
+            // 
+            // LblWith
+            // 
+            this.LblWith.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.LblWith.Location = new System.Drawing.Point(225, 73);
+            this.LblWith.Name = "LblWith";
+            this.LblWith.Size = new System.Drawing.Size(147, 23);
+            this.LblWith.TabIndex = 3;
+            this.LblWith.Text = "label3";
+            // 
+            // LblLength
+            // 
+            this.LblLength.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.LblLength.Location = new System.Drawing.Point(225, 100);
+            this.LblLength.Name = "LblLength";
+            this.LblLength.Size = new System.Drawing.Size(147, 23);
+            this.LblLength.TabIndex = 4;
+            this.LblLength.Text = "label4";
+            // 
+            // LblComment
+            // 
+            this.LblComment.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.LblComment.Location = new System.Drawing.Point(225, 126);
+            this.LblComment.Name = "LblComment";
+            this.LblComment.Size = new System.Drawing.Size(147, 29);
+            this.LblComment.TabIndex = 5;
+            this.LblComment.Text = "label5";
+            // 
+            // pictureBox1
+            // 
+            this.pictureBox1.Location = new System.Drawing.Point(16, 13);
+            this.pictureBox1.Name = "pictureBox1";
+            this.pictureBox1.Size = new System.Drawing.Size(175, 129);
+            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pictureBox1.TabIndex = 0;
+            this.pictureBox1.TabStop = false;
+            // 
+            // Form1
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(800, 450);
+            this.Controls.Add(this.panel1);
+            this.Name = "Form1";
+            this.Text = "Form1";
+            this.panel1.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.Label LblComment;
+        private System.Windows.Forms.Label LblLength;
+        private System.Windows.Forms.Label LblWith;
+        private System.Windows.Forms.Label LblColor;
+        private System.Windows.Forms.Label LblTitle;
+        private System.Windows.Forms.PictureBox pictureBox1;
+    }
+}

+ 20 - 0
Швейная фабрика/Form1.cs

@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Швейная_фабрика
+{
+    public partial class Form1 : Form
+    {
+        public Form1()
+        {
+            InitializeComponent();
+        }
+    }
+}

+ 120 - 0
Швейная фабрика/Form1.resx

@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+</root>

+ 96 - 0
Швейная фабрика/Form2.Designer.cs

@@ -0,0 +1,96 @@
+namespace Швейная_фабрика
+{
+    partial class Form2
+    {
+        /// <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()
+        {
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.label1 = new System.Windows.Forms.Label();
+            this.label2 = new System.Windows.Forms.Label();
+            this.PbxImage = new System.Windows.Forms.PictureBox();
+            this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.PbxImage)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // panel1
+            // 
+            this.panel1.BackColor = System.Drawing.Color.White;
+            this.panel1.Controls.Add(this.label2);
+            this.panel1.Controls.Add(this.label1);
+            this.panel1.Controls.Add(this.PbxImage);
+            this.panel1.Location = new System.Drawing.Point(13, 13);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(265, 225);
+            this.panel1.TabIndex = 0;
+            // 
+            // label1
+            // 
+            this.label1.Location = new System.Drawing.Point(34, 163);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(190, 23);
+            this.label1.TabIndex = 1;
+            this.label1.Text = "label1";
+            // 
+            // label2
+            // 
+            this.label2.Location = new System.Drawing.Point(34, 190);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(190, 23);
+            this.label2.TabIndex = 2;
+            this.label2.Text = "label2";
+            // 
+            // PbxImage
+            // 
+            this.PbxImage.Location = new System.Drawing.Point(37, 18);
+            this.PbxImage.Name = "PbxImage";
+            this.PbxImage.Size = new System.Drawing.Size(187, 133);
+            this.PbxImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.PbxImage.TabIndex = 0;
+            this.PbxImage.TabStop = false;
+            // 
+            // Form2
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(800, 450);
+            this.Controls.Add(this.panel1);
+            this.Name = "Form2";
+            this.Text = "Form2";
+            this.panel1.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.PbxImage)).EndInit();
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Panel panel1;
+        public System.Windows.Forms.Label label2;
+        public System.Windows.Forms.Label label1;
+        public System.Windows.Forms.PictureBox PbxImage;
+    }
+}

+ 20 - 0
Швейная фабрика/Form2.cs

@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Швейная_фабрика
+{
+    public partial class Form2 : Form
+    {
+        public Form2()
+        {
+            InitializeComponent();
+        }
+    }
+}

+ 120 - 0
Швейная фабрика/Form2.resx

@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+</root>

+ 8 - 8
Швейная фабрика/FormMain.cs

@@ -43,13 +43,13 @@ namespace Швейная_фабрика
 
         private void BtnLogin_Click(object sender, EventArgs e)
         {
-            if (TbxCapcha.Text.ToUpper() != LblCapcha.Text)
-            {
-                MessageBox.Show("Символы капчи введены неверно!\nПопробуйте еще раз.");
-                LblCapcha.Text = GetCapcha();
-                TbxCapcha.Clear();
-                return;
-            }
+            //if (TbxCapcha.Text.ToUpper() != LblCapcha.Text)
+            //{
+            //    MessageBox.Show("Символы капчи введены неверно!\nПопробуйте еще раз.");
+            //    LblCapcha.Text = GetCapcha();
+            //    TbxCapcha.Clear();
+            //    return;
+            //}
 
             // роль пользователя (считывается из ComboBox)
             string role = CmbRole.SelectedItem.ToString();
@@ -74,7 +74,7 @@ namespace Швейная_фабрика
                 // создать форму для заказчика
                 FormZakazchik frm = new FormZakazchik();
                 // отфильтровать авторизовавшегося пользователя
-                //frm.BsUsers.Filter = TxtFilterForUser;
+                frm.BsUsers.Filter = TxtFilterForUser;
                 frm.ShowDialog();
             }
 

+ 34 - 12
Швейная фабрика/FormReg.Designer.cs

@@ -35,6 +35,7 @@
             System.Windows.Forms.Label nameLabel;
             System.Windows.Forms.Label otchLabel;
             System.Windows.Forms.Label phoneLabel1;
+            System.Windows.Forms.Label label2;
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormReg));
             this.panel1 = new System.Windows.Forms.Panel();
             this.label1 = new System.Windows.Forms.Label();
@@ -51,12 +52,14 @@
             this.CbxShowPass = new System.Windows.Forms.CheckBox();
             this.BtnCancel = new System.Windows.Forms.Button();
             this.BtnReg = new System.Windows.Forms.Button();
+            this.passTextBox2 = new System.Windows.Forms.TextBox();
             loginLabel = new System.Windows.Forms.Label();
             passLabel = new System.Windows.Forms.Label();
             surnameLabel = new System.Windows.Forms.Label();
             nameLabel = new System.Windows.Forms.Label();
             otchLabel = new System.Windows.Forms.Label();
             phoneLabel1 = new System.Windows.Forms.Label();
+            label2 = new System.Windows.Forms.Label();
             this.panel1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).BeginInit();
@@ -84,7 +87,7 @@
             // surnameLabel
             // 
             surnameLabel.AutoSize = true;
-            surnameLabel.Location = new System.Drawing.Point(84, 317);
+            surnameLabel.Location = new System.Drawing.Point(84, 359);
             surnameLabel.Name = "surnameLabel";
             surnameLabel.Size = new System.Drawing.Size(69, 16);
             surnameLabel.TabIndex = 5;
@@ -93,7 +96,7 @@
             // nameLabel
             // 
             nameLabel.AutoSize = true;
-            nameLabel.Location = new System.Drawing.Point(117, 354);
+            nameLabel.Location = new System.Drawing.Point(117, 396);
             nameLabel.Name = "nameLabel";
             nameLabel.Size = new System.Drawing.Size(36, 16);
             nameLabel.TabIndex = 7;
@@ -102,7 +105,7 @@
             // otchLabel
             // 
             otchLabel.AutoSize = true;
-            otchLabel.Location = new System.Drawing.Point(80, 391);
+            otchLabel.Location = new System.Drawing.Point(80, 433);
             otchLabel.Name = "otchLabel";
             otchLabel.Size = new System.Drawing.Size(73, 16);
             otchLabel.TabIndex = 9;
@@ -111,7 +114,7 @@
             // phoneLabel1
             // 
             phoneLabel1.AutoSize = true;
-            phoneLabel1.Location = new System.Drawing.Point(83, 260);
+            phoneLabel1.Location = new System.Drawing.Point(83, 302);
             phoneLabel1.Name = "phoneLabel1";
             phoneLabel1.Size = new System.Drawing.Size(70, 16);
             phoneLabel1.TabIndex = 14;
@@ -179,28 +182,28 @@
             // 
             // surnameTextBox
             // 
-            this.surnameTextBox.Location = new System.Drawing.Point(171, 314);
+            this.surnameTextBox.Location = new System.Drawing.Point(171, 356);
             this.surnameTextBox.Name = "surnameTextBox";
             this.surnameTextBox.Size = new System.Drawing.Size(193, 22);
             this.surnameTextBox.TabIndex = 6;
             // 
             // nameTextBox
             // 
-            this.nameTextBox.Location = new System.Drawing.Point(171, 351);
+            this.nameTextBox.Location = new System.Drawing.Point(171, 393);
             this.nameTextBox.Name = "nameTextBox";
             this.nameTextBox.Size = new System.Drawing.Size(193, 22);
             this.nameTextBox.TabIndex = 8;
             // 
             // otchTextBox
             // 
-            this.otchTextBox.Location = new System.Drawing.Point(171, 388);
+            this.otchTextBox.Location = new System.Drawing.Point(171, 430);
             this.otchTextBox.Name = "otchTextBox";
             this.otchTextBox.Size = new System.Drawing.Size(193, 22);
             this.otchTextBox.TabIndex = 10;
             // 
             // phoneMaskedTextBox
             // 
-            this.phoneMaskedTextBox.Location = new System.Drawing.Point(171, 257);
+            this.phoneMaskedTextBox.Location = new System.Drawing.Point(171, 299);
             this.phoneMaskedTextBox.Mask = "+7(999) 000-0000";
             this.phoneMaskedTextBox.Name = "phoneMaskedTextBox";
             this.phoneMaskedTextBox.Size = new System.Drawing.Size(193, 22);
@@ -209,7 +212,7 @@
             // CbxShowPass
             // 
             this.CbxShowPass.AutoSize = true;
-            this.CbxShowPass.Location = new System.Drawing.Point(145, 285);
+            this.CbxShowPass.Location = new System.Drawing.Point(145, 327);
             this.CbxShowPass.Name = "CbxShowPass";
             this.CbxShowPass.Size = new System.Drawing.Size(219, 20);
             this.CbxShowPass.TabIndex = 18;
@@ -221,7 +224,7 @@
             // 
             this.BtnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
             this.BtnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
-            this.BtnCancel.Location = new System.Drawing.Point(239, 428);
+            this.BtnCancel.Location = new System.Drawing.Point(239, 470);
             this.BtnCancel.Name = "BtnCancel";
             this.BtnCancel.Size = new System.Drawing.Size(154, 40);
             this.BtnCancel.TabIndex = 20;
@@ -232,7 +235,7 @@
             // BtnReg
             // 
             this.BtnReg.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.BtnReg.Location = new System.Drawing.Point(59, 428);
+            this.BtnReg.Location = new System.Drawing.Point(59, 470);
             this.BtnReg.Name = "BtnReg";
             this.BtnReg.Size = new System.Drawing.Size(163, 39);
             this.BtnReg.TabIndex = 19;
@@ -240,11 +243,29 @@
             this.BtnReg.UseVisualStyleBackColor = false;
             this.BtnReg.Click += new System.EventHandler(this.BtnReg_Click);
             // 
+            // label2
+            // 
+            label2.AutoSize = true;
+            label2.Location = new System.Drawing.Point(25, 264);
+            label2.Name = "label2";
+            label2.Size = new System.Drawing.Size(140, 16);
+            label2.TabIndex = 21;
+            label2.Text = "Потвердите пароль:";
+            // 
+            // passTextBox2
+            // 
+            this.passTextBox2.Location = new System.Drawing.Point(171, 261);
+            this.passTextBox2.Name = "passTextBox2";
+            this.passTextBox2.Size = new System.Drawing.Size(193, 22);
+            this.passTextBox2.TabIndex = 22;
+            // 
             // FormReg
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(446, 518);
+            this.ClientSize = new System.Drawing.Size(446, 580);
+            this.Controls.Add(label2);
+            this.Controls.Add(this.passTextBox2);
             this.Controls.Add(this.BtnCancel);
             this.Controls.Add(this.BtnReg);
             this.Controls.Add(this.CbxShowPass);
@@ -293,5 +314,6 @@
         private System.Windows.Forms.CheckBox CbxShowPass;
         private System.Windows.Forms.Button BtnCancel;
         private System.Windows.Forms.Button BtnReg;
+        private System.Windows.Forms.TextBox passTextBox2;
     }
 }

+ 10 - 0
Швейная фабрика/FormReg.cs

@@ -23,11 +23,20 @@ namespace Швейная_фабрика
         {
             // TODO: данная строка кода позволяет загрузить данные в таблицу "сlothesFactoryLGDataSet.Users". При необходимости она может быть перемещена или удалена.
             this.usersTableAdapter.Fill(this.сlothesFactoryLGDataSet.Users);
+            passTextBox.UseSystemPasswordChar = true;
+            passTextBox2.UseSystemPasswordChar = true;
 
         }
         SqlConnection Con = new SqlConnection("Data Source=213.155.192.79,3002;Initial Catalog=СlothesFactoryLG;Persist Security Info=True;User ID=u21lebed;Password=hgm8");
         private void BtnReg_Click(object sender, EventArgs e)
         {
+            if (passTextBox.Text != passTextBox2.Text)
+            {
+                MessageBox.Show("Пароли не совпадают", "Внимание!",
+                    MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+                passTextBox.Focus();
+                return;
+            }
             // если пароль, указанный пользователем, не соответствует требованиям
             CheckPass ps = new CheckPass();
             if (!ps.ClassCheckPass(passTextBox.Text))
@@ -71,6 +80,7 @@ MessageBoxIcon.Exclamation);
         private void CbxShowPass_CheckedChanged(object sender, EventArgs e)
         {
             passTextBox.UseSystemPasswordChar = !passTextBox.UseSystemPasswordChar;
+            passTextBox2.UseSystemPasswordChar = !passTextBox2.UseSystemPasswordChar;
         }
     }
 }

+ 3 - 0
Швейная фабрика/FormReg.resx

@@ -144,6 +144,9 @@
   <metadata name="usersTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>351, 18</value>
   </metadata>
+  <metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
   <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
     <value>

+ 150 - 3
Швейная фабрика/FormZakazchik.Designer.cs

@@ -28,35 +28,87 @@
         /// </summary>
         private void InitializeComponent()
         {
+            this.components = new System.ComponentModel.Container();
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormZakazchik));
             this.panel1 = new System.Windows.Forms.Panel();
+            this.otchLabel1 = new System.Windows.Forms.Label();
+            this.BsUsers = new System.Windows.Forms.BindingSource(this.components);
+            this.сlothesFactoryLGDataSet = new Швейная_фабрика.СlothesFactoryLGDataSet();
             this.label1 = new System.Windows.Forms.Label();
+            this.nameLabel1 = new System.Windows.Forms.Label();
             this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.surnameLabel1 = new System.Windows.Forms.Label();
+            this.usersTableAdapter = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.UsersTableAdapter();
+            this.tabControl1 = new System.Windows.Forms.TabControl();
+            this.tabPage1 = new System.Windows.Forms.TabPage();
+            this.TlpTkani = new System.Windows.Forms.TableLayoutPanel();
+            this.tabPage2 = new System.Windows.Forms.TabPage();
+            this.TlpFurnitura = new System.Windows.Forms.TableLayoutPanel();
             this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+            this.tabControl1.SuspendLayout();
+            this.tabPage1.SuspendLayout();
+            this.tabPage2.SuspendLayout();
             this.SuspendLayout();
             // 
             // panel1
             // 
             this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
+            this.panel1.Controls.Add(this.otchLabel1);
             this.panel1.Controls.Add(this.label1);
+            this.panel1.Controls.Add(this.nameLabel1);
             this.panel1.Controls.Add(this.pictureBox1);
+            this.panel1.Controls.Add(this.surnameLabel1);
             this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
             this.panel1.Location = new System.Drawing.Point(0, 0);
             this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(800, 130);
+            this.panel1.Size = new System.Drawing.Size(873, 130);
             this.panel1.TabIndex = 2;
             // 
+            // otchLabel1
+            // 
+            this.otchLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.otchLabel1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Otch", true));
+            this.otchLabel1.Location = new System.Drawing.Point(341, 80);
+            this.otchLabel1.Name = "otchLabel1";
+            this.otchLabel1.Size = new System.Drawing.Size(461, 23);
+            this.otchLabel1.TabIndex = 6;
+            this.otchLabel1.Text = "Отчество";
+            // 
+            // BsUsers
+            // 
+            this.BsUsers.DataMember = "Users";
+            this.BsUsers.DataSource = this.сlothesFactoryLGDataSet;
+            // 
+            // сlothesFactoryLGDataSet
+            // 
+            this.сlothesFactoryLGDataSet.DataSetName = "СlothesFactoryLGDataSet";
+            this.сlothesFactoryLGDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+            // 
             // label1
             // 
             this.label1.AutoSize = true;
             this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
-            this.label1.Location = new System.Drawing.Point(205, 51);
+            this.label1.Location = new System.Drawing.Point(186, 51);
             this.label1.Name = "label1";
             this.label1.Size = new System.Drawing.Size(119, 29);
             this.label1.TabIndex = 1;
             this.label1.Text = "Заказчик";
             // 
+            // nameLabel1
+            // 
+            this.nameLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.nameLabel1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Name", true));
+            this.nameLabel1.Location = new System.Drawing.Point(341, 57);
+            this.nameLabel1.Name = "nameLabel1";
+            this.nameLabel1.Size = new System.Drawing.Size(461, 23);
+            this.nameLabel1.TabIndex = 4;
+            this.nameLabel1.Text = "Имя";
+            // 
             // pictureBox1
             // 
             this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
@@ -68,19 +120,103 @@
             this.pictureBox1.TabIndex = 0;
             this.pictureBox1.TabStop = false;
             // 
+            // surnameLabel1
+            // 
+            this.surnameLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.surnameLabel1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Surname", true));
+            this.surnameLabel1.Location = new System.Drawing.Point(341, 35);
+            this.surnameLabel1.Name = "surnameLabel1";
+            this.surnameLabel1.Size = new System.Drawing.Size(461, 23);
+            this.surnameLabel1.TabIndex = 3;
+            this.surnameLabel1.Text = "Фамилия";
+            // 
+            // usersTableAdapter
+            // 
+            this.usersTableAdapter.ClearBeforeFill = true;
+            // 
+            // tabControl1
+            // 
+            this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left)));
+            this.tabControl1.Controls.Add(this.tabPage1);
+            this.tabControl1.Controls.Add(this.tabPage2);
+            this.tabControl1.Location = new System.Drawing.Point(13, 137);
+            this.tabControl1.Name = "tabControl1";
+            this.tabControl1.SelectedIndex = 0;
+            this.tabControl1.Size = new System.Drawing.Size(596, 418);
+            this.tabControl1.TabIndex = 3;
+            // 
+            // tabPage1
+            // 
+            this.tabPage1.Controls.Add(this.TlpTkani);
+            this.tabPage1.Location = new System.Drawing.Point(4, 25);
+            this.tabPage1.Name = "tabPage1";
+            this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
+            this.tabPage1.Size = new System.Drawing.Size(588, 389);
+            this.tabPage1.TabIndex = 0;
+            this.tabPage1.Text = "Ткани";
+            this.tabPage1.UseVisualStyleBackColor = true;
+            // 
+            // TlpTkani
+            // 
+            this.TlpTkani.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left)));
+            this.TlpTkani.AutoScroll = true;
+            this.TlpTkani.ColumnCount = 1;
+            this.TlpTkani.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
+            this.TlpTkani.Location = new System.Drawing.Point(7, 7);
+            this.TlpTkani.Name = "TlpTkani";
+            this.TlpTkani.RowCount = 1;
+            this.TlpTkani.RowStyles.Add(new System.Windows.Forms.RowStyle());
+            this.TlpTkani.Size = new System.Drawing.Size(575, 376);
+            this.TlpTkani.TabIndex = 0;
+            // 
+            // tabPage2
+            // 
+            this.tabPage2.Controls.Add(this.TlpFurnitura);
+            this.tabPage2.Location = new System.Drawing.Point(4, 25);
+            this.tabPage2.Name = "tabPage2";
+            this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
+            this.tabPage2.Size = new System.Drawing.Size(588, 389);
+            this.tabPage2.TabIndex = 1;
+            this.tabPage2.Text = "Фурнитура";
+            this.tabPage2.UseVisualStyleBackColor = true;
+            // 
+            // TlpFurnitura
+            // 
+            this.TlpFurnitura.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left)));
+            this.TlpFurnitura.AutoScroll = true;
+            this.TlpFurnitura.ColumnCount = 1;
+            this.TlpFurnitura.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
+            this.TlpFurnitura.Location = new System.Drawing.Point(6, 6);
+            this.TlpFurnitura.Name = "TlpFurnitura";
+            this.TlpFurnitura.RowCount = 1;
+            this.TlpFurnitura.RowStyles.Add(new System.Windows.Forms.RowStyle());
+            this.TlpFurnitura.Size = new System.Drawing.Size(576, 377);
+            this.TlpFurnitura.TabIndex = 0;
+            // 
             // FormZakazchik
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(800, 450);
+            this.ClientSize = new System.Drawing.Size(873, 567);
+            this.Controls.Add(this.tabControl1);
             this.Controls.Add(this.panel1);
             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
             this.Name = "FormZakazchik";
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
             this.Text = "СУБД \"Швейная фабрика\"";
+            this.Load += new System.EventHandler(this.FormZakazchik_Load);
             this.panel1.ResumeLayout(false);
             this.panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+            this.tabControl1.ResumeLayout(false);
+            this.tabPage1.ResumeLayout(false);
+            this.tabPage2.ResumeLayout(false);
             this.ResumeLayout(false);
 
         }
@@ -90,5 +226,16 @@
         private System.Windows.Forms.Panel panel1;
         private System.Windows.Forms.Label label1;
         private System.Windows.Forms.PictureBox pictureBox1;
+        private СlothesFactoryLGDataSet сlothesFactoryLGDataSet;
+        private СlothesFactoryLGDataSetTableAdapters.UsersTableAdapter usersTableAdapter;
+        public System.Windows.Forms.BindingSource BsUsers;
+        private System.Windows.Forms.Label otchLabel1;
+        private System.Windows.Forms.Label nameLabel1;
+        private System.Windows.Forms.Label surnameLabel1;
+        private System.Windows.Forms.TabControl tabControl1;
+        private System.Windows.Forms.TabPage tabPage1;
+        private System.Windows.Forms.TabPage tabPage2;
+        private System.Windows.Forms.TableLayoutPanel TlpTkani;
+        private System.Windows.Forms.TableLayoutPanel TlpFurnitura;
     }
 }

+ 262 - 0
Швейная фабрика/FormZakazchik.cs

@@ -2,6 +2,7 @@
 using System.Collections.Generic;
 using System.ComponentModel;
 using System.Data;
+using System.Data.SqlClient;
 using System.Drawing;
 using System.Linq;
 using System.Text;
@@ -16,5 +17,266 @@ namespace Швейная_фабрика
         {
             InitializeComponent();
         }
+
+        string TxtCon = @"Data Source=213.155.192.79,3002;Initial Catalog=СlothesFactoryLG;Persist Security Info=True;User ID=u21lebed;Password=hgm8";
+        class ItemTkani : Panel
+        {
+            public System.Windows.Forms.Label LblComment;
+            public System.Windows.Forms.Label LblLength;
+            public System.Windows.Forms.Label LblWith;
+            public System.Windows.Forms.Label LblColor;
+            public System.Windows.Forms.Label LblTitle;
+            public System.Windows.Forms.PictureBox PbxPhoto;
+
+            public ItemTkani()
+            {
+                this.LblTitle = new System.Windows.Forms.Label();
+                this.LblColor = new System.Windows.Forms.Label();
+                this.LblWith = new System.Windows.Forms.Label();
+                this.LblLength = new System.Windows.Forms.Label();
+                this.LblComment = new System.Windows.Forms.Label();
+                this.PbxPhoto = new System.Windows.Forms.PictureBox();
+                // 
+                // panel1
+                // 
+                this.BackColor = System.Drawing.Color.White;
+                this.Controls.Add(this.LblComment);
+                this.Controls.Add(this.LblLength);
+                this.Controls.Add(this.LblWith);
+                this.Controls.Add(this.LblColor);
+                this.Controls.Add(this.LblTitle);
+                this.Controls.Add(this.PbxPhoto);
+                this.Location = new System.Drawing.Point(13, 13);
+                this.Name = "panel1";
+                this.Size = new System.Drawing.Size(390, 161);
+                this.TabIndex = 0;
+                // 
+                // LblTitle
+                // 
+                this.LblTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+                | System.Windows.Forms.AnchorStyles.Right)));
+                this.LblTitle.Location = new System.Drawing.Point(225, 13);
+                this.LblTitle.Name = "LblTitle";
+                this.LblTitle.Size = new System.Drawing.Size(147, 23);
+                this.LblTitle.TabIndex = 1;
+                this.LblTitle.Text = "label1";
+                // 
+                // LblColor
+                // 
+                this.LblColor.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+                | System.Windows.Forms.AnchorStyles.Right)));
+                this.LblColor.Location = new System.Drawing.Point(225, 41);
+                this.LblColor.Name = "LblColor";
+                this.LblColor.Size = new System.Drawing.Size(147, 23);
+                this.LblColor.TabIndex = 2;
+                this.LblColor.Text = "label2";
+                // 
+                // LblWith
+                // 
+                this.LblWith.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+                | System.Windows.Forms.AnchorStyles.Right)));
+                this.LblWith.Location = new System.Drawing.Point(225, 73);
+                this.LblWith.Name = "LblWith";
+                this.LblWith.Size = new System.Drawing.Size(147, 23);
+                this.LblWith.TabIndex = 3;
+                this.LblWith.Text = "label3";
+                // 
+                // LblLength
+                // 
+                this.LblLength.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+                | System.Windows.Forms.AnchorStyles.Right)));
+                this.LblLength.Location = new System.Drawing.Point(225, 100);
+                this.LblLength.Name = "LblLength";
+                this.LblLength.Size = new System.Drawing.Size(147, 23);
+                this.LblLength.TabIndex = 4;
+                this.LblLength.Text = "label4";
+                // 
+                // LblComment
+                // 
+                this.LblComment.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+                | System.Windows.Forms.AnchorStyles.Right)));
+                this.LblComment.Location = new System.Drawing.Point(225, 126);
+                this.LblComment.Name = "LblComment";
+                this.LblComment.Size = new System.Drawing.Size(147, 29);
+                this.LblComment.TabIndex = 5;
+                this.LblComment.Text = "label5";
+                // 
+                // pictureBox1
+                // 
+                this.PbxPhoto.Location = new System.Drawing.Point(16, 13);
+                this.PbxPhoto.Name = "pictureBox1";
+                this.PbxPhoto.Size = new System.Drawing.Size(175, 129);
+                this.PbxPhoto.TabIndex = 0;
+                this.PbxPhoto.TabStop = false;
+                this.PbxPhoto.SizeMode = PictureBoxSizeMode.Zoom;
+            }
+        }
+        class ItemFurnitura : Panel
+        {
+            public System.Windows.Forms.Label label2;
+            public System.Windows.Forms.Label label1;
+            public System.Windows.Forms.PictureBox PbxImage;
+            public ItemFurnitura()
+            {
+                this.label1 = new System.Windows.Forms.Label();
+                this.label2 = new System.Windows.Forms.Label();
+                this.PbxImage = new System.Windows.Forms.PictureBox();
+                // 
+                // panel1
+                // 
+                this.BackColor = System.Drawing.Color.White;
+                this.Controls.Add(this.label2);
+                this.Controls.Add(this.label1);
+                this.Controls.Add(this.PbxImage);
+                this.Location = new System.Drawing.Point(13, 13);
+                this.Name = "panel1";
+                this.Size = new System.Drawing.Size(265, 225);
+                this.TabIndex = 0;
+                // 
+                // label1
+                // 
+                this.label1.Location = new System.Drawing.Point(34, 163);
+                this.label1.Name = "label1";
+                this.label1.Size = new System.Drawing.Size(190, 23);
+                this.label1.TabIndex = 1;
+                this.label1.Text = "label1";
+                // 
+                // label2
+                // 
+                this.label2.Location = new System.Drawing.Point(34, 190);
+                this.label2.Name = "label2";
+                this.label2.Size = new System.Drawing.Size(190, 23);
+                this.label2.TabIndex = 2;
+                this.label2.Text = "label2";
+                // 
+                // PbxImage
+                // 
+                this.PbxImage.Location = new System.Drawing.Point(37, 18);
+                this.PbxImage.Name = "PbxImage";
+                this.PbxImage.Size = new System.Drawing.Size(187, 133);
+                this.PbxImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+                this.PbxImage.TabIndex = 0;
+                this.PbxImage.TabStop = false;
+            }
+        }
+
+        struct Tkani
+        {
+            public string Title, Color, With, Length, Comment, Photo;
+        }
+        struct Furnitura
+        {
+            public string Title, CountFur, Image;
+        }
+        List<Tkani> LstTkani = new List<Tkani>();
+        List<Furnitura> LstFurnitura = new List<Furnitura>();
+        void GetDateFromDBForTkani()
+        {
+            SqlConnection Con = new SqlConnection(TxtCon);
+            Con.Open();
+            string TxtQuery =
+@"select  Tkan.Title as TitleTkan, Color.Title as TitleColor, Length, Width, Comment, NamePhoto
+from Tkan join Color on Tkan.id_color = Color.id_colors";
+            SqlCommand Query = new SqlCommand(TxtQuery, Con);
+            SqlDataReader Res = Query.ExecuteReader();
+
+            LstTkani.Clear();
+            while (Res.Read())
+            {
+                Tkani tkan = new Tkani();
+                tkan.Title = Res["TitleTkan"].ToString();  
+                tkan.Color = Res["TitleColor"].ToString();  
+                tkan.With = Res["Width"].ToString();  
+                tkan.Length = Res["Length"].ToString();  
+                tkan.Comment = Res["Comment"].ToString();
+                tkan.Photo = Res["NamePhoto"].ToString();
+                LstTkani.Add(tkan);
+            }
+            Con.Close();
+        }
+        void GetDateFromDBForFurnitura()
+        {
+            SqlConnection Con = new SqlConnection(TxtCon);
+            Con.Open();
+
+            SqlCommand Query = new SqlCommand("select * from Furnitura ", Con);
+            SqlDataReader Res = Query.ExecuteReader();
+
+            LstFurnitura.Clear();
+            while (Res.Read())
+            {
+                Furnitura fur = new Furnitura();
+                fur.Title = Res["namefur"].ToString();
+                fur.CountFur = Res["countfur"].ToString();
+                fur.Image = Res["photo"].ToString();
+                LstFurnitura.Add(fur);
+            }
+            Con.Close();
+        }
+        void FillPanelForFurnitura()
+        {
+            //очистить панель от старых данных
+            TlpFurnitura.Controls.Clear();
+            //перебор записей о товарах
+            for (int i = 0; i <= LstFurnitura.Count - 1; i++)
+            {
+                ItemFurnitura Item = new ItemFurnitura();
+                Item.label1.Text = LstFurnitura[i].Title;
+                Item.label2.Text = LstFurnitura[i].CountFur;
+                try
+                {
+                    Item.PbxImage.Image = Image.FromFile(Application.StartupPath + "\\furnitur\\" + LstFurnitura[i].Image);
+                }
+                catch
+                {
+                    Item.PbxImage.Image = Image.FromFile(Application.StartupPath + "\\furnitur\\picture.jpg");
+                }
+                Item.Click += Item_Click;
+                //добавить плитку в контейнер
+                TlpFurnitura.Controls.Add(Item);
+            }
+        }
+        void FillPanelForTkani()
+        {
+            //очистить панель от старых данных
+            TlpTkani.Controls.Clear();
+            //перебор записей о товарах
+            for (int i = 0; i <= LstTkani.Count - 1; i++)
+            {
+                ItemTkani Item = new ItemTkani();
+                Item.LblTitle.Text = LstTkani[i].Title;
+                Item.LblColor.Text = LstTkani[i].Color;
+                Item.LblWith.Text = LstTkani[i].With;
+                Item.LblLength.Text = LstTkani[i].Length;
+                Item.LblComment.Text = LstTkani[i].Comment;
+                try
+                {
+                    Item.PbxPhoto.Image = Image.FromFile(Application.StartupPath + "\\tkani\\" + LstTkani[i].Photo);
+                }
+                catch
+                {
+                    Item.PbxPhoto.Image = Image.FromFile(Application.StartupPath + "\\tkani\\picture.jpg");
+                }
+                Item.Click += Item_Click;
+                //добавить плитку в контейнер
+                TlpTkani.Controls.Add(Item);
+            }
+        }
+        private void Item_Click(object sender, EventArgs e)
+        {
+            
+        }
+
+        private void FormZakazchik_Load(object sender, EventArgs e)
+        {
+            // TODO: данная строка кода позволяет загрузить данные в таблицу "сlothesFactoryLGDataSet.Users". При необходимости она может быть перемещена или удалена.
+            this.usersTableAdapter.Fill(this.сlothesFactoryLGDataSet.Users);
+
+            GetDateFromDBForTkani();
+            FillPanelForTkani();
+
+            GetDateFromDBForFurnitura();
+            FillPanelForFurnitura();
+        }
     }
 }

+ 9 - 0
Швейная фабрика/FormZakazchik.resx

@@ -117,6 +117,15 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
+  <metadata name="BsUsers.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>243, 17</value>
+  </metadata>
+  <metadata name="сlothesFactoryLGDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
+  </metadata>
+  <metadata name="usersTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>346, 19</value>
+  </metadata>
   <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
     <value>

+ 21 - 0
Швейная фабрика/СlothesFactoryLGDataSet.xsc

@@ -8,6 +8,27 @@
   <TableUISettings>
     <TableUISetting Name="Users">
       <ColumnUISettings>
+        <ColumnUISetting Name="Surname">
+          <ControlSettings>
+            <ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form">
+              <BindableControlInfo Name="Label" Type="System.Windows.Forms.Label" AssemblyName="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+            </ControlSetting>
+          </ControlSettings>
+        </ColumnUISetting>
+        <ColumnUISetting Name="Name">
+          <ControlSettings>
+            <ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form">
+              <BindableControlInfo Name="Label" Type="System.Windows.Forms.Label" AssemblyName="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+            </ControlSetting>
+          </ControlSettings>
+        </ColumnUISetting>
+        <ColumnUISetting Name="Otch">
+          <ControlSettings>
+            <ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form">
+              <BindableControlInfo Name="Label" Type="System.Windows.Forms.Label" AssemblyName="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+            </ControlSetting>
+          </ControlSettings>
+        </ColumnUISetting>
         <ColumnUISetting Name="Phone">
           <ControlSettings>
             <ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form">

+ 18 - 0
Швейная фабрика/Швейная фабрика.csproj

@@ -52,6 +52,18 @@
     <Reference Include="System.Xml" />
   </ItemGroup>
   <ItemGroup>
+    <Compile Include="Form1.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Form1.Designer.cs">
+      <DependentUpon>Form1.cs</DependentUpon>
+    </Compile>
+    <Compile Include="Form2.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Form2.Designer.cs">
+      <DependentUpon>Form2.cs</DependentUpon>
+    </Compile>
     <Compile Include="FormKladovschik.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -89,6 +101,12 @@
       <DesignTime>True</DesignTime>
       <DependentUpon>СlothesFactoryLGDataSet.xsd</DependentUpon>
     </Compile>
+    <EmbeddedResource Include="Form1.resx">
+      <DependentUpon>Form1.cs</DependentUpon>
+    </EmbeddedResource>
+    <EmbeddedResource Include="Form2.resx">
+      <DependentUpon>Form2.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="FormKladovschik.resx">
       <DependentUpon>FormKladovschik.cs</DependentUpon>
     </EmbeddedResource>