git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube...
authorBellai Ádám <USER\adam.bellai>
Mon, 2 Oct 2017 12:46:31 +0000 (12:46 +0000)
committerBellai Ádám <USER\adam.bellai>
Mon, 2 Oct 2017 12:46:31 +0000 (12:46 +0000)
client/Maestro/ArchiveMetadata.Designer.cs
client/PlanAIRClient/TrafficIDSelector.cs

index 0c7b7136fbf791beea8c18b295d3562e7b2a93ce..5adba67e376c6ea27ec6f3c5b825fa6daed82126 100644 (file)
             this.textBox_mediaDescription = new System.Windows.Forms.TextBox();\r
             this.label_stuffTitle = new System.Windows.Forms.Label();\r
             this.groupBox1 = new System.Windows.Forms.GroupBox();\r
-            this.button_cancel = new System.Windows.Forms.Button();\r
-            this.button_ok = new System.Windows.Forms.Button();\r
-            this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();\r
+            this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();\r
+            this.buttonCancel = new System.Windows.Forms.Button();\r
+            this.button_Ok = new System.Windows.Forms.Button();\r
             this.groupBox1.SuspendLayout();\r
-            this.flowLayoutPanel1.SuspendLayout();\r
+            this.tableLayoutPanel1.SuspendLayout();\r
             this.SuspendLayout();\r
             // \r
             // label_stuffID\r
             // \r
-            this.label_stuffID.AutoSize = true;\r
-            this.label_stuffID.Location = new System.Drawing.Point(3, 0);\r
+            this.label_stuffID.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\r
+            this.label_stuffID.Location = new System.Drawing.Point(3, 7);\r
             this.label_stuffID.Name = "label_stuffID";\r
             this.label_stuffID.Size = new System.Drawing.Size(87, 13);\r
             this.label_stuffID.TabIndex = 0;\r
@@ -55,8 +55,8 @@
             // \r
             // label_stuffDescription\r
             // \r
-            this.label_stuffDescription.AutoSize = true;\r
-            this.label_stuffDescription.Location = new System.Drawing.Point(3, 78);\r
+            this.label_stuffDescription.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\r
+            this.label_stuffDescription.Location = new System.Drawing.Point(3, 97);\r
             this.label_stuffDescription.Name = "label_stuffDescription";\r
             this.label_stuffDescription.Size = new System.Drawing.Size(66, 13);\r
             this.label_stuffDescription.TabIndex = 2;\r
@@ -64,8 +64,8 @@
             // \r
             // label_mediaID\r
             // \r
-            this.label_mediaID.AutoSize = true;\r
-            this.label_mediaID.Location = new System.Drawing.Point(3, 145);\r
+            this.label_mediaID.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\r
+            this.label_mediaID.Location = new System.Drawing.Point(3, 171);\r
             this.label_mediaID.Name = "label_mediaID";\r
             this.label_mediaID.Size = new System.Drawing.Size(86, 13);\r
             this.label_mediaID.TabIndex = 3;\r
@@ -73,8 +73,8 @@
             // \r
             // label_mediaTitle\r
             // \r
-            this.label_mediaTitle.AutoSize = true;\r
-            this.label_mediaTitle.Location = new System.Drawing.Point(3, 184);\r
+            this.label_mediaTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\r
+            this.label_mediaTitle.Location = new System.Drawing.Point(3, 211);\r
             this.label_mediaTitle.Name = "label_mediaTitle";\r
             this.label_mediaTitle.Size = new System.Drawing.Size(57, 13);\r
             this.label_mediaTitle.TabIndex = 4;\r
@@ -82,8 +82,9 @@
             // \r
             // label_mediaDescription\r
             // \r
+            this.label_mediaDescription.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\r
             this.label_mediaDescription.AutoSize = true;\r
-            this.label_mediaDescription.Location = new System.Drawing.Point(3, 223);\r
+            this.label_mediaDescription.Location = new System.Drawing.Point(3, 251);\r
             this.label_mediaDescription.Name = "label_mediaDescription";\r
             this.label_mediaDescription.Size = new System.Drawing.Size(65, 13);\r
             this.label_mediaDescription.TabIndex = 5;\r
             // \r
             // textBox_stuffID\r
             // \r
