Bläddra i källkod

Добавил рассчёт стоимость проката

Kuzmenco 2 år sedan
förälder
incheckning
6ca69ffcbf

+ 9 - 0
AvtoProkat06/AvtoProkat06.csproj

@@ -104,6 +104,12 @@
     <Compile Include="Avto.Designer.cs">
       <DependentUpon>Avto.cs</DependentUpon>
     </Compile>
+    <Compile Include="Rasschet.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Rasschet.Designer.cs">
+      <DependentUpon>Rasschet.cs</DependentUpon>
+    </Compile>
     <EmbeddedResource Include="Addavto.resx">
       <DependentUpon>Addavto.cs</DependentUpon>
     </EmbeddedResource>
@@ -138,6 +144,9 @@
     <EmbeddedResource Include="Avto.resx">
       <DependentUpon>Avto.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="Rasschet.resx">
+      <DependentUpon>Rasschet.cs</DependentUpon>
+    </EmbeddedResource>
     <None Include="Prokatavto06DataSet.xsc">
       <DependentUpon>Prokatavto06DataSet.xsd</DependentUpon>
     </None>

+ 2 - 2
AvtoProkat06/Form1.Designer.cs

@@ -83,9 +83,9 @@ namespace AvtoProkat06
             this.button3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(176)))), ((int)(((byte)(190)))), ((int)(((byte)(197)))));
             this.button3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
             this.button3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(71)))), ((int)(((byte)(79)))));
-            this.button3.Location = new System.Drawing.Point(317, 200);
+            this.button3.Location = new System.Drawing.Point(317, 198);
             this.button3.Name = "button3";
-            this.button3.Size = new System.Drawing.Size(181, 73);
+            this.button3.Size = new System.Drawing.Size(181, 75);
             this.button3.TabIndex = 3;
             this.button3.Text = "Таблица \"Клиенты\"";
             this.button3.UseVisualStyleBackColor = false;

+ 89 - 65
AvtoProkat06/Prokat.Designer.cs

@@ -36,17 +36,19 @@ namespace AvtoProkat06
             this.prokatTableAdapter = new AvtoProkat06.Prokatavto06DataSetTableAdapters.ProkatTableAdapter();
             this.tableAdapterManager = new AvtoProkat06.Prokatavto06DataSetTableAdapters.TableAdapterManager();
             this.prokatDataGridView = new System.Windows.Forms.DataGridView();
-            this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.label1 = new System.Windows.Forms.Label();
             this.button1 = new System.Windows.Forms.Button();
             this.button5 = new System.Windows.Forms.Button();
             this.button3 = new System.Windows.Forms.Button();
             this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.button2 = new System.Windows.Forms.Button();
+            this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Stoim = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.kolvo12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Itogo = new System.Windows.Forms.DataGridViewTextBoxColumn();
             ((System.ComponentModel.ISupportInitialize)(this.prokatavto06DataSet)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.prokatBindingSource)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.prokatDataGridView)).BeginInit();
@@ -82,67 +84,18 @@ namespace AvtoProkat06
             this.prokatDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
             this.prokatDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
             this.dataGridViewTextBoxColumn1,
-            this.dataGridViewTextBoxColumn2,
+            this.Stoim,
             this.dataGridViewTextBoxColumn3,
-            this.dataGridViewTextBoxColumn4,
+            this.kolvo12,
             this.dataGridViewTextBoxColumn5,
-            this.dataGridViewTextBoxColumn6});
+            this.dataGridViewTextBoxColumn6,
+            this.Itogo});
             this.prokatDataGridView.DataSource = this.prokatBindingSource;
             this.prokatDataGridView.Location = new System.Drawing.Point(21, 66);
             this.prokatDataGridView.Name = "prokatDataGridView";
             this.prokatDataGridView.Size = new System.Drawing.Size(757, 220);
             this.prokatDataGridView.TabIndex = 1;
             // 
