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

index ce96f7518cafaa4ffb85c6a13157eafc93a43263..7d69dc519beb6a2cd3cd30b12d9f91974bd626ec 100644 (file)
@@ -37,9 +37,9 @@
             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.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.buttonCancel = new System.Windows.Forms.Button();\r
+            this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();\r
             this.groupBox1.SuspendLayout();\r
             this.tableLayoutPanel1.SuspendLayout();\r
             this.SuspendLayout();\r
             // \r
             // textBox_stuffID\r
             // \r
+            this.textBox_stuffID.Dock = System.Windows.Forms.DockStyle.Fill;\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.Size = new System.Drawing.Size(238, 20);\r
             this.textBox_stuffID.TabIndex = 6;\r
             // \r
             // textBox_stuffTitle\r
             // \r
+            this.textBox_stuffTitle.Dock = System.Windows.Forms.DockStyle.Fill;\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.Size = new System.Drawing.Size(238, 20);\r
             this.textBox_stuffTitle.TabIndex = 7;\r
             // \r
             // textBox_stuffDescription\r
             // \r
+            this.textBox_stuffDescription.Dock = System.Windows.Forms.DockStyle.Fill;\r
             this.textBox_stuffDescription.Location = new System.Drawing.Point(3, 103);\r
             this.textBox_stuffDescription.Multiline = true;\r
             this.textBox_stuffDescription.Name = "textBox_stuffDescription";\r
             this.textBox_stuffDescription.ScrollBars = System.Windows.Forms.ScrollBars.Both;\r
-            this.textBox_stuffDescription.Size = new System.Drawing.Size(223, 48);\r
+            this.textBox_stuffDescription.Size = new System.Drawing.Size(238, 48);\r
             this.textBox_stuffDescription.TabIndex = 8;\r
             // \r
             // textBox_mediaID\r
             // \r
+            this.textBox_mediaID.Dock = System.Windows.Forms.DockStyle.Fill;\r
             this.textBox_mediaID.Location = new System.Drawing.Point(3, 177);\r
             this.textBox_mediaID.Name = "textBox_mediaID";\r
-            this.textBox_mediaID.Size = new System.Drawing.Size(223, 20);\r
+            this.textBox_mediaID.Size = new System.Drawing.Size(238, 20);\r
             this.textBox_mediaID.TabIndex = 9;\r
             // \r
             // textBox_mediaTitle\r
             // \r
+            this.textBox_mediaTitle.Dock = System.Windows.Forms.DockStyle.Fill;\r
             this.textBox_mediaTitle.Location = new System.Drawing.Point(3, 217);\r
             this.textBox_mediaTitle.Name = "textBox_mediaTitle";\r
-            this.textBox_mediaTitle.Size = new System.Drawing.Size(223, 20);\r
+            this.textBox_mediaTitle.Size = new System.Drawing.Size(238, 20);\r
             this.textBox_mediaTitle.TabIndex = 10;\r
             // \r
             // textBox_mediaDescription\r
             // \r
+            this.textBox_mediaDescription.Dock = System.Windows.Forms.DockStyle.Fill;\r
             this.textBox_mediaDescription.Location = new System.Drawing.Point(3, 257);\r
             this.textBox_mediaDescription.Multiline = true;\r
             this.textBox_mediaDescription.Name = "textBox_mediaDescription";\r
             this.textBox_mediaDescription.ScrollBars = System.Windows.Forms.ScrollBars.Both;\r
-            this.textBox_mediaDescription.Size = new System.Drawing.Size(223, 54);\r
+            this.textBox_mediaDescription.Size = new System.Drawing.Size(238, 153);\r
             this.textBox_mediaDescription.TabIndex = 11;\r
             // \r
             // label_stuffTitle\r
             this.groupBox1.TabIndex = 1;\r
             this.groupBox1.TabStop = false;\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, 19);\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
+            this.button_Ok.Click += new System.EventHandler(this.button_Ok_Click_1);\r
+            // \r
+            // buttonCancel\r
+            // \r
+            this.buttonCancel.Anchor = System.Windows.Forms.AnchorStyles.Right;\r
+            this.buttonCancel.Location = new System.Drawing.Point(88, 19);\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
+            this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);\r
+            // \r
             // tableLayoutPanel1\r
             // \r
             this.tableLayoutPanel1.ColumnCount = 1;\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, 19);\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
-            this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_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(167, 19);\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
-            this.button_Ok.Click += new System.EventHandler(this.button_Ok_Click_1);\r
-            // \r
             // ArchiveMetadata\r
             // \r
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);\r
index 9ea1b4af170fc220ef383987fdfdc8f6a3f5f5d4..c944991cc38ef375b6501fcd4d68f096127e4322 100644 (file)
@@ -172,10 +172,14 @@ namespace Maestro {
             string query = selectedSources[0];\r
             int separatorPosition = query.IndexOf("-") < 0 ? query.IndexOf("_") : query.IndexOf("-");\r
             int dotPosition = query.IndexOf(".");\r
-            if (dotPosition < 0) \r
+            if (separatorPosition > 0) {\r
                 startingName = separatorPosition < 0 ? query : query.Substring(0, separatorPosition);\r
-            else\r
-                startingName = query.Substring(0, dotPosition);\r
+            } else {\r
+                if (dotPosition < 0)\r
+                    startingName = separatorPosition < 0 ? query : query.Substring(0, separatorPosition);\r
+                else\r
+                    startingName = query.Substring(0, dotPosition);\r
+            }\r
         }\r
 \r
         private void SetTextSelectedSourceTextFromCheckBoxes() {\r