-            this.textBox_stuffID.Location = new System.Drawing.Point(3, 16);\r
+            this.textBox_stuffID.Location = new System.Drawing.Point(3, 23);\r
             this.textBox_stuffID.Name = "textBox_stuffID";\r
             this.textBox_stuffID.Size = new System.Drawing.Size(223, 20);\r
             this.textBox_stuffID.TabIndex = 6;\r
             // \r
             // textBox_stuffTitle\r
             // \r
-            this.textBox_stuffTitle.Location = new System.Drawing.Point(3, 55);\r
+            this.textBox_stuffTitle.Location = new System.Drawing.Point(3, 63);\r
             this.textBox_stuffTitle.Name = "textBox_stuffTitle";\r
             this.textBox_stuffTitle.Size = new System.Drawing.Size(223, 20);\r
             this.textBox_stuffTitle.TabIndex = 7;\r
             // \r
             // textBox_stuffDescription\r
             // \r
-            this.textBox_stuffDescription.Location = new System.Drawing.Point(3, 94);\r
+            this.textBox_stuffDescription.Location = new System.Drawing.Point(3, 113);\r
             this.textBox_stuffDescription.Multiline = true;\r
             this.textBox_stuffDescription.Name = "textBox_stuffDescription";\r
             this.textBox_stuffDescription.ScrollBars = System.Windows.Forms.ScrollBars.Both;\r
             // \r
             // textBox_mediaID\r
             // \r
-            this.textBox_mediaID.Location = new System.Drawing.Point(3, 161);\r
+            this.textBox_mediaID.Location = new System.Drawing.Point(3, 187);\r
             this.textBox_mediaID.Name = "textBox_mediaID";\r
             this.textBox_mediaID.Size = new System.Drawing.Size(223, 20);\r
             this.textBox_mediaID.TabIndex = 9;\r
             // \r
             // textBox_mediaTitle\r
             // \r
-            this.textBox_mediaTitle.Location = new System.Drawing.Point(3, 200);\r
+            this.textBox_mediaTitle.Location = new System.Drawing.Point(3, 227);\r
             this.textBox_mediaTitle.Name = "textBox_mediaTitle";\r
             this.textBox_mediaTitle.Size = new System.Drawing.Size(223, 20);\r
             this.textBox_mediaTitle.TabIndex = 10;\r
             // \r
             // textBox_mediaDescription\r
             // \r
-            this.textBox_mediaDescription.Location = new System.Drawing.Point(3, 239);\r
+            this.textBox_mediaDescription.Location = new System.Drawing.Point(3, 267);\r
             this.textBox_mediaDescription.Multiline = true;\r
             this.textBox_mediaDescription.Name = "textBox_mediaDescription";\r
             this.textBox_mediaDescription.ScrollBars = System.Windows.Forms.ScrollBars.Both;\r
             // \r
             // label_stuffTitle\r
             // \r
-            this.label_stuffTitle.AutoSize = true;\r
-            this.label_stuffTitle.Location = new System.Drawing.Point(3, 39);\r
+            this.label_stuffTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\r
+            this.label_stuffTitle.Location = new System.Drawing.Point(3, 47);\r
             this.label_stuffTitle.Name = "label_stuffTitle";\r
             this.label_stuffTitle.Size = new System.Drawing.Size(58, 13);\r
             this.label_stuffTitle.TabIndex = 1;\r
             // \r
             // groupBox1\r
             // \r
-            this.groupBox1.Controls.Add(this.button_cancel);\r
-            this.groupBox1.Controls.Add(this.button_ok);\r
+            this.groupBox1.Controls.Add(this.button_Ok);\r
+            this.groupBox1.Controls.Add(this.buttonCancel);\r
             this.groupBox1.Dock = System.Windows.Forms.DockStyle.Bottom;\r
-            this.groupBox1.Location = new System.Drawing.Point(0, 330);\r
+            this.groupBox1.Location = new System.Drawing.Point(0, 413);\r
             this.groupBox1.Name = "groupBox1";\r
-            this.groupBox1.Size = new System.Drawing.Size(236, 58);\r
+            this.groupBox1.Size = new System.Drawing.Size(244, 48);\r
             this.groupBox1.TabIndex = 1;\r
             this.groupBox1.TabStop = false;\r
             // \r