-            // dataGridViewTextBoxColumn1
-            // 
-            this.dataGridViewTextBoxColumn1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.dataGridViewTextBoxColumn1.DataPropertyName = "Kod prokata";
-            this.dataGridViewTextBoxColumn1.HeaderText = "Kod prokata";
-            this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
-            this.dataGridViewTextBoxColumn1.ReadOnly = true;
-            this.dataGridViewTextBoxColumn1.Visible = false;
-            this.dataGridViewTextBoxColumn1.Width = 125;
-            // 
-            // dataGridViewTextBoxColumn2
-            // 
-            this.dataGridViewTextBoxColumn2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.dataGridViewTextBoxColumn2.DataPropertyName = "Stoimost odnogo dnya prokata";
-            this.dataGridViewTextBoxColumn2.HeaderText = "Stoimost odnogo dnya prokata";
-            this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
-            this.dataGridViewTextBoxColumn2.Width = 125;
-            // 
-            // dataGridViewTextBoxColumn3
-            // 
-            this.dataGridViewTextBoxColumn3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.dataGridViewTextBoxColumn3.DataPropertyName = "Data nachala prokata";
-            this.dataGridViewTextBoxColumn3.HeaderText = "Data nachala prokata";
-            this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
-            this.dataGridViewTextBoxColumn3.Width = 125;
-            // 
-            // dataGridViewTextBoxColumn4
-            // 
-            this.dataGridViewTextBoxColumn4.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.dataGridViewTextBoxColumn4.DataPropertyName = "Kolichestvo dnei prokata";
-            this.dataGridViewTextBoxColumn4.HeaderText = "Kolichestvo dnei prokata";
-            this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
-            this.dataGridViewTextBoxColumn4.Width = 125;
-            // 
-            // dataGridViewTextBoxColumn5
-            // 
-            this.dataGridViewTextBoxColumn5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.dataGridViewTextBoxColumn5.DataPropertyName = "Kod klienta";
-            this.dataGridViewTextBoxColumn5.HeaderText = "Kod klienta";
-            this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
-            this.dataGridViewTextBoxColumn5.Width = 125;
-            // 
-            // dataGridViewTextBoxColumn6
-            // 
-            this.dataGridViewTextBoxColumn6.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.dataGridViewTextBoxColumn6.DataPropertyName = "Kod avto";
-            this.dataGridViewTextBoxColumn6.HeaderText = "Kod avto";
-            this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
-            this.dataGridViewTextBoxColumn6.Width = 125;
-            // 
             // label1
             // 
             this.label1.AutoSize = true;
@@ -203,12 +156,81 @@ namespace AvtoProkat06
             this.pictureBox1.TabIndex = 8;
             this.pictureBox1.TabStop = false;
             // 
