Parcourir la source

Начало создание плиточного интерфейса

Your Name il y a 2 ans
Parent
commit
0e4bd99896
18 fichiers modifiés avec 1219 ajouts et 12 suppressions
  1. 45 5
      СУБД Швейная фабрика/FormAuthorization.Designer.cs
  2. 77 4
      СУБД Швейная фабрика/FormAuthorization.cs
  3. 78 3
      СУБД Швейная фабрика/FormClient.Designer.cs
  4. 22 0
      СУБД Швейная фабрика/FormClient.cs
  5. 197 0
      СУБД Швейная фабрика/FormClient.resx
  6. 306 0
      СУБД Швейная фабрика/FormEditUser.Designer.cs
  7. 103 0
      СУБД Швейная фабрика/FormEditUser.cs
  8. 197 0
      СУБД Швейная фабрика/FormEditUser.resx
  9. 39 0
      СУБД Швейная фабрика/FormPlitka.Designer.cs
  10. 20 0
      СУБД Швейная фабрика/FormPlitka.cs
  11. 120 0
      СУБД Швейная фабрика/FormPlitka.resx
  12. 1 0
      СУБД Швейная фабрика/FormRegistration.cs
  13. BIN
      СУБД Швейная фабрика/bin/Debug/СУБД Швейная фабрика.exe
  14. 2 0
      СУБД Швейная фабрика/obj/Debug/СУБД Швейная фабрика.csproj.FileListAbsolute.txt
  15. BIN
      СУБД Швейная фабрика/obj/Debug/СУБД Швейная фабрика.exe
  16. BIN
      СУБД Швейная фабрика/obj/Debug/СУБД_Швейная_фабрика.FormClient.resources
  17. BIN
      СУБД Швейная фабрика/obj/Debug/СУБД_Швейная_фабрика.FormEditUser.resources
  18. 12 0
      СУБД Швейная фабрика/СУБД Швейная фабрика.csproj

+ 45 - 5
СУБД Швейная фабрика/FormAuthorization.Designer.cs

@@ -39,8 +39,12 @@
             this.cbxPassword = new System.Windows.Forms.CheckBox();
             this.btnLogin = new System.Windows.Forms.Button();
             this.lblReg = new System.Windows.Forms.Label();
+            this.lblCaptcha = new System.Windows.Forms.Label();
+            this.tbxCaptcha = new System.Windows.Forms.TextBox();
+            this.pCap = new System.Windows.Forms.Panel();
             this.panel1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pbxPhoto)).BeginInit();
+            this.pCap.SuspendLayout();
             this.SuspendLayout();
             // 
             // panel1
@@ -126,7 +130,7 @@
             // 
             this.btnLogin.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
             this.btnLogin.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
-            this.btnLogin.Location = new System.Drawing.Point(103, 383);
+            this.btnLogin.Location = new System.Drawing.Point(97, 362);
             this.btnLogin.Name = "btnLogin";
             this.btnLogin.Size = new System.Drawing.Size(185, 41);
             this.btnLogin.TabIndex = 6;
@@ -139,19 +143,49 @@
             this.lblReg.AutoSize = true;
             this.lblReg.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
             this.lblReg.ForeColor = System.Drawing.Color.RoyalBlue;
-            this.lblReg.Location = new System.Drawing.Point(68, 444);
+            this.lblReg.Location = new System.Drawing.Point(66, 406);
             this.lblReg.Name = "lblReg";
             this.lblReg.Size = new System.Drawing.Size(258, 18);
             this.lblReg.TabIndex = 7;
             this.lblReg.Text = "Регистрация нового пользователя";
             this.lblReg.Click += new System.EventHandler(this.lblReg_Click);
             // 
+            // lblCaptcha
+            // 
+            this.lblCaptcha.AutoSize = true;
+            this.lblCaptcha.BackColor = System.Drawing.Color.Transparent;
+            this.lblCaptcha.Font = new System.Drawing.Font("Ink Free", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.lblCaptcha.Location = new System.Drawing.Point(38, 9);
+            this.lblCaptcha.Name = "lblCaptcha";
+            this.lblCaptcha.Size = new System.Drawing.Size(85, 34);
+            this.lblCaptcha.TabIndex = 8;
+            this.lblCaptcha.Text = "label4";
+            // 
+            // tbxCaptcha
+            // 
+            this.tbxCaptcha.Location = new System.Drawing.Point(12, 321);
+            this.tbxCaptcha.Name = "tbxCaptcha";
+            this.tbxCaptcha.Size = new System.Drawing.Size(346, 29);
+            this.tbxCaptcha.TabIndex = 9;
+            // 
+            // pCap
+            // 
+            this.pCap.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
+            this.pCap.Controls.Add(this.lblCaptcha);
+            this.pCap.Location = new System.Drawing.Point(114, 268);
+            this.pCap.Name = "pCap";
+            this.pCap.Size = new System.Drawing.Size(154, 47);
+            this.pCap.TabIndex = 10;
+            this.pCap.Paint += new System.Windows.Forms.PaintEventHandler(this.pCap_Paint);
+            // 
             // FormAuthorization
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 22F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.BackColor = System.Drawing.Color.White;
-            this.ClientSize = new System.Drawing.Size(370, 471);
+            this.ClientSize = new System.Drawing.Size(370, 436);
+            this.Controls.Add(this.pCap);
+            this.Controls.Add(this.tbxCaptcha);
             this.Controls.Add(this.lblReg);
             this.Controls.Add(this.btnLogin);
             this.Controls.Add(this.cbxPassword);
@@ -164,13 +198,16 @@
             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
             this.Margin = new System.Windows.Forms.Padding(4);
             this.MaximizeBox = false;
-            this.MaximumSize = new System.Drawing.Size(386, 510);
-            this.MinimumSize = new System.Drawing.Size(386, 510);
+            this.MaximumSize = new System.Drawing.Size(386, 475);
+            this.MinimumSize = new System.Drawing.Size(386, 475);
             this.Name = "FormAuthorization";
             this.Text = "СУБД Швейная фабрика";
+            this.Load += new System.EventHandler(this.FormAuthorization_Load);
             this.panel1.ResumeLayout(false);
             this.panel1.PerformLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pbxPhoto)).EndInit();
+            this.pCap.ResumeLayout(false);
+            this.pCap.PerformLayout();
             this.ResumeLayout(false);
             this.PerformLayout();
 
@@ -188,6 +225,9 @@
         private System.Windows.Forms.CheckBox cbxPassword;
         private System.Windows.Forms.Button btnLogin;
         private System.Windows.Forms.Label lblReg;
+        private System.Windows.Forms.Label lblCaptcha;
+        private System.Windows.Forms.TextBox tbxCaptcha;
+        private System.Windows.Forms.Panel pCap;
     }
 }
 

+ 77 - 4
СУБД Швейная фабрика/FormAuthorization.cs

@@ -17,12 +17,12 @@ namespace СУБД_Швейная_фабрика
         {
             InitializeComponent();
         }