-            // button_cancel\r
-            // \r
-            this.button_cancel.Anchor = System.Windows.Forms.AnchorStyles.Right;\r
-            this.button_cancel.ForeColor = System.Drawing.SystemColors.ControlText;\r
-            this.button_cancel.Location = new System.Drawing.Point(83, 16);\r
-            this.button_cancel.Name = "button_cancel";\r
-            this.button_cancel.Size = new System.Drawing.Size(75, 39);\r
-            this.button_cancel.TabIndex = 0;\r
-            this.button_cancel.Text = "Cancel";\r
-            this.button_cancel.UseVisualStyleBackColor = true;\r
-            this.button_cancel.Click += new System.EventHandler(this.button_cancel_Click);\r
-            // \r
-            // button_ok\r
-            // \r
-            this.button_ok.Anchor = System.Windows.Forms.AnchorStyles.Right;\r
-            this.button_ok.Location = new System.Drawing.Point(158, 16);\r
-            this.button_ok.Name = "button_ok";\r
-            this.button_ok.Size = new System.Drawing.Size(75, 39);\r
-            this.button_ok.TabIndex = 1;\r
-            this.button_ok.Text = "OK";\r
-            this.button_ok.UseVisualStyleBackColor = true;\r
-            this.button_ok.Click += new System.EventHandler(this.button_ok_Click);\r
-            // \r
-            // flowLayoutPanel1\r
-            // \r
-            this.flowLayoutPanel1.Controls.Add(this.label_stuffID);\r
-            this.flowLayoutPanel1.Controls.Add(this.textBox_stuffID);\r
-            this.flowLayoutPanel1.Controls.Add(this.label_stuffTitle);\r
-            this.flowLayoutPanel1.Controls.Add(this.textBox_stuffTitle);\r
-            this.flowLayoutPanel1.Controls.Add(this.label_stuffDescription);\r
-            this.flowLayoutPanel1.Controls.Add(this.textBox_stuffDescription);\r
-            this.flowLayoutPanel1.Controls.Add(this.label_mediaID);\r
-            this.flowLayoutPanel1.Controls.Add(this.textBox_mediaID);\r
-            this.flowLayoutPanel1.Controls.Add(this.label_mediaTitle);\r
-            this.flowLayoutPanel1.Controls.Add(this.textBox_mediaTitle);\r
-            this.flowLayoutPanel1.Controls.Add(this.label_mediaDescription);\r
-            this.flowLayoutPanel1.Controls.Add(this.textBox_mediaDescription);\r
-            this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;\r
-            this.flowLayoutPanel1.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;\r
-            this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 0);\r
-            this.flowLayoutPanel1.Name = "flowLayoutPanel1";\r
-            this.flowLayoutPanel1.Size = new System.Drawing.Size(236, 330);\r
-            this.flowLayoutPanel1.TabIndex = 2;\r
+            // tableLayoutPanel1\r
+            // \r
+            this.tableLayoutPanel1.ColumnCount = 1;\r
+            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));\r
+            this.tableLayoutPanel1.Controls.Add(this.textBox_mediaDescription, 0, 11);\r
+            this.tableLayoutPanel1.Controls.Add(this.textBox_mediaTitle, 0, 9);\r
+            this.tableLayoutPanel1.Controls.Add(this.label_mediaTitle, 0, 8);\r
+            this.tableLayoutPanel1.Controls.Add(this.textBox_mediaID, 0, 7);\r
+            this.tableLayoutPanel1.Controls.Add(this.label_mediaID, 0, 6);\r
+            this.tableLayoutPanel1.Controls.Add(this.textBox_stuffDescription, 0, 5);\r
+            this.tableLayoutPanel1.Controls.Add(this.textBox_stuffTitle, 0, 3);\r
+            this.tableLayoutPanel1.Controls.Add(this.textBox_stuffID, 0, 1);\r
+            this.tableLayoutPanel1.Controls.Add(this.label_stuffID, 0, 0);\r
+            this.tableLayoutPanel1.Controls.Add(this.label_mediaDescription, 0, 10);\r
+            this.tableLayoutPanel1.Controls.Add(this.label_stuffDescription, 0, 4);\r
+            this.tableLayoutPanel1.Controls.Add(this.label_stuffTitle, 0, 2);\r
+            this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;\r
+            this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);\r
+            this.tableLayoutPanel1.Name = "tableLayoutPanel1";\r
+            this.tableLayoutPanel1.RowCount = 12;\r
+            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
+            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
+            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
+            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
+            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));\r
+            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 54F));\r
+            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
+            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
+            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
+            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
+            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));\r
+            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 54F));\r
+            this.tableLayoutPanel1.Size = new System.Drawing.Size(244, 413);\r
+            this.tableLayoutPanel1.TabIndex = 3;\r
+            // \r
+            // buttonCancel\r
+            // \r
+            this.buttonCancel.Anchor = System.Windows.Forms.AnchorStyles.Right;\r
+            this.buttonCancel.Location = new System.Drawing.Point(88, 13);\r
+            this.buttonCancel.Name = "buttonCancel";\r
+            this.buttonCancel.Size = new System.Drawing.Size(75, 23);\r
+            this.buttonCancel.TabIndex = 0;\r
+            this.buttonCancel.Text = "Mégse";\r
+            this.buttonCancel.UseVisualStyleBackColor = true;\r
+            // \r
+            // button_Ok\r
+            // \r
+            this.button_Ok.Anchor = System.Windows.Forms.AnchorStyles.Right;\r
+            this.button_Ok.Location = new System.Drawing.Point(167, 13);\r
+            this.button_Ok.Name = "button_Ok";\r
+            this.button_Ok.Size = new System.Drawing.Size(75, 23);\r
+            this.button_Ok.TabIndex = 1;\r
+            this.button_Ok.Text = "Rendben";\r
+            this.button_Ok.UseVisualStyleBackColor = true;\r
             // \r
             // ArchiveMetadata\r
             // \r
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);\r
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;\r
-            this.ClientSize = new System.Drawing.Size(236, 388);\r
-            this.Controls.Add(this.flowLayoutPanel1);\r
+            this.ClientSize = new System.Drawing.Size(244, 461);\r
+            this.Controls.Add(this.tableLayoutPanel1);\r
             this.Controls.Add(this.groupBox1);\r
             this.Icon = global::Maestro.Properties.Resources.AppIcon;\r
             this.Name = "ArchiveMetadata";\r
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;\r
             this.Text = "Metaadat";\r
             this.groupBox1.ResumeLayout(false);\r