+            // button2
+            // 
+            this.button2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(176)))), ((int)(((byte)(190)))), ((int)(((byte)(197)))));
+            this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
+            this.button2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(71)))), ((int)(((byte)(79)))));
+            this.button2.Location = new System.Drawing.Point(310, 292);
+            this.button2.Name = "button2";
+            this.button2.Size = new System.Drawing.Size(179, 67);
+            this.button2.TabIndex = 19;
+            this.button2.Text = "Рассчитать стоимость проката";
+            this.button2.UseVisualStyleBackColor = false;
+            this.button2.Click += new System.EventHandler(this.button2_Click);
+            // 
+            // dataGridViewTextBoxColumn1
+            // 
+            this.dataGridViewTextBoxColumn1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.dataGridViewTextBoxColumn1.DataPropertyName = "Kod prokata";
+            this.dataGridViewTextBoxColumn1.HeaderText = "Kod prokata";
+            this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
+            this.dataGridViewTextBoxColumn1.ReadOnly = true;
+            this.dataGridViewTextBoxColumn1.Visible = false;
+            this.dataGridViewTextBoxColumn1.Width = 125;
+            // 
+            // Stoim
+            // 
+            this.Stoim.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.Stoim.DataPropertyName = "Stoimost odnogo dnya prokata";
+            this.Stoim.HeaderText = "Stoimost odnogo dnya prokata";
+            this.Stoim.Name = "Stoim";
+            this.Stoim.Width = 125;
+            // 
+            // dataGridViewTextBoxColumn3
+            // 
+            this.dataGridViewTextBoxColumn3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.dataGridViewTextBoxColumn3.DataPropertyName = "Data nachala prokata";
+            this.dataGridViewTextBoxColumn3.HeaderText = "Data nachala prokata";
+            this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
+            this.dataGridViewTextBoxColumn3.Width = 125;
+            // 
+            // kolvo12
+            // 
+            this.kolvo12.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.kolvo12.DataPropertyName = "Kolichestvo dnei prokata";
+            this.kolvo12.HeaderText = "Kolichestvo dnei prokata";
+            this.kolvo12.Name = "kolvo12";
+            this.kolvo12.Width = 125;
+            // 
+            // dataGridViewTextBoxColumn5
+            // 
+            this.dataGridViewTextBoxColumn5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.dataGridViewTextBoxColumn5.DataPropertyName = "Kod klienta";
+            this.dataGridViewTextBoxColumn5.HeaderText = "Kod klienta";
+            this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
+            this.dataGridViewTextBoxColumn5.Width = 125;
+            // 
+            // dataGridViewTextBoxColumn6
+            // 
+            this.dataGridViewTextBoxColumn6.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.dataGridViewTextBoxColumn6.DataPropertyName = "Kod avto";
+            this.dataGridViewTextBoxColumn6.HeaderText = "Kod avto";
+            this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
+            this.dataGridViewTextBoxColumn6.Width = 125;
+            // 
+            // Itogo
+            // 
+            this.Itogo.HeaderText = "Itogo";
+            this.Itogo.Name = "Itogo";
+            // 
             // Prokat
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(216)))), ((int)(((byte)(220)))));
             this.ClientSize = new System.Drawing.Size(800, 450);
+            this.Controls.Add(this.button2);
             this.Controls.Add(this.button3);
             this.Controls.Add(this.button5);
             this.Controls.Add(this.button1);
@@ -235,16 +257,18 @@ namespace AvtoProkat06
         private Prokatavto06DataSetTableAdapters.ProkatTableAdapter prokatTableAdapter;
         private Prokatavto06DataSetTableAdapters.TableAdapterManager tableAdapterManager;
         private System.Windows.Forms.DataGridView prokatDataGridView;
-        private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
-        private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
-        private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
-        private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
-        private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
-        private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
         private System.Windows.Forms.PictureBox pictureBox1;
         private System.Windows.Forms.Label label1;
         private System.Windows.Forms.Button button1;
         private System.Windows.Forms.Button button5;
         private System.Windows.Forms.Button button3;
+        private System.Windows.Forms.Button button2;
+        private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Stoim;
+        private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
+        private System.Windows.Forms.DataGridViewTextBoxColumn kolvo12;
+        private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
+        private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Itogo;
     }
 }

+ 19 - 0
AvtoProkat06/Prokat.cs

@@ -54,5 +54,24 @@ namespace AvtoProkat06
             frm1.Show();
             this.Hide();
         }
+
+        private void button2_Click(object sender, EventArgs e)
+        {
+            Rasschet ras = new Rasschet();
+            ras.Owner = this;
+            ras.Show();
+        }
+
+        private void button4_Click(object sender, EventArgs e)
+        {
+          
+
+            prokatDataGridView.Rows[1].Cells["Stoim"].Value.ToString();
+            prokatDataGridView.Rows[3].Cells["kolvo12"].Value.ToString();
+
+
+        }
+        
+
     }
 }

+ 3 - 0
AvtoProkat06/Prokat.resx

@@ -129,6 +129,9 @@
   <metadata name="tableAdapterManager.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>510, 17</value>
   </metadata>
+  <metadata name="Itogo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
   <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
     <value>

+ 222 - 0
AvtoProkat06/Rasschet.Designer.cs