-        public string StrCon = @"Data Source=213.155.192.79,3002;Initial Catalog=FabrikaLDA;User ID=u21liseenko;Password=bfg2";
+        public static string StrCon = @"Data Source=213.155.192.79,3002;Initial Catalog=FabrikaLDA;User ID=u21liseenko;Password=bfg2";
         private void cbxPassword_CheckedChanged(object sender, EventArgs e)
         {
             tbxPassword.UseSystemPasswordChar = !tbxPassword.UseSystemPasswordChar;
         }
-
+        public static string IdUser = "";
         private void lblReg_Click(object sender, EventArgs e)
         {
             FormRegistration frm = new FormRegistration();
@@ -31,10 +31,50 @@ namespace СУБД_Швейная_фабрика
             this.Show();
         }
 
+        void GetCaptcha()
+        {
+            string TxtLetter = "QWERTYUIOPASDFGHJKLZXCVBNM";
+            string TxtDigit = "1234567890";
+            string captcha = "";
+            string tmp = TxtDigit + TxtLetter;
+            Random rnd = new Random();
+            bool fDigit = false;
+            for (int i = 0;i <3;i++)
+            {
+                char sym = tmp[rnd.Next(tmp.Length)];
+
+                if (char.IsDigit(sym))
+                {
+                    fDigit = true;
+                }
+                
+                captcha += sym;
+            }
+
+            if (fDigit == false)
+                captcha += TxtDigit[rnd.Next(TxtDigit.Length)];
+            else
+                captcha += TxtLetter[rnd.Next(TxtLetter.Length)];
+
+
+            lblCaptcha.Text = captcha;
+
+
+        }
+
+
         private void btnLogin_Click(object sender, EventArgs e)
         {
+            
+            if (lblCaptcha.Text != tbxCaptcha.Text.ToUpper())
+            {
+                MessageBox.Show("Повторите ввод капчи!","Внимание!",MessageBoxButtons.OK, MessageBoxIcon.Error);
+                GetCaptcha();
+                return;
+            }
+
             SqlConnection con = new SqlConnection(StrCon);
-            SqlCommand cmd = new SqlCommand($"select login,Password,Role from Users where Login = '{tbxPassword.Text}' and Password = '{tbxLogin.Text}'", con);
+            SqlCommand cmd = new SqlCommand($"select IdUser,login,Password,Role from Users where Login = '{tbxLogin.Text.Trim()}' and Password = '{tbxPassword.Text.Trim()}'", con);
             con.Open();
             SqlDataReader res = cmd.ExecuteReader();
             res.Read();
@@ -44,6 +84,7 @@ namespace СУБД_Швейная_фабрика
                 {
                     FormManager frm = new FormManager();
                     this.Hide();
+                    IdUser = res["IdUser"].ToString();
                     tbxLogin.Text = "";
                     tbxPassword.Text = "";
                     frm.ShowDialog();
@@ -54,6 +95,7 @@ namespace СУБД_Швейная_фабрика
                 {
                     FormStorekeeper frm = new FormStorekeeper();
                     this.Hide();
+                    IdUser = res["IdUser"].ToString();
                     tbxLogin.Text = "";
                     tbxPassword.Text = "";
                     frm.ShowDialog();
@@ -63,20 +105,51 @@ namespace СУБД_Швейная_фабрика
                 {
                     FormClient frm = new FormClient();
                     this.Hide();
+                    IdUser = res["IdUser"].ToString();
                     tbxLogin.Text = "";
                     tbxPassword.Text = "";
                     frm.ShowDialog();
                     this.Show();
                 }
-
+              
             }
             else
             {
                 MessageBox.Show("Ошибка авторизации!","Логин или пароль неправильны",MessageBoxButtons.OK, MessageBoxIcon.Error);
+                GetCaptcha();
+                return;
             }
            
 
             con.Close();
         }
+
+        private void FormAuthorization_Load(object sender, EventArgs e)
+        {
+   
+
+            GetCaptcha();
+            //14 dawdawd
+            tbxCaptcha.Text = lblCaptcha.Text;
+            //
+        }
+
+
+        private void pCap_Paint(object sender, PaintEventArgs e)
+        {
+            Color[] colors = { Color.Green, Color.Black, Color.Yellow, Color.White };
+            Random rnd = new Random();
+
+            for (int i = 0; i < rnd.Next(5, 10); i++)
+            {
+                int x1 = rnd.Next(pCap.Width);
+                int x2 = rnd.Next(pCap.Width);
+                int y1 = rnd.Next(pCap.Height);
+                int y2 = rnd.Next(pCap.Height);
+
+                Color color = colors[rnd.Next(colors.Length)];
+                e.Graphics.DrawLine(new Pen(color), x1, y1, x2, y2);
+            }
+        }
     }
 }

+ 78 - 3
СУБД Швейная фабрика/FormClient.Designer.cs

@@ -28,12 +28,87 @@
         /// </summary>
         private void InitializeComponent()
         {
-            this.components = new System.ComponentModel.Container();
+            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormClient));
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.lblFIO = new System.Windows.Forms.Label();
+            this.pbxPhoto = new System.Windows.Forms.PictureBox();
+            this.btnEdit = new System.Windows.Forms.Button();
+            this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pbxPhoto)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // panel1
+            // 
+            this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
+            this.panel1.Controls.Add(this.btnEdit);
+            this.panel1.Controls.Add(this.lblFIO);
+            this.panel1.Controls.Add(this.pbxPhoto);
+            this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
+            this.panel1.Location = new System.Drawing.Point(0, 0);
+            this.panel1.Margin = new System.Windows.Forms.Padding(7, 4, 7, 4);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(895, 92);
+            this.panel1.TabIndex = 1;
+            // 
+            // lblFIO
+            // 
+            this.lblFIO.AutoSize = true;
+            this.lblFIO.Font = new System.Drawing.Font("Arial", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.lblFIO.Location = new System.Drawing.Point(200, 29);
+            this.lblFIO.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0);
+            this.lblFIO.Name = "lblFIO";
+            this.lblFIO.Size = new System.Drawing.Size(391, 37);
+            this.lblFIO.TabIndex = 1;
+            this.lblFIO.Text = "Фамилия Имя Отчество";
+            // 
+            // pbxPhoto
+            // 
+            this.pbxPhoto.Dock = System.Windows.Forms.DockStyle.Right;
+            this.pbxPhoto.Image = global::СУБД_Швейная_фабрика.Properties.Resources.fabric_logo;
+            this.pbxPhoto.Location = new System.Drawing.Point(803, 0);
+            this.pbxPhoto.Margin = new System.Windows.Forms.Padding(7, 4, 7, 4);
+            this.pbxPhoto.Name = "pbxPhoto";
+            this.pbxPhoto.Size = new System.Drawing.Size(92, 92);
+            this.pbxPhoto.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pbxPhoto.TabIndex = 0;
+            this.pbxPhoto.TabStop = false;
+            // 
+            // btnEdit
+            // 
+            this.btnEdit.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.btnEdit.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+            this.btnEdit.Location = new System.Drawing.Point(694, 59);
+            this.btnEdit.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
+            this.btnEdit.Name = "btnEdit";
+            this.btnEdit.Size = new System.Drawing.Size(96, 28);
+            this.btnEdit.TabIndex = 8;
+            this.btnEdit.Text = "Редактировать";
+            this.btnEdit.UseVisualStyleBackColor = false;
+            this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
+            // 
+            // FormClient
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(800, 450);
-            this.Text = "FormClient";
+            this.BackColor = System.Drawing.Color.White;
+            this.ClientSize = new System.Drawing.Size(895, 475);
+            this.Controls.Add(this.panel1);
+            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+            this.Name = "FormClient";
+            this.Text = "СУБД Швейная фабрика";
+            this.Load += new System.EventHandler(this.FormClient_Load);
+            this.panel1.ResumeLayout(false);
+            this.panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pbxPhoto)).EndInit();
+            this.ResumeLayout(false);
+
         }
 
         #endregion