-            this.flowLayoutPanel1.ResumeLayout(false);\r
-            this.flowLayoutPanel1.PerformLayout();\r
+            this.tableLayoutPanel1.ResumeLayout(false);\r
+            this.tableLayoutPanel1.PerformLayout();\r
             this.ResumeLayout(false);\r
 \r
         }\r
         private System.Windows.Forms.TextBox textBox_mediaTitle;\r
         private System.Windows.Forms.TextBox textBox_mediaDescription;\r
         private System.Windows.Forms.GroupBox groupBox1;\r
-        private System.Windows.Forms.Button button_cancel;\r
-        private System.Windows.Forms.Button button_ok;\r
-        private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;\r
+        private System.Windows.Forms.Button button_Ok;\r
+        private System.Windows.Forms.Button buttonCancel;\r
+        private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;\r
     }\r
 }
\ No newline at end of file
index ef614ff02072f3416267baf6361bcc953c6d94b6..acc44da097a2397bac864769fc458e2920251133 100644 (file)
@@ -121,7 +121,7 @@ namespace TrafficClient {
         }\r
 \r
         private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) {\r
-            if (e.RowIndex == -1)\r
+            if (e.RowIndex == -1 || e.ColumnIndex != 0)\r
                 return;\r
             DataGridView gridView = sender as DataGridView;\r
             if (gridView == null)\r
@@ -129,6 +129,8 @@ namespace TrafficClient {
             //nincs multiselect\r
             DataGridViewCell checkBoxCell = gridView.SelectedCells[0];\r
             SetCheckBoxAndInvokeIDChangeEvent(checkBoxCell, e.RowIndex);\r
+            //bool isChecked = (bool)checkBoxCell.Value;\r
+            //checkBoxCell.Value = !isChecked;\r
         }\r
 \r
         private void SetCheckBoxAndInvokeIDChangeEvent(DataGridViewCell checkBoxCell, int rowIndex) {\r