@@ -0,0 +1,222 @@
+
+namespace AvtoProkat06
+{
+    partial class Rasschet
+    {
+        /// <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();
+            System.Windows.Forms.Label stoimost_odnogo_dnya_prokataLabel;
+            System.Windows.Forms.Label kolichestvo_dnei_prokataLabel;
+            this.groupBox1 = new System.Windows.Forms.GroupBox();
+            this.button3 = new System.Windows.Forms.Button();
+            this.button1 = new System.Windows.Forms.Button();
+            this.button2 = new System.Windows.Forms.Button();
+            this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.prokatavto06DataSet = new AvtoProkat06.Prokatavto06DataSet();
+            this.prokatBindingSource = new System.Windows.Forms.BindingSource(this.components);
+            this.prokatTableAdapter = new AvtoProkat06.Prokatavto06DataSetTableAdapters.ProkatTableAdapter();
+            this.tableAdapterManager = new AvtoProkat06.Prokatavto06DataSetTableAdapters.TableAdapterManager();
+            this.stoimost_odnogo_dnya_prokataTextBox = new System.Windows.Forms.TextBox();
+            this.kolichestvo_dnei_prokataTextBox = new System.Windows.Forms.TextBox();
+            this.textBox1 = new System.Windows.Forms.TextBox();
+            stoimost_odnogo_dnya_prokataLabel = new System.Windows.Forms.Label();
+            kolichestvo_dnei_prokataLabel = new System.Windows.Forms.Label();
+            this.groupBox1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.prokatavto06DataSet)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.prokatBindingSource)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // groupBox1
+            // 
+            this.groupBox1.Controls.Add(this.textBox1);
+            this.groupBox1.Controls.Add(kolichestvo_dnei_prokataLabel);
+            this.groupBox1.Controls.Add(this.kolichestvo_dnei_prokataTextBox);
+            this.groupBox1.Controls.Add(stoimost_odnogo_dnya_prokataLabel);
+            this.groupBox1.Controls.Add(this.stoimost_odnogo_dnya_prokataTextBox);
+            this.groupBox1.Controls.Add(this.button3);
+            this.groupBox1.Controls.Add(this.button1);
+            this.groupBox1.Controls.Add(this.button2);
+            this.groupBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
+            this.groupBox1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(71)))), ((int)(((byte)(79)))));
+            this.groupBox1.Location = new System.Drawing.Point(60, 47);
+            this.groupBox1.Name = "groupBox1";
+            this.groupBox1.Size = new System.Drawing.Size(703, 374);
+            this.groupBox1.TabIndex = 11;
+            this.groupBox1.TabStop = false;
+            this.groupBox1.Text = "Рассчёт стоимости проката";
+            // 
+            // button3
+            // 
+            this.button3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(176)))), ((int)(((byte)(190)))), ((int)(((byte)(197)))));
+            this.button3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
+            this.button3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(71)))), ((int)(((byte)(79)))));
+            this.button3.Location = new System.Drawing.Point(468, 249);
+            this.button3.Name = "button3";
+            this.button3.Size = new System.Drawing.Size(149, 69);
+            this.button3.TabIndex = 9;
+            this.button3.Text = "Закрыть форму";
+            this.button3.UseVisualStyleBackColor = false;
+            this.button3.Click += new System.EventHandler(this.button3_Click);
+            // 
+            // button1
+            // 
+            this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(176)))), ((int)(((byte)(190)))), ((int)(((byte)(197)))));
+            this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
+            this.button1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(71)))), ((int)(((byte)(79)))));
+            this.button1.Location = new System.Drawing.Point(6, 250);
+            this.button1.Name = "button1";
+            this.button1.Size = new System.Drawing.Size(147, 68);
+            this.button1.TabIndex = 7;
+            this.button1.Text = "Добавить запись";
+            this.button1.UseVisualStyleBackColor = false;
+            this.button1.Click += new System.EventHandler(this.button1_Click);
+            // 
+            // button2
+            // 
+            this.button2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(176)))), ((int)(((byte)(190)))), ((int)(((byte)(197)))));
+            this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
+            this.button2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(71)))), ((int)(((byte)(79)))));
+            this.button2.Location = new System.Drawing.Point(236, 249);
+            this.button2.Name = "button2";
+            this.button2.Size = new System.Drawing.Size(147, 69);
+            this.button2.TabIndex = 8;
+            this.button2.Text = "Рассчитать";
+            this.button2.UseVisualStyleBackColor = false;
+            this.button2.Click += new System.EventHandler(this.button2_Click);
+            // 
+            // pictureBox1
+            // 
+            this.pictureBox1.Image = global::AvtoProkat06.Properties.Resources.icon;
+            this.pictureBox1.Location = new System.Drawing.Point(12, 12);
+            this.pictureBox1.Name = "pictureBox1";
+            this.pictureBox1.Size = new System.Drawing.Size(29, 33);
+            this.pictureBox1.TabIndex = 11;
+            this.pictureBox1.TabStop = false;
+            // 
+            // prokatavto06DataSet
+            // 
+            this.prokatavto06DataSet.DataSetName = "Prokatavto06DataSet";
+            this.prokatavto06DataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+            // 
+            // prokatBindingSource
+            // 
+            this.prokatBindingSource.DataMember = "Prokat";
+            this.prokatBindingSource.DataSource = this.prokatavto06DataSet;
+            // 
+            // prokatTableAdapter
+            // 
+            this.prokatTableAdapter.ClearBeforeFill = true;
+            // 
+            // tableAdapterManager
+            // 
+            this.tableAdapterManager.AvtoTableAdapter = null;
+            this.tableAdapterManager.BackupDataSetBeforeUpdate = false;
+            this.tableAdapterManager.KlientTableAdapter = null;
+            this.tableAdapterManager.ProkatTableAdapter = this.prokatTableAdapter;
+            this.tableAdapterManager.StrahovkaTableAdapter = null;
+            this.tableAdapterManager.UpdateOrder = AvtoProkat06.Prokatavto06DataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
+            // 
+            // stoimost_odnogo_dnya_prokataLabel
+            // 
+            stoimost_odnogo_dnya_prokataLabel.AutoSize = true;
+            stoimost_odnogo_dnya_prokataLabel.Location = new System.Drawing.Point(6, 63);
+            stoimost_odnogo_dnya_prokataLabel.Name = "stoimost_odnogo_dnya_prokataLabel";
+            stoimost_odnogo_dnya_prokataLabel.Size = new System.Drawing.Size(230, 20);
+            stoimost_odnogo_dnya_prokataLabel.TabIndex = 9;
+            stoimost_odnogo_dnya_prokataLabel.Text = "Stoimost odnogo dnya prokata:";
+            // 
+            // stoimost_odnogo_dnya_prokataTextBox
+            // 
+            this.stoimost_odnogo_dnya_prokataTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.prokatBindingSource, "Stoimost odnogo dnya prokata", true));
+            this.stoimost_odnogo_dnya_prokataTextBox.Location = new System.Drawing.Point(242, 60);
+            this.stoimost_odnogo_dnya_prokataTextBox.Name = "stoimost_odnogo_dnya_prokataTextBox";
+            this.stoimost_odnogo_dnya_prokataTextBox.Size = new System.Drawing.Size(186, 26);
+            this.stoimost_odnogo_dnya_prokataTextBox.TabIndex = 10;
+            // 
+            // kolichestvo_dnei_prokataLabel
+            // 
+            kolichestvo_dnei_prokataLabel.AutoSize = true;
+            kolichestvo_dnei_prokataLabel.Location = new System.Drawing.Point(6, 136);
+            kolichestvo_dnei_prokataLabel.Name = "kolichestvo_dnei_prokataLabel";
+            kolichestvo_dnei_prokataLabel.Size = new System.Drawing.Size(185, 20);
+            kolichestvo_dnei_prokataLabel.TabIndex = 10;
+            kolichestvo_dnei_prokataLabel.Text = "Kolichestvo dnei prokata:";
+            kolichestvo_dnei_prokataLabel.Click += new System.EventHandler(this.kolichestvo_dnei_prokataLabel_Click);
+            // 
+            // kolichestvo_dnei_prokataTextBox
+            // 
+            this.kolichestvo_dnei_prokataTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.prokatBindingSource, "Kolichestvo dnei prokata", true));
+            this.kolichestvo_dnei_prokataTextBox.Location = new System.Drawing.Point(242, 130);
+            this.kolichestvo_dnei_prokataTextBox.Name = "kolichestvo_dnei_prokataTextBox";
+            this.kolichestvo_dnei_prokataTextBox.Size = new System.Drawing.Size(186, 26);
+            this.kolichestvo_dnei_prokataTextBox.TabIndex = 11;
+            // 
+            // textBox1
+            // 
+            this.textBox1.Location = new System.Drawing.Point(533, 130);
+            this.textBox1.Name = "textBox1";
+            this.textBox1.Size = new System.Drawing.Size(100, 26);
+            this.textBox1.TabIndex = 12;
+            // 
+            // Rasschet
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(216)))), ((int)(((byte)(220)))));
+            this.ClientSize = new System.Drawing.Size(753, 432);
+            this.Controls.Add(this.pictureBox1);
+            this.Controls.Add(this.groupBox1);
+            this.Name = "Rasschet";
+            this.Text = "Rasschet";
+            this.Load += new System.EventHandler(this.Rasschet_Load);
+            this.groupBox1.ResumeLayout(false);
+            this.groupBox1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.prokatavto06DataSet)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.prokatBindingSource)).EndInit();
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.GroupBox groupBox1;
+        private System.Windows.Forms.Button button3;
+        private System.Windows.Forms.Button button1;
+        private System.Windows.Forms.Button button2;
+        private System.Windows.Forms.PictureBox pictureBox1;
+        private Prokatavto06DataSet prokatavto06DataSet;
+        private System.Windows.Forms.BindingSource prokatBindingSource;
+        private Prokatavto06DataSetTableAdapters.ProkatTableAdapter prokatTableAdapter;
+        private Prokatavto06DataSetTableAdapters.TableAdapterManager tableAdapterManager;
+        private System.Windows.Forms.TextBox kolichestvo_dnei_prokataTextBox;
+        private System.Windows.Forms.TextBox stoimost_odnogo_dnya_prokataTextBox;
+        private System.Windows.Forms.TextBox textBox1;
+    }
+}

