Your Name 2 years ago
parent
commit
daee9d9239

+ 6 - 5
СУБД Книжный клуб/FormMain.Designer.cs

@@ -29,7 +29,7 @@
         private void InitializeComponent()
         {
             this.components = new System.ComponentModel.Container();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
             this.panel1 = new System.Windows.Forms.Panel();
             this.label1 = new System.Windows.Forms.Label();
             this.pictureBox1 = new System.Windows.Forms.PictureBox();
@@ -138,8 +138,8 @@
             // Column3
             // 
             this.Column3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
-            dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.Column3.DefaultCellStyle = dataGridViewCellStyle1;
+            dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.Column3.DefaultCellStyle = dataGridViewCellStyle4;
             this.Column3.HeaderText = "Info";
             this.Column3.Name = "Column3";
             this.Column3.ReadOnly = true;
@@ -201,7 +201,7 @@
             // LblSum
             // 
             this.LblSum.AutoSize = true;
-            this.LblSum.Location = new System.Drawing.Point(308, 30);
+            this.LblSum.Location = new System.Drawing.Point(12, 13);
             this.LblSum.Name = "LblSum";
             this.LblSum.Size = new System.Drawing.Size(65, 23);
             this.LblSum.TabIndex = 2;
@@ -210,7 +210,7 @@
             // LblDiscount
             // 
             this.LblDiscount.AutoSize = true;
-            this.LblDiscount.Location = new System.Drawing.Point(62, 30);
+            this.LblDiscount.Location = new System.Drawing.Point(12, 38);
             this.LblDiscount.Name = "LblDiscount";
             this.LblDiscount.Size = new System.Drawing.Size(65, 23);
             this.LblDiscount.TabIndex = 1;
@@ -226,6 +226,7 @@
             this.BtnOrder.TabIndex = 0;
             this.BtnOrder.Text = "Просмотреть заказ";
             this.BtnOrder.UseVisualStyleBackColor = true;
+            this.BtnOrder.Click += new System.EventHandler(this.BtnOrder_Click);
             // 
             // FormMain
             // 

+ 39 - 2
СУБД Книжный клуб/FormMain.cs

@@ -18,7 +18,7 @@ namespace СУБД_Книжный_клуб
         }
        public SqlConnection Con = new SqlConnection(TxtCon);
        public static string TxtCon = @"Data Source=213.155.192.79,3002;Initial Catalog=BookClubKMA;Persist Security Info=True;User ID=u21kleschenkov;Password=vhk5";
-        class OrderItem
+        public class OrderItem
         {
             public string IdProduct, NameProduct;
             public double Cost, Discount;
@@ -26,6 +26,28 @@ namespace СУБД_Книжный_клуб
         }
         List<OrderItem> LstOrder = new List<OrderItem>();
 
+        /// <summary>
+        /// Подччёт суммы заказа и суммы скидки
+        /// </summary>
+        /// <param name="Sum">Сумма заказа с учетом скидки</param>
+        /// <param name="DiscountSum">Сумма скидки</param>
+        void CalcOrder(ref double Sum, ref double DiscountSum)
+        {
+            Sum= 0;
+            DiscountSum= 0;
+            
+            double CostItem = 0, DiscountItem = 0;
+           
+            for (int i = 0; i < LstOrder.Count; i++)
+            {
+                CostItem = LstOrder[i].Cost * LstOrder[i].CountInOrder;
+                DiscountItem = CostItem * LstOrder[i].Discount / 100;
+                DiscountSum += DiscountItem;
+                Sum+= CostItem - DiscountItem;
+            }
+        }
+
+
         /// <summary>
         /// Заполнение списков товаров, имеющихся на складе
         /// </summary>
@@ -77,13 +99,28 @@ Manufacturer.IdManufacturer";
             Item.CountInStorage = int.Parse(DgvProductList.SelectedRows[0].Cells[6].Value.ToString());
             Item.CountInOrder = 1;
             LstOrder.Add(Item);
-        }
 
+
+            double Sum = 0, DiscountSum = 0;
+            CalcOrder(ref Sum, ref DiscountSum);
+            LblSum.Text = $"Сумма заказа (с учетом скидки): {Sum}";
+            LblDiscount.Text = $"Скидка: {DiscountSum}";
+        }
+        
         private void DgvProductList_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e)
         {
             DgvProductList.ClearSelection();
             DgvProductList[ e.ColumnIndex,e.RowIndex].Selected= true;
             
         }
+
+        private void BtnOrder_Click(object sender, EventArgs e)
+        {
+            FormOrder Frm = new FormOrder();
+            //this.Hide();
+            Frm.LstOrder = LstOrder;
+            Frm.ShowDialog();
+            //this.Show();
+        }
     }
 }

+ 212 - 0
СУБД Книжный клуб/FormOrder.Designer.cs