+
+        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.Label lblFIO;
+        private System.Windows.Forms.PictureBox pbxPhoto;
+        private System.Windows.Forms.Button btnEdit;
     }
 }

+ 22 - 0
СУБД Швейная фабрика/FormClient.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,26 @@ namespace СУБД_Швейная_фабрика
         {
             InitializeComponent();
         }
+
+        private void FormClient_Load(object sender, EventArgs e)
+        {
+            SqlConnection con = new SqlConnection(FormAuthorization.StrCon);
+
+            con.Open();
+            SqlCommand cmd = new SqlCommand($@"select Fam,Name,Otch from Users where IdUser = {FormAuthorization.IdUser}", con);
+            SqlDataReader res = cmd.ExecuteReader();
+            res.Read();
+            lblFIO.Text = $"{res["Fam"]} {res["Name"]} {res["Otch"]}";
+            res.Close();
+            con.Close();
+        }
+
+        private void btnEdit_Click(object sender, EventArgs e)
+        {
+            FormEditUser frm = new FormEditUser();
+            this.Hide();
+            frm.ShowDialog();
+            this.Show();
+        }
     }
 }

+ 197 - 0
СУБД Швейная фабрика/FormClient.resx

@@ -0,0 +1,197 @@
+<?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>
+  <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>
+        AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAMMOAADDDgAAAAAAAAAA
+        AAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AAAAAAB6ZasA////////////////////////////////////////////////////////
+        /////////////f////r////4////+P////b////2////9v////j////6/////f//////////////////
+        ///////////////////t+P4xAAAAAH1ts//p////uMj//6q2/f+cqfH/kZvm/4eN3P99hNL/dXrK/3By
+        wv9qbL3/Zma5/2Rjtf9iYbH/YF2t/15dq/9eW6f/XFml/1xXof9aVZ3/WlOa/1hRlv9WTZL/VEmM/1JF
+        hv9QP4D/Tjx4/z8nZ/9MM2j/6vP+//////8hAAD//B8A//9RAP//MAD//gYA/+wAAP//CAD/6wAA/8kA
+        AP/qAAD/4gAA/9wAAP/YAAD/1gAA/9QAAP/SAAD/0gAA/9AAAP/QAAD/zgAA/8wAAP/MAAD/ygAA/8gA
+        AP/EAAD/wgAA/8AAAP+9AAD/3gAA/zsAAP9UNmb//////y4AAP/9QgD//2QA//8uAP//bgD//3IA/84A
+        AP//KQD//2AA/80AAP/QAAD/zwAA/8sAAP/JAAD/xwAA/8UAAP/FAAD/wwAA/8MAAP/BAAD/wQAA/78A
+        AP+9AAD/uQAA/7cAAP+0AAD/sAAA/64AAP/KAAD/NgAA/1IzWP//////MgAD//LCW////3P/9MNY////
+        U////0n/wo45//7ANP//+jD/w4gi/8aLH//Fhhn/wYIV/79+Ef+9fA3/vXoJ/7t6Bv+7eAL/uXYA/7d0
+        AP+3cAD/tWwA/7NoAP+wZAD/rF8A/6hXAP+kTwD/oEcA/6hdAP8uAAD/XTpW//////9rDxv///+I////
+        qP///4X///97////cf///2r///9g////WP///1P///9N////R////0P///8/////PP///zj///80////
+        MP///yr///8m////IP///xr///8V////Df///wX///8A////AP///wD///8A//+IAP9nRXP/////QgAA
+        AErQjzT///+U////ff///23///9p////U////wX///9B////Sv///z7///84////Nf///zH///8r////
+        J////yP///80////AP///AD///8A///8AP//9wD///EA///mAP//9gD//70A//+kAP///wD/AAAA/0g6
+        agD///8AAAAAAAAAAAA9AADiPQAA8igAAOMTAADOJwAAqI1qbf8AAAC7AAAAsAAAAKkAAAChAAAAmwAA
+        AJUAAACNAAAAhwAAAH8AAACeEQAd/z0AgP8tAHL/LABq/ygAZP8kAFz/IwBa/wAAGf89AAD/TxoA/wAA
+        AKgAAAAASjxqAP///wAAAAAAAAAAAEMAAABAAAAALAAAABkAAAAAAAAA////AAAAAAAAAAAAAwAAAAAA
+        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAP//h1f//18n//9bI///Vx3//1MV//9cH///AAD//4J5
+        pf////9OAAAAAAAAAABMPmoA////AAAAAAAAAAAARwAAAEQAAAAyAAAAfo+lAEIbPfT////c////AP//
+        /wAJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACcA1P+QX///bTX//2kv//9lKf//YCH//2Ym
+        //8HAP//b1Fg/////4f///8AAAAAAE5AaAD///8AAAAAAAAAAABLAAAAVwAAAE0AAACBlKMAVjJH////
+        ////////////AP///wD///8AAwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAKgDG/55u//+JVv//gkz//35E
+        //97Q///eDz//wgA//92W2P/////h////wD///8A////AP///wB6AAAAcAAAAGcAAABbAAAAUQAAAFNr
+        hf9RJBb/UjhZ//////////9t////AP///wD///8ABQAAAAAAAAAAAAAAAAAAAAAAAAA6AOz/gk7//y4A
+        zv82AOb/MgDe/yQAvP9BAP//EwD//3hdY/////99////AP///wD///8A////AAkJFQAAAAwAAAACAAAA
+        AAAXAAD//+4A////AP+jLQD/p6dt//////////8A////AP///wD///8AAAAAAAAAAAAAAAAAAAAAAEcE
+        /f91Pv//AwA3/xEAYf8LAF7/AAAt/yMAtv8YAP//g2ln/////4L///8A////AP///wD///8ACwsRAAEB
+        CgAAAAAAAAAAXVwSjP+8grT/rHOk/4xDhf8OADz//////////9f///8A////AP///wD///8AAAAAAAAA
+        AAAAAAAAQADf/45V//9AAOX/RQD3/z8A9P8wANT/SwL//x0A//9XPVv///////////////8A////AP3/
+        /wBdB00AVQBEAEsAOgBBADD/38H//66G//+edP//sYv//0cA//+UgIz/////d////wD///8A////AP//
+        /wD///8AAAAAAAAAAABQEfP/hE7//x4Aev8pAJf/IwCU/xIAaf82AOD/NwD//xYAAP+BSgD/////////
+        /wD///8A////AFAVVABIC0sAPgFBADYAN//Pqf//0Kj//8ie///Dmv//TgL//8TCvP/////d////AP//
+        /wD///8A////AP///wD///8AAAAAABcAhP+jbv//Zyf//14Z//9ZD///Uwb//2gi//8IAP//4XMA/8ZF
+        AP+Jiqj/////AP///wD///8ATw9JAEcHQAA/ADYANQAs/+fE//+KWf//UACq/4lX//+BO///inZi////
+        /////////////f////v////0////7v///+f//5f4GACx/4tQ//84AKj/OgCu/zcArP8kAIH/SAD//xIA
+        ///NZQD/7H4A/5ORpP////8A////AP///wBlJoEAXh54AFYUbgBOCmT/iFz//9yZAP///wD/rmcN/4dU
+        //9zNv//Z0Vr/2xl3/9iVtv/YEC3/1sznP9XKYb/Zzxs/1Qehv+NTf//NAC0////GP///8T///+e////
+        f/9gJDD/AAD//85mAP/ldgD/lpWo/////wD///8A////AGowkwBiKYsAWx+CAFMXeP9pN////8wA////
+        Af/VigD/XC3//8Ca//+LQ///tDna/7VC4P+0ZP//tnv//7eM//+HTf//gj3//6pv//8lAHD///+L////
+        /////////////4FRRf8AAP//zmQA/+V0AP+Ukaj/////Cv///wD///8AWBtUAFITSwBKC0MAQgE5/+XC
+        //+IU///i0QP/39F///HoP//nX7//9iN////sAD//8oA////FP///9T///////////9pH///nWb//18c
+        //9fKS7/ek5t/3JAYv9fJSv/PQCm/wQA///JYgD/94gA/6Gkt/////8A////AP///wBRDkoASwZDAEUA
+        OwA9ADH/vYj//7SA//99RP//p27//5Vc//+MUf//iEz//4JI//9+Qv//fT7//3k4//91Mf//cSv//20p
+        //9nIP//cCr//zsA//8hAP//HQD//xIA//9DAP//AAD//8dSAP+OAAD/QC9W1////wD///8A////AFoZ
+        KABVEyAATwsYAEcDEf/Pr///waH9/7iW+P+yjur/qYXh/6eD2v+getr/k3Tr/49t5/+LYdn/h1rK/4NS
+        vf+BVbf/hViv/31Nqf96RqT/cjyi/2ozmP9iJ4//WRyF/1gXe/8RADf/IgAA/zQAAP8/K1YA////AP//
+        /wD///8AsXh9AKtydgClam4An2Vm////////////////////////////////////////////////////
+        //////////////////////////////////////////////////////////////////+TiZL/////Gv//
+        /wD///8A////AP///wAkCQAAHgMAABkAAAATAAD/////////////////////////////////////////
+        //////////////////////////////////////////////////////////////3u/P//////kGF7/wsA
+        AHT///8A////AP///wD///8A////ACgLAAAiBwAAHAEAABkAAAAzAABoIgAAx/bijv///9j/iGxF/2Q2
+        HWsAAABVEAAATgwAAEYIAABABAAAPAAAADgAAAA2AAAANAAAADQAAABRahYA//TgAP9cBwD/oKCb/wAA
+        AIUAAAAVCwAAAP///wD///8A////AP///wD///8ALA8EACYLAAAiBQAAHAEAADkAAAAnAAAAPy0N5aVz
+        S/9BBQAAaT0pAAAAAAAYAAAAFAAAABAAAAAMAAAABgAAAAAAAAAAAAAAAAAAAAAAAADmjQD///8s/9F7
+        AP//////AAAAAAAAAAALAAAA////AP///wD///8A////AP///wAwEwwALA8GACYLAAAiBQAAPQAAAC0A
+        AABHMhYAq3tWAEkNBwBxRzUABgAAACAAAAAcAAAAGAAAABQAAAAOAAAABgAAAAAAAAAAAAAAAAAAAN6K
+        AP///zT/x3IA/+X///////8A////AP///wD///8A////AP///wD///8A////ADQXEgAwEw4ALA8IACYL
+        BABDAAAAMwAAAE06IgCzg2AAURUSAHlPQQAOAAAAJwAAACQAAAAgAAAAGgAAABQAAAAOAAAAAAAAAAAA
+        AAAAAAAA04EA////Kv+6ZwD//////////wD///8A////AP///wD///8A////AP///wD///8AOBsYADQX
+        FAAwExAALBEMAEkAAAA5AAAAU0IsALmLbABXHR4Af1lMABYAAAAvAAAAKwAAACcAAAAiAAAAHAAAAAAA
+        AAAAAAAAAAAAAAAAAAACAAD/FwAA/y0AAP////8A////AP///wD///8A////AP///wD///8A////AP//
+        /wA6HR4AOBsaADQZGAAwFRQATQAAAD0AAABYSDUAv5N1AFwlKACHYVgAHAAAADcAAAAzAAAALQAAACkA
+        AAAiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/AAAAAAAAAAD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A/////8AAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPAAAAH///AD/z/
+        wA/8f8AP+D/AD/A/wA/gH8AH4B/AB+AfwAfgAAAH4AAAB+AAAAPgAAAH4AAAB+AAAA/gAAAP4AAAH/AA
+        AD/8//D////w////8P////H////7//////8=
+</value>
+  </data>
+</root>

