Browse Source

добавление кнопок авиакомпании, добавить, удалить изменения

Kuzmenco 1 year ago
parent
commit
b22bf3625d
3 changed files with 41 additions and 4 deletions
  1. 40 3
      Form1.Designer.cs
  2. 1 1
      Lab1_.sln
  3. 0 0
      Lab2_.csproj

+ 40 - 3
Form1.Designer.cs

@@ -41,6 +41,9 @@ namespace Lab1_
             this.towntoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.timeoutDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.timeinDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.button1 = new System.Windows.Forms.Button();
+            this.button2 = new System.Windows.Forms.Button();
+            this.button3 = new System.Windows.Forms.Button();
             ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.aero03DataSet)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.tripBindingSource)).BeginInit();
@@ -59,9 +62,10 @@ namespace Lab1_
             this.timeoutDataGridViewTextBoxColumn,
             this.timeinDataGridViewTextBoxColumn});
             this.dataGridView1.DataSource = this.tripBindingSource;
-            this.dataGridView1.Location = new System.Drawing.Point(12, 12);
+            this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Top;
+            this.dataGridView1.Location = new System.Drawing.Point(0, 0);
             this.dataGridView1.Name = "dataGridView1";
-            this.dataGridView1.Size = new System.Drawing.Size(788, 547);
+            this.dataGridView1.Size = new System.Drawing.Size(786, 547);
             this.dataGridView1.TabIndex = 0;
             // 
             // aero03DataSet
@@ -120,11 +124,41 @@ namespace Lab1_
             this.timeinDataGridViewTextBoxColumn.HeaderText = "time_in";
             this.timeinDataGridViewTextBoxColumn.Name = "timeinDataGridViewTextBoxColumn";
             // 
+            // button1
+            // 
+            this.button1.Location = new System.Drawing.Point(49, 563);
+            this.button1.Name = "button1";
+            this.button1.Size = new System.Drawing.Size(104, 23);
+            this.button1.TabIndex = 1;
+            this.button1.Text = "Авиакомпании";
+            this.button1.UseVisualStyleBackColor = true;
+            // 
+            // button2
+            // 
+            this.button2.Location = new System.Drawing.Point(192, 563);
+            this.button2.Name = "button2";
+            this.button2.Size = new System.Drawing.Size(75, 23);
+            this.button2.TabIndex = 2;
+            this.button2.Text = "Добавить";
+            this.button2.UseVisualStyleBackColor = true;
+            // 
+            // button3
+            // 
+            this.button3.Location = new System.Drawing.Point(311, 563);
+            this.button3.Name = "button3";
+            this.button3.Size = new System.Drawing.Size(128, 23);
+            this.button3.TabIndex = 3;
+            this.button3.Text = "Удалить изменения";
+            this.button3.UseVisualStyleBackColor = true;
+            // 
             // Form1
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(813, 571);
+            this.ClientSize = new System.Drawing.Size(786, 606);
+            this.Controls.Add(this.button3);
+            this.Controls.Add(this.button2);
+            this.Controls.Add(this.button1);
             this.Controls.Add(this.dataGridView1);
             this.Name = "Form1";
             this.Text = "Form1";
@@ -149,6 +183,9 @@ namespace Lab1_
         private System.Windows.Forms.DataGridViewTextBoxColumn towntoDataGridViewTextBoxColumn;
         private System.Windows.Forms.DataGridViewTextBoxColumn timeoutDataGridViewTextBoxColumn;
         private System.Windows.Forms.DataGridViewTextBoxColumn timeinDataGridViewTextBoxColumn;
+        private System.Windows.Forms.Button button1;
+        private System.Windows.Forms.Button button2;
+        private System.Windows.Forms.Button button3;
     }
 }
 

+ 1 - 1
Lab1_.sln

@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
 # Visual Studio Version 16
 VisualStudioVersion = 16.0.32630.194
 MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lab1_", "Lab1_.csproj", "{FBA510ED-2617-4E75-B86F-36464CE941A4}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lab2_", "Lab2_.csproj", "{FBA510ED-2617-4E75-B86F-36464CE941A4}"
 EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution

+ 0 - 0
Lab1_.csproj → Lab2_.csproj