@@ -0,0 +1,212 @@
+namespace СУБД_Книжный_клуб
+{
+    partial class FormOrder
+    {
+        /// <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.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.label1 = new System.Windows.Forms.Label();
+            this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.DgvProductList = new System.Windows.Forms.DataGridView();
+            this.PanelOrder = new System.Windows.Forms.Panel();
+            this.LblSum = new System.Windows.Forms.Label();
+            this.LblDiscount = new System.Windows.Forms.Label();
+            this.BtnCheckOut = new System.Windows.Forms.Button();
+            this.Column2 = new System.Windows.Forms.DataGridViewImageColumn();
+            this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvProductList)).BeginInit();
+            this.PanelOrder.SuspendLayout();
+            this.SuspendLayout();
+            // 
+            // panel1
+            // 
+            this.panel1.BackColor = System.Drawing.Color.DarkSalmon;
+            this.panel1.Controls.Add(this.label1);
+            this.panel1.Controls.Add(this.pictureBox1);
+            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(6, 5, 6, 5);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(772, 67);
+            this.panel1.TabIndex = 1;
+            // 
+            // label1
+            // 
+            this.label1.Anchor = System.Windows.Forms.AnchorStyles.Top;
+            this.label1.AutoSize = true;
+            this.label1.Font = new System.Drawing.Font("Century", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.label1.Location = new System.Drawing.Point(211, 9);
+            this.label1.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(358, 34);
+            this.label1.TabIndex = 1;
+            this.label1.Text = "Список товаров в заказе";
+            // 
+            // pictureBox1
+            // 
+            this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
+            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Right;
+            this.pictureBox1.Location = new System.Drawing.Point(652, 0);
+            this.pictureBox1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
+            this.pictureBox1.Name = "pictureBox1";
+            this.pictureBox1.Size = new System.Drawing.Size(120, 67);
+            this.pictureBox1.TabIndex = 0;
+            this.pictureBox1.TabStop = false;
+            // 
+            // DgvProductList
+            // 
+            this.DgvProductList.AllowUserToAddRows = false;
+            this.DgvProductList.AllowUserToDeleteRows = false;
+            this.DgvProductList.AllowUserToResizeColumns = false;
+            this.DgvProductList.AllowUserToResizeRows = false;
+            this.DgvProductList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.DgvProductList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.DgvProductList.ColumnHeadersVisible = false;
+            this.DgvProductList.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.Column2,
+            this.Column3,
+            this.Column7});
+            this.DgvProductList.Location = new System.Drawing.Point(12, 78);
+            this.DgvProductList.Name = "DgvProductList";
+            this.DgvProductList.ReadOnly = true;
+            this.DgvProductList.RowHeadersVisible = false;
+            this.DgvProductList.RowTemplate.Height = 100;
+            this.DgvProductList.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+            this.DgvProductList.Size = new System.Drawing.Size(748, 415);
+            this.DgvProductList.TabIndex = 2;
+            // 
+            // PanelOrder
+            // 
+            this.PanelOrder.Controls.Add(this.LblSum);
+            this.PanelOrder.Controls.Add(this.LblDiscount);
+            this.PanelOrder.Controls.Add(this.BtnCheckOut);
+            this.PanelOrder.Dock = System.Windows.Forms.DockStyle.Bottom;
+            this.PanelOrder.Location = new System.Drawing.Point(0, 499);
+            this.PanelOrder.Name = "PanelOrder";
+            this.PanelOrder.Size = new System.Drawing.Size(772, 70);
+            this.PanelOrder.TabIndex = 3;
+            // 
+            // LblSum
+            // 
+            this.LblSum.AutoSize = true;
+            this.LblSum.Location = new System.Drawing.Point(12, 13);
+            this.LblSum.Name = "LblSum";
+            this.LblSum.Size = new System.Drawing.Size(65, 23);
+            this.LblSum.TabIndex = 2;
+            this.LblSum.Text = "label3";
+            // 
+            // LblDiscount
+            // 
+            this.LblDiscount.AutoSize = true;
+            this.LblDiscount.Location = new System.Drawing.Point(12, 38);
+            this.LblDiscount.Name = "LblDiscount";
+            this.LblDiscount.Size = new System.Drawing.Size(65, 23);
+            this.LblDiscount.TabIndex = 1;
+            this.LblDiscount.Text = "label2";
+            // 
+            // BtnCheckOut
+            // 
+            this.BtnCheckOut.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.BtnCheckOut.Location = new System.Drawing.Point(506, 13);
+            this.BtnCheckOut.Name = "BtnCheckOut";
+            this.BtnCheckOut.Size = new System.Drawing.Size(229, 40);
+            this.BtnCheckOut.TabIndex = 0;
+            this.BtnCheckOut.Text = "Сформировать заказ";
+            this.BtnCheckOut.UseVisualStyleBackColor = true;
+            this.BtnCheckOut.Click += new System.EventHandler(this.BtnCheckOut_Click);
+            // 
+            // Column2
+            // 
+            this.Column2.HeaderText = "Photo";
+            this.Column2.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom;
+            this.Column2.Name = "Column2";
+            this.Column2.ReadOnly = true;
+            this.Column2.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            // 
+            // Column3
+            // 
+            this.Column3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+            dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.Column3.DefaultCellStyle = dataGridViewCellStyle4;
+            this.Column3.HeaderText = "Info";
+            this.Column3.Name = "Column3";
+            this.Column3.ReadOnly = true;
+            // 
+            // Column7
+            // 
+            this.Column7.HeaderText = "ProductCount";
+            this.Column7.Name = "Column7";
+            this.Column7.ReadOnly = true;
+            // 
+            // FormOrder
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 23F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.BackColor = System.Drawing.Color.White;
+            this.ClientSize = new System.Drawing.Size(772, 569);
+            this.Controls.Add(this.PanelOrder);
+            this.Controls.Add(this.DgvProductList);
+            this.Controls.Add(this.panel1);
+            this.Font = new System.Drawing.Font("Century", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
+            this.MinimumSize = new System.Drawing.Size(788, 608);
+            this.Name = "FormOrder";
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+            this.Text = "СУБД \"Книжный клуб\"";
+            this.Load += new System.EventHandler(this.FormOrder_Load);
+            this.panel1.ResumeLayout(false);
+            this.panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvProductList)).EndInit();
+            this.PanelOrder.ResumeLayout(false);
+            this.PanelOrder.PerformLayout();
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.PictureBox pictureBox1;
+        private System.Windows.Forms.DataGridView DgvProductList;
+        private System.Windows.Forms.DataGridViewImageColumn Column2;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+        private System.Windows.Forms.Panel PanelOrder;
+        private System.Windows.Forms.Label LblSum;
+        private System.Windows.Forms.Label LblDiscount;
+        private System.Windows.Forms.Button BtnCheckOut;
+    }
+}