+ 306 - 0
СУБД Швейная фабрика/FormEditUser.Designer.cs

@@ -0,0 +1,306 @@
+namespace СУБД_Швейная_фабрика
+{
+    partial class FormEditUser
+    {
+        /// <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(FormEditUser));
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.label1 = new System.Windows.Forms.Label();
+            this.tbxPhone = new System.Windows.Forms.MaskedTextBox();
+            this.label8 = new System.Windows.Forms.Label();
+            this.tbxOtch = new System.Windows.Forms.TextBox();
+            this.label7 = new System.Windows.Forms.Label();
+            this.tbxName = new System.Windows.Forms.TextBox();
+            this.label6 = new System.Windows.Forms.Label();
+            this.tbxFam = new System.Windows.Forms.TextBox();
+            this.label5 = new System.Windows.Forms.Label();
+            this.cbxPassword = new System.Windows.Forms.CheckBox();
+            this.tbxPasRepeat = new System.Windows.Forms.TextBox();
+            this.label4 = new System.Windows.Forms.Label();
+            this.tbxPas = new System.Windows.Forms.TextBox();
+            this.label3 = new System.Windows.Forms.Label();
+            this.tbxOldPas = new System.Windows.Forms.TextBox();
+            this.lblOldPas = new System.Windows.Forms.Label();
+            this.btnSaveEdit = new System.Windows.Forms.Button();
+            this.pbxPhoto = new System.Windows.Forms.PictureBox();
+            this.btnBack = new System.Windows.Forms.Button();
+            this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pbxPhoto)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // panel1
+            // 
+            this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
+            this.panel1.Controls.Add(this.label1);
+            this.panel1.Controls.Add(this.pbxPhoto);
+            this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
+            this.panel1.Location = new System.Drawing.Point(0, 0);
+            this.panel1.Margin = new System.Windows.Forms.Padding(13, 7, 13, 7);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(608, 97);
+            this.panel1.TabIndex = 1;
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Font = new System.Drawing.Font("Arial", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.label1.Location = new System.Drawing.Point(8, 28);
+            this.label1.Margin = new System.Windows.Forms.Padding(13, 0, 13, 0);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(428, 37);
+            this.label1.TabIndex = 1;
+            this.label1.Text = "Редактирование профиля";
+            // 
+            // tbxPhone
+            // 
+            this.tbxPhone.Location = new System.Drawing.Point(37, 494);
+            this.tbxPhone.Mask = "+0(000) 000-00-00";
+            this.tbxPhone.Name = "tbxPhone";
+            this.tbxPhone.Size = new System.Drawing.Size(518, 29);
+            this.tbxPhone.TabIndex = 38;
+            this.tbxPhone.ValidatingType = typeof(int);
+            // 
+            // label8
+            // 
+            this.label8.AutoSize = true;
+            this.label8.Location = new System.Drawing.Point(180, 469);
+            this.label8.Name = "label8";
+            this.label8.Size = new System.Drawing.Size(236, 22);
+            this.label8.TabIndex = 37;
+            this.label8.Text = "Введите номер телефона";
+            // 
+            // tbxOtch
+            // 
+            this.tbxOtch.Location = new System.Drawing.Point(37, 437);
+            this.tbxOtch.Name = "tbxOtch";
+            this.tbxOtch.Size = new System.Drawing.Size(518, 29);
+            this.tbxOtch.TabIndex = 36;
+            // 
+            // label7
+            // 
+            this.label7.AutoSize = true;
+            this.label7.Location = new System.Drawing.Point(217, 412);
+            this.label7.Name = "label7";
+            this.label7.Size = new System.Drawing.Size(168, 22);
+            this.label7.TabIndex = 35;
+            this.label7.Text = "Введите отчество";
+            // 
+            // tbxName
+            // 
+            this.tbxName.Location = new System.Drawing.Point(37, 380);
+            this.tbxName.Name = "tbxName";
+            this.tbxName.Size = new System.Drawing.Size(518, 29);
+            this.tbxName.TabIndex = 34;
+            // 
+            // label6
+            // 
+            this.label6.AutoSize = true;
+            this.label6.Location = new System.Drawing.Point(232, 355);
+            this.label6.Name = "label6";
+            this.label6.Size = new System.Drawing.Size(122, 22);
+            this.label6.TabIndex = 33;
+            this.label6.Text = "Введите имя";
+            // 
+            // tbxFam
+            // 
+            this.tbxFam.Location = new System.Drawing.Point(37, 323);
+            this.tbxFam.Name = "tbxFam";
+            this.tbxFam.Size = new System.Drawing.Size(518, 29);
+            this.tbxFam.TabIndex = 32;
+            // 
+            // label5
+            // 
+            this.label5.AutoSize = true;
+            this.label5.Location = new System.Drawing.Point(217, 298);
+            this.label5.Name = "label5";
+            this.label5.Size = new System.Drawing.Size(172, 22);
+            this.label5.TabIndex = 31;
+            this.label5.Text = "Введите фамилию";
+            // 
+            // cbxPassword
+            // 
+            this.cbxPassword.AutoSize = true;
+            this.cbxPassword.Location = new System.Drawing.Point(37, 279);
+            this.cbxPassword.Name = "cbxPassword";
+            this.cbxPassword.Size = new System.Drawing.Size(176, 26);
+            this.cbxPassword.TabIndex = 30;
+            this.cbxPassword.Text = "Показать пароль";
+            this.cbxPassword.UseVisualStyleBackColor = true;
+            this.cbxPassword.CheckedChanged += new System.EventHandler(this.cbxPassword_CheckedChanged);
+            // 
+            // tbxPasRepeat
+            // 
+            this.tbxPasRepeat.Location = new System.Drawing.Point(37, 244);
+            this.tbxPasRepeat.Name = "tbxPasRepeat";
+            this.tbxPasRepeat.Size = new System.Drawing.Size(518, 29);
+            this.tbxPasRepeat.TabIndex = 29;
+            this.tbxPasRepeat.UseSystemPasswordChar = true;
+            // 
+            // label4
+            // 
+            this.label4.AutoSize = true;
+            this.label4.Location = new System.Drawing.Point(217, 219);
+            this.label4.Name = "label4";
+            this.label4.Size = new System.Drawing.Size(170, 22);
+            this.label4.TabIndex = 28;
+            this.label4.Text = "Повторите пароль";
+            // 
+            // tbxPas
+            // 
+            this.tbxPas.Location = new System.Drawing.Point(37, 187);
+            this.tbxPas.Name = "tbxPas";
+            this.tbxPas.Size = new System.Drawing.Size(518, 29);
+            this.tbxPas.TabIndex = 27;
+            this.tbxPas.UseSystemPasswordChar = true;
+            // 
+            // label3
+            // 
+            this.label3.AutoSize = true;
+            this.label3.Location = new System.Drawing.Point(217, 162);
+            this.label3.Name = "label3";
+            this.label3.Size = new System.Drawing.Size(151, 22);
+            this.label3.TabIndex = 26;
+            this.label3.Text = "Введите пароль";
+            // 
+            // tbxOldPas
+            // 
+            this.tbxOldPas.Location = new System.Drawing.Point(37, 129);
+            this.tbxOldPas.Name = "tbxOldPas";
+            this.tbxOldPas.Size = new System.Drawing.Size(518, 29);
+            this.tbxOldPas.TabIndex = 40;
+            this.tbxOldPas.UseSystemPasswordChar = true;
+            // 
+            // lblOldPas
+            // 
+            this.lblOldPas.AutoSize = true;
+            this.lblOldPas.Location = new System.Drawing.Point(199, 104);
+            this.lblOldPas.Name = "lblOldPas";
+            this.lblOldPas.Size = new System.Drawing.Size(219, 22);
+            this.lblOldPas.TabIndex = 39;
+            this.lblOldPas.Text = "Введите старый пароль";
+            // 
+            // btnSaveEdit
+            // 
+            this.btnSaveEdit.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.btnSaveEdit.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+            this.btnSaveEdit.Location = new System.Drawing.Point(315, 537);
+            this.btnSaveEdit.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
+            this.btnSaveEdit.Name = "btnSaveEdit";
+            this.btnSaveEdit.Size = new System.Drawing.Size(240, 39);
+            this.btnSaveEdit.TabIndex = 41;
+            this.btnSaveEdit.Text = "Сохранить";
+            this.btnSaveEdit.UseVisualStyleBackColor = false;
+            this.btnSaveEdit.Click += new System.EventHandler(this.btnSaveEdit_Click);
+            // 
+            // pbxPhoto
+            // 
+            this.pbxPhoto.Dock = System.Windows.Forms.DockStyle.Right;
+            this.pbxPhoto.Image = global::СУБД_Швейная_фабрика.Properties.Resources.fabric_logo;
+            this.pbxPhoto.Location = new System.Drawing.Point(439, 0);
+            this.pbxPhoto.Margin = new System.Windows.Forms.Padding(13, 7, 13, 7);
+            this.pbxPhoto.Name = "pbxPhoto";
+            this.pbxPhoto.Size = new System.Drawing.Size(169, 97);
+            this.pbxPhoto.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pbxPhoto.TabIndex = 0;
+            this.pbxPhoto.TabStop = false;
+            // 
+            // btnBack
+            // 
+            this.btnBack.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.btnBack.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+            this.btnBack.Location = new System.Drawing.Point(37, 537);
+            this.btnBack.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
+            this.btnBack.Name = "btnBack";
+            this.btnBack.Size = new System.Drawing.Size(240, 39);
+            this.btnBack.TabIndex = 42;
+            this.btnBack.Text = "Назад";
+            this.btnBack.UseVisualStyleBackColor = false;
+            this.btnBack.Click += new System.EventHandler(this.btnBack_Click);
+            // 
+            // FormEditUser
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 22F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.BackColor = System.Drawing.Color.White;
+            this.ClientSize = new System.Drawing.Size(608, 590);
+            this.Controls.Add(this.btnBack);
+            this.Controls.Add(this.btnSaveEdit);
+            this.Controls.Add(this.tbxOldPas);
+            this.Controls.Add(this.lblOldPas);
+            this.Controls.Add(this.tbxPhone);
+            this.Controls.Add(this.label8);
+            this.Controls.Add(this.tbxOtch);
+            this.Controls.Add(this.label7);
+            this.Controls.Add(this.tbxName);
+            this.Controls.Add(this.label6);
+            this.Controls.Add(this.tbxFam);
+            this.Controls.Add(this.label5);
+            this.Controls.Add(this.cbxPassword);
+            this.Controls.Add(this.tbxPasRepeat);
+            this.Controls.Add(this.label4);
+            this.Controls.Add(this.tbxPas);
+            this.Controls.Add(this.label3);
+            this.Controls.Add(this.panel1);
+            this.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+            this.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
+            this.Name = "FormEditUser";
+            this.Text = "СУБД Швейная фабрика";
+            this.Load += new System.EventHandler(this.FormEditUser_Load);
+            this.panel1.ResumeLayout(false);
+            this.panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pbxPhoto)).EndInit();
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.PictureBox pbxPhoto;
+        private System.Windows.Forms.MaskedTextBox tbxPhone;
+        private System.Windows.Forms.Label label8;
+        private System.Windows.Forms.TextBox tbxOtch;
+        private System.Windows.Forms.Label label7;
+        private System.Windows.Forms.TextBox tbxName;
+        private System.Windows.Forms.Label label6;
+        private System.Windows.Forms.TextBox tbxFam;
+        private System.Windows.Forms.Label label5;
+        private System.Windows.Forms.CheckBox cbxPassword;
+        private System.Windows.Forms.TextBox tbxPasRepeat;
+        private System.Windows.Forms.Label label4;
+        private System.Windows.Forms.TextBox tbxPas;
+        private System.Windows.Forms.Label label3;
+        private System.Windows.Forms.TextBox tbxOldPas;
+        private System.Windows.Forms.Label lblOldPas;
+        private System.Windows.Forms.Button btnSaveEdit;
+        private System.Windows.Forms.Button btnBack;
+    }
+}