+ 55 - 0
AvtoProkat06/Rasschet.cs

@@ -0,0 +1,55 @@
+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 AvtoProkat06
+{
+    public partial class Rasschet : Form
+    {
+        public Rasschet()
+        {
+            InitializeComponent();
+        }
+
+        private void prokatBindingNavigatorSaveItem_Click(object sender, EventArgs e)
+        {
+            this.Validate();
+            this.prokatBindingSource.EndEdit();
+            this.tableAdapterManager.UpdateAll(this.prokatavto06DataSet);
+
+        }
+
+        private void Rasschet_Load(object sender, EventArgs e)
+        {
+            // TODO: данная строка кода позволяет загрузить данные в таблицу "prokatavto06DataSet.Prokat". При необходимости она может быть перемещена или удалена.
+            this.prokatTableAdapter.Fill(this.prokatavto06DataSet.Prokat);
+            
+        }
+
+        private void kolichestvo_dnei_prokataLabel_Click(object sender, EventArgs e)
+        {
+
+        }
+
+        private void button2_Click(object sender, EventArgs e)
+        {
+            textBox1.Text = Convert.ToString((Convert.ToDouble(stoimost_odnogo_dnya_prokataTextBox.Text) * Convert.ToDouble(kolichestvo_dnei_prokataTextBox.Text)));
+        }
+
+        private void button3_Click(object sender, EventArgs e)
+        {
+            Close();
+        }
+
+        private void button1_Click(object sender, EventArgs e)
+        {
+            prokatBindingSource.AddNew();
+        }
+    }
+}

+ 144 - 0
AvtoProkat06/Rasschet.resx

@@ -0,0 +1,144 @@
+<?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="kolichestvo_dnei_prokataLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="prokatBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>184, 17</value>
+  </metadata>
+  <metadata name="stoimost_odnogo_dnya_prokataLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="prokatavto06DataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
+  </metadata>
+  <metadata name="prokatBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>184, 17</value>
+  </metadata>
+  <metadata name="prokatavto06DataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
+  </metadata>
+  <metadata name="prokatTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>350, 17</value>
+  </metadata>
+  <metadata name="tableAdapterManager.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>510, 17</value>
+  </metadata>
+</root>