+ 72 - 0
СУБД Книжный клуб/FormOrder.cs

@@ -0,0 +1,72 @@
+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;
+
+namespace СУБД_Книжный_клуб
+{
+    public partial class FormOrder : Form
+    {
+        public FormOrder()
+        {
+            InitializeComponent();
+        }
+        SqlConnection Con = new SqlConnection(FormMain.TxtCon);
+        void FillListProduct()
+        {
+            DgvProductList.Rows.Clear();
+            
+            for (int i = 0; i <= LstOrder.Count-1; i++)
+            {
+                string TxtQuery = @"SELECT Product.IdProduct, Product.Photo,
+Product.NameProduct, Manufacturer.NameManufacturer, Product.Cost,
+Product.Discount, Product.CountProduct, Product.Description
+FROM Product INNER JOIN Manufacturer ON Product.IdManufacturer = 
+Manufacturer.IdManufacturer
+where IdProduct =" + LstOrder[i].IdProduct;
+                SqlCommand Query = new SqlCommand(TxtQuery, Con);
+                Con.Open();
+                SqlDataReader Res = Query.ExecuteReader();
+                
+                Res.Read();
+                string Info = $@"Товар: {Res["NameProduct"]}
+Производитель: {Res["NameManufacturer"]}
+Описание: {Res["Description"]}
+Цена: {Res["Cost"]}
+Скидка: {Res["Discount"]}
+Кол-во на складе: {Res["CountProduct"]}";
+                try
+                {
+                    DgvProductList.Rows.Add(Image.FromFile(Application.StartupPath + "\\Фото\\" + Res["Photo"]), Info, LstOrder[i].CountInOrder);
+                }
+                catch
+                {
+                    DgvProductList.Rows.Add( Image.FromFile(Application.StartupPath + "\\Фото\\blank.jpg" + Res["Photo"]), Info, LstOrder[i].CountInOrder);
+                }
+                Con.Close();
+
+            }
+            
+
+            
+
+        }
+        public List<FormMain.OrderItem> LstOrder = new List<FormMain.OrderItem>();
+
+        private void BtnCheckOut_Click(object sender, EventArgs e)
+        {
+           
+        }
+
+        private void FormOrder_Load(object sender, EventArgs e)
+        {
+            FillListProduct();
+        }
+    }
+}

+ 138 - 0
СУБД Книжный клуб/FormOrder.resx

@@ -0,0 +1,138 @@
+<?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>
+  <metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+</root>

BIN
СУБД Книжный клуб/bin/Debug/СУБД Книжный клуб.exe


+ 9 - 0
СУБД Книжный клуб/СУБД Книжный клуб.csproj

@@ -57,11 +57,20 @@
     <Compile Include="FormMain.Designer.cs">
       <DependentUpon>FormMain.cs</DependentUpon>
     </Compile>
+    <Compile Include="FormOrder.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="FormOrder.Designer.cs">
+      <DependentUpon>FormOrder.cs</DependentUpon>
+    </Compile>
     <Compile Include="Program.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
     <EmbeddedResource Include="FormMain.resx">
       <DependentUpon>FormMain.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="FormOrder.resx">
+      <DependentUpon>FormOrder.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="Properties\Resources.resx">
       <Generator>ResXFileCodeGenerator</Generator>
       <LastGenOutput>Resources.Designer.cs</LastGenOutput>