+ 103 - 0
СУБД Швейная фабрика/FormEditUser.cs

@@ -0,0 +1,103 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Data.SqlClient;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using PasswordCheckDll;
+
+namespace СУБД_Швейная_фабрика
+{
+    public partial class FormEditUser : Form
+    {
+        public FormEditUser()
+        {
+            InitializeComponent();
+        }
+
+        private void cbxPassword_CheckedChanged(object sender, EventArgs e)
+        {
+            tbxPas.UseSystemPasswordChar = !tbxPas.UseSystemPasswordChar;
+            tbxPasRepeat.UseSystemPasswordChar = !tbxPasRepeat.UseSystemPasswordChar;
+            tbxOldPas.UseSystemPasswordChar = !tbxOldPas.UseSystemPasswordChar;
+        }
+
+        private void FormEditUser_Load(object sender, EventArgs e)
+        {
+            SqlConnection con = new SqlConnection(FormAuthorization.StrCon);
+            con.Open();
+
+            SqlCommand cmd = new SqlCommand($@"select Fam,Name,Otch,Phone from Users where IdUser = {FormAuthorization.IdUser}",con);
+
+            SqlDataReader res = cmd.ExecuteReader();
+            res.Read();
+
+            tbxFam.Text = res["Fam"].ToString();
+            tbxName.Text = res["Name"].ToString();
+            tbxOtch.Text = res["Otch"].ToString();
+            tbxPhone.Text = res["Phone"].ToString();
+
+            res.Close();
+
+            con.Close();
+        }
+
+        private void btnSaveEdit_Click(object sender, EventArgs e)
+        {
+            if (tbxFam.Text == "" || tbxName.Text == "" || tbxOtch.Text == "" || tbxPhone.Text == "" || tbxPas.Text.Trim() == "")
+            {
+                MessageBox.Show("Поля не могут быть пустыми", "Внимание!", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                return;
+            }
+
+            SqlConnection con = new SqlConnection(FormAuthorization.StrCon);
+            con.Open();
+
+            SqlCommand cmd = new SqlCommand($@"select Fam,Name,Otch,Phone,Password from Users where IdUser = {FormAuthorization.IdUser}", con);
+
+            SqlDataReader res = cmd.ExecuteReader();
+            res.Read();
+            if (res["Password"].ToString() != tbxOldPas.Text)
+            {
+                MessageBox.Show("Неправильно введён старый пароль", "Внимание!", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                return;
+            }
+            if (!PasswordCheckClass.PasswordCheck(tbxPas.Text))
+            {
+                MessageBox.Show(@"Пароли не соответствует требования: •  длина пароля – минимум 6 символов;
+•  обязательно и строчные и прописные символы;
+•  цифр должно быть не более половины от всех символов пароля;
+•  должен содержать минимум 1 символ из набора: ! @ # $ % ^.", "Внимание!", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                return;
+            }
+
+            if (tbxPas.Text != tbxPasRepeat.Text)
+            {
+                MessageBox.Show("Новый пароль не совпадает", "Внимание!", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                return;
+            }
+
+            res.Close();
+
+            
+
+            SqlCommand cmdUpdate = new SqlCommand($@"update Users
+set Fam = '{tbxFam.Text}', Name = '{tbxName.Text}',Otch = '{tbxOtch.Text}',Password = '{tbxPas.Text}',Phone = '{tbxPhone.Text}'
+where IdUser = {FormAuthorization.IdUser}", con);
+            cmdUpdate.ExecuteNonQuery();
+            con.Close();
+
+            MessageBox.Show("Сохранение прошло успешно", "Внимание!", MessageBoxButtons.OK, MessageBoxIcon.Information);
+            this.Close();
+        }
+
+        private void btnBack_Click(object sender, EventArgs e)
+        {
+            this.Close();
+        }
+    }
+}

+ 197 - 0
СУБД Швейная фабрика/FormEditUser.resx

@@ -0,0 +1,197 @@
+<?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>
+  <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>
+        AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAMMOAADDDgAAAAAAAAAA
+        AAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AAAAAAB6ZasA////////////////////////////////////////////////////////
+        /////////////f////r////4////+P////b////2////9v////j////6/////f//////////////////
+        ///////////////////t+P4xAAAAAH1ts//p////uMj//6q2/f+cqfH/kZvm/4eN3P99hNL/dXrK/3By
+        wv9qbL3/Zma5/2Rjtf9iYbH/YF2t/15dq/9eW6f/XFml/1xXof9aVZ3/WlOa/1hRlv9WTZL/VEmM/1JF
+        hv9QP4D/Tjx4/z8nZ/9MM2j/6vP+//////8hAAD//B8A//9RAP//MAD//gYA/+wAAP//CAD/6wAA/8kA
+        AP/qAAD/4gAA/9wAAP/YAAD/1gAA/9QAAP/SAAD/0gAA/9AAAP/QAAD/zgAA/8wAAP/MAAD/ygAA/8gA
+        AP/EAAD/wgAA/8AAAP+9AAD/3gAA/zsAAP9UNmb//////y4AAP/9QgD//2QA//8uAP//bgD//3IA/84A
+        AP//KQD//2AA/80AAP/QAAD/zwAA/8sAAP/JAAD/xwAA/8UAAP/FAAD/wwAA/8MAAP/BAAD/wQAA/78A
+        AP+9AAD/uQAA/7cAAP+0AAD/sAAA/64AAP/KAAD/NgAA/1IzWP//////MgAD//LCW////3P/9MNY////
+        U////0n/wo45//7ANP//+jD/w4gi/8aLH//Fhhn/wYIV/79+Ef+9fA3/vXoJ/7t6Bv+7eAL/uXYA/7d0
+        AP+3cAD/tWwA/7NoAP+wZAD/rF8A/6hXAP+kTwD/oEcA/6hdAP8uAAD/XTpW//////9rDxv///+I////
+        qP///4X///97////cf///2r///9g////WP///1P///9N////R////0P///8/////PP///zj///80////
+        MP///yr///8m////IP///xr///8V////Df///wX///8A////AP///wD///8A//+IAP9nRXP/////QgAA
+        AErQjzT///+U////ff///23///9p////U////wX///9B////Sv///z7///84////Nf///zH///8r////
+        J////yP///80////AP///AD///8A///8AP//9wD///EA///mAP//9gD//70A//+kAP///wD/AAAA/0g6
+        agD///8AAAAAAAAAAAA9AADiPQAA8igAAOMTAADOJwAAqI1qbf8AAAC7AAAAsAAAAKkAAAChAAAAmwAA
+        AJUAAACNAAAAhwAAAH8AAACeEQAd/z0AgP8tAHL/LABq/ygAZP8kAFz/IwBa/wAAGf89AAD/TxoA/wAA
+        AKgAAAAASjxqAP///wAAAAAAAAAAAEMAAABAAAAALAAAABkAAAAAAAAA////AAAAAAAAAAAAAwAAAAAA
+        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAP//h1f//18n//9bI///Vx3//1MV//9cH///AAD//4J5
+        pf////9OAAAAAAAAAABMPmoA////AAAAAAAAAAAARwAAAEQAAAAyAAAAfo+lAEIbPfT////c////AP//
+        /wAJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACcA1P+QX///bTX//2kv//9lKf//YCH//2Ym
+        //8HAP//b1Fg/////4f///8AAAAAAE5AaAD///8AAAAAAAAAAABLAAAAVwAAAE0AAACBlKMAVjJH////
+        ////////////AP///wD///8AAwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAKgDG/55u//+JVv//gkz//35E
+        //97Q///eDz//wgA//92W2P/////h////wD///8A////AP///wB6AAAAcAAAAGcAAABbAAAAUQAAAFNr
+        hf9RJBb/UjhZ//////////9t////AP///wD///8ABQAAAAAAAAAAAAAAAAAAAAAAAAA6AOz/gk7//y4A
+        zv82AOb/MgDe/yQAvP9BAP//EwD//3hdY/////99////AP///wD///8A////AAkJFQAAAAwAAAACAAAA
+        AAAXAAD//+4A////AP+jLQD/p6dt//////////8A////AP///wD///8AAAAAAAAAAAAAAAAAAAAAAEcE
+        /f91Pv//AwA3/xEAYf8LAF7/AAAt/yMAtv8YAP//g2ln/////4L///8A////AP///wD///8ACwsRAAEB
+        CgAAAAAAAAAAXVwSjP+8grT/rHOk/4xDhf8OADz//////////9f///8A////AP///wD///8AAAAAAAAA
+        AAAAAAAAQADf/45V//9AAOX/RQD3/z8A9P8wANT/SwL//x0A//9XPVv///////////////8A////AP3/
+        /wBdB00AVQBEAEsAOgBBADD/38H//66G//+edP//sYv//0cA//+UgIz/////d////wD///8A////AP//
+        /wD///8AAAAAAAAAAABQEfP/hE7//x4Aev8pAJf/IwCU/xIAaf82AOD/NwD//xYAAP+BSgD/////////
+        /wD///8A////AFAVVABIC0sAPgFBADYAN//Pqf//0Kj//8ie///Dmv//TgL//8TCvP/////d////AP//
+        /wD///8A////AP///wD///8AAAAAABcAhP+jbv//Zyf//14Z//9ZD///Uwb//2gi//8IAP//4XMA/8ZF
+        AP+Jiqj/////AP///wD///8ATw9JAEcHQAA/ADYANQAs/+fE//+KWf//UACq/4lX//+BO///inZi////
+        /////////////f////v////0////7v///+f//5f4GACx/4tQ//84AKj/OgCu/zcArP8kAIH/SAD//xIA
+        ///NZQD/7H4A/5ORpP////8A////AP///wBlJoEAXh54AFYUbgBOCmT/iFz//9yZAP///wD/rmcN/4dU
+        //9zNv//Z0Vr/2xl3/9iVtv/YEC3/1sznP9XKYb/Zzxs/1Qehv+NTf//NAC0////GP///8T///+e////
+        f/9gJDD/AAD//85mAP/ldgD/lpWo/////wD///8A////AGowkwBiKYsAWx+CAFMXeP9pN////8wA////
+        Af/VigD/XC3//8Ca//+LQ///tDna/7VC4P+0ZP//tnv//7eM//+HTf//gj3//6pv//8lAHD///+L////
+        /////////////4FRRf8AAP//zmQA/+V0AP+Ukaj/////Cv///wD///8AWBtUAFITSwBKC0MAQgE5/+XC
+        //+IU///i0QP/39F///HoP//nX7//9iN////sAD//8oA////FP///9T///////////9pH///nWb//18c
+        //9fKS7/ek5t/3JAYv9fJSv/PQCm/wQA///JYgD/94gA/6Gkt/////8A////AP///wBRDkoASwZDAEUA
+        OwA9ADH/vYj//7SA//99RP//p27//5Vc//+MUf//iEz//4JI//9+Qv//fT7//3k4//91Mf//cSv//20p
+        //9nIP//cCr//zsA//8hAP//HQD//xIA//9DAP//AAD//8dSAP+OAAD/QC9W1////wD///8A////AFoZ
+        KABVEyAATwsYAEcDEf/Pr///waH9/7iW+P+yjur/qYXh/6eD2v+getr/k3Tr/49t5/+LYdn/h1rK/4NS
+        vf+BVbf/hViv/31Nqf96RqT/cjyi/2ozmP9iJ4//WRyF/1gXe/8RADf/IgAA/zQAAP8/K1YA////AP//
+        /wD///8AsXh9AKtydgClam4An2Vm////////////////////////////////////////////////////
+        //////////////////////////////////////////////////////////////////+TiZL/////Gv//
+        /wD///8A////AP///wAkCQAAHgMAABkAAAATAAD/////////////////////////////////////////
+        //////////////////////////////////////////////////////////////3u/P//////kGF7/wsA
+        AHT///8A////AP///wD///8A////ACgLAAAiBwAAHAEAABkAAAAzAABoIgAAx/bijv///9j/iGxF/2Q2
+        HWsAAABVEAAATgwAAEYIAABABAAAPAAAADgAAAA2AAAANAAAADQAAABRahYA//TgAP9cBwD/oKCb/wAA
+        AIUAAAAVCwAAAP///wD///8A////AP///wD///8ALA8EACYLAAAiBQAAHAEAADkAAAAnAAAAPy0N5aVz
+        S/9BBQAAaT0pAAAAAAAYAAAAFAAAABAAAAAMAAAABgAAAAAAAAAAAAAAAAAAAAAAAADmjQD///8s/9F7
+        AP//////AAAAAAAAAAALAAAA////AP///wD///8A////AP///wAwEwwALA8GACYLAAAiBQAAPQAAAC0A
+        AABHMhYAq3tWAEkNBwBxRzUABgAAACAAAAAcAAAAGAAAABQAAAAOAAAABgAAAAAAAAAAAAAAAAAAAN6K
+        AP///zT/x3IA/+X///////8A////AP///wD///8A////AP///wD///8A////ADQXEgAwEw4ALA8IACYL
+        BABDAAAAMwAAAE06IgCzg2AAURUSAHlPQQAOAAAAJwAAACQAAAAgAAAAGgAAABQAAAAOAAAAAAAAAAAA
+        AAAAAAAA04EA////Kv+6ZwD//////////wD///8A////AP///wD///8A////AP///wD///8AOBsYADQX
+        FAAwExAALBEMAEkAAAA5AAAAU0IsALmLbABXHR4Af1lMABYAAAAvAAAAKwAAACcAAAAiAAAAHAAAAAAA
+        AAAAAAAAAAAAAAAAAAACAAD/FwAA/y0AAP////8A////AP///wD///8A////AP///wD///8A////AP//
+        /wA6HR4AOBsaADQZGAAwFRQATQAAAD0AAABYSDUAv5N1AFwlKACHYVgAHAAAADcAAAAzAAAALQAAACkA
+        AAAiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/AAAAAAAAAAD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A/////8AAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPAAAAH///AD/z/
+        wA/8f8AP+D/AD/A/wA/gH8AH4B/AB+AfwAfgAAAH4AAAB+AAAAPgAAAH4AAAB+AAAA/gAAAP4AAAH/AA
+        AD/8//D////w////8P////H////7//////8=
+</value>
+  </data>
+</root>

+ 39 - 0
СУБД Швейная фабрика/FormPlitka.Designer.cs

@@ -0,0 +1,39 @@
+namespace СУБД_Швейная_фабрика
+{
+    partial class FormPlitka
+    {
+        /// <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.components = new System.ComponentModel.Container();
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(800, 450);
+            this.Text = "FormPlitka";
+        }
+
+        #endregion
+    }
+}

+ 20 - 0
СУБД Швейная фабрика/FormPlitka.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 FormPlitka : Form
+    {
+        public FormPlitka()
+        {
+            InitializeComponent();
+        }
+    }
+}

+ 120 - 0
СУБД Швейная фабрика/FormPlitka.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>

+ 1 - 0
СУБД Швейная фабрика/FormRegistration.cs

@@ -68,6 +68,7 @@ Values('{tbxLogin.Text}','{tbxPas.Text}',3,'{tbxFam.Text}','{tbxName.Text}','{tb
             }
            
             con.Close();
+            this.Close();
           
         }
     }

BIN
СУБД Швейная фабрика/bin/Debug/СУБД Швейная фабрика.exe


+ 2 - 0
СУБД Швейная фабрика/obj/Debug/СУБД Швейная фабрика.csproj.FileListAbsolute.txt

@@ -13,3 +13,5 @@ D:\PractickaLDA\СУБД Швейная фабрика\СУБД Швейная 
 D:\PractickaLDA\СУБД Швейная фабрика\СУБД Швейная фабрика\bin\Debug\PasswordCheckDll.pdb
 D:\PractickaLDA\СУБД Швейная фабрика\СУБД Швейная фабрика\obj\Debug\СУБД_Швейная_фабрика.FormRegistration.resources
 D:\PractickaLDA\СУБД Швейная фабрика\СУБД Швейная фабрика\obj\Debug\СУБД Швейная фабрика.csproj.CopyComplete
+D:\PractickaLDA\СУБД Швейная фабрика\СУБД Швейная фабрика\obj\Debug\СУБД_Швейная_фабрика.FormClient.resources
+D:\PractickaLDA\СУБД Швейная фабрика\СУБД Швейная фабрика\obj\Debug\СУБД_Швейная_фабрика.FormEditUser.resources

BIN
СУБД Швейная фабрика/obj/Debug/СУБД Швейная фабрика.exe


BIN
СУБД Швейная фабрика/obj/Debug/СУБД_Швейная_фабрика.FormClient.resources


BIN
СУБД Швейная фабрика/obj/Debug/СУБД_Швейная_фабрика.FormEditUser.resources


+ 12 - 0
СУБД Швейная фабрика/СУБД Швейная фабрика.csproj

@@ -61,6 +61,12 @@
     <Compile Include="FormClient.Designer.cs">
       <DependentUpon>FormClient.cs</DependentUpon>
     </Compile>
+    <Compile Include="FormEditUser.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="FormEditUser.Designer.cs">
+      <DependentUpon>FormEditUser.cs</DependentUpon>
+    </Compile>
     <Compile Include="FormManager.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -84,6 +90,12 @@
     <EmbeddedResource Include="FormAuthorization.resx">
       <DependentUpon>FormAuthorization.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="FormClient.resx">
+      <DependentUpon>FormClient.cs</DependentUpon>
+    </EmbeddedResource>
+    <EmbeddedResource Include="FormEditUser.resx">
+      <DependentUpon>FormEditUser.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="FormRegistration.resx">
       <DependentUpon>FormRegistration.cs</DependentUpon>
     </EmbeddedResource>