diff --git a/Renamer/Renamer.v11.suo b/Renamer/Renamer.v11.suo new file mode 100644 index 0000000..80fc835 Binary files /dev/null and b/Renamer/Renamer.v11.suo differ diff --git a/Renamer/Renamer/Form1.Designer.cs b/Renamer/Renamer/Form1.Designer.cs index e4ef845..226cbcd 100644 --- a/Renamer/Renamer/Form1.Designer.cs +++ b/Renamer/Renamer/Form1.Designer.cs @@ -36,38 +36,107 @@ private void InitializeComponent() this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); - this.checkBox1 = new System.Windows.Forms.CheckBox(); - this.checkBox2 = new System.Windows.Forms.CheckBox(); - this.checkBox3 = new System.Windows.Forms.CheckBox(); - this.button2 = new System.Windows.Forms.Button(); - this.panel1 = new System.Windows.Forms.Panel(); - this.label4 = new System.Windows.Forms.Label(); + this.BrowseItDude = new System.Windows.Forms.Panel(); this.button3 = new System.Windows.Forms.Button(); - this.panel2 = new System.Windows.Forms.Panel(); + this.label4 = new System.Windows.Forms.Label(); + this.Renaming = new System.Windows.Forms.Panel(); this.button4 = new System.Windows.Forms.Button(); + this.label6 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.timer1 = new System.Windows.Forms.Timer(this.components); - this.label6 = new System.Windows.Forms.Label(); this.timer2 = new System.Windows.Forms.Timer(this.components); - this.label7 = new System.Windows.Forms.Label(); - this.checkBox4 = new System.Windows.Forms.CheckBox(); this.timer3 = new System.Windows.Forms.Timer(this.components); - this.panel1.SuspendLayout(); - this.panel2.SuspendLayout(); + this.mainMenu1 = new System.Windows.Forms.MainMenu(this.components); + this.menuItem1 = new System.Windows.Forms.MenuItem(); + this.menuItem2 = new System.Windows.Forms.MenuItem(); + this.menuItem4 = new System.Windows.Forms.MenuItem(); + this.menuItem3 = new System.Windows.Forms.MenuItem(); + this.menuItem5 = new System.Windows.Forms.MenuItem(); + this.menuItem6 = new System.Windows.Forms.MenuItem(); + this.menuItem7 = new System.Windows.Forms.MenuItem(); + this.menuItem9 = new System.Windows.Forms.MenuItem(); + this.menuItem8 = new System.Windows.Forms.MenuItem(); + this.menuItem10 = new System.Windows.Forms.MenuItem(); + this.menuItem11 = new System.Windows.Forms.MenuItem(); + this.menuItem15 = new System.Windows.Forms.MenuItem(); + this.menuItem12 = new System.Windows.Forms.MenuItem(); + this.menuItem13 = new System.Windows.Forms.MenuItem(); + this.menuItem14 = new System.Windows.Forms.MenuItem(); + this.Replacer = new System.Windows.Forms.Panel(); + this.ExitButton = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.button5 = new System.Windows.Forms.Button(); + this.label10 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.Adder = new System.Windows.Forms.Panel(); + this.label26 = new System.Windows.Forms.Label(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.label14 = new System.Windows.Forms.Label(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.button6 = new System.Windows.Forms.Button(); + this.label15 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.Remover = new System.Windows.Forms.Panel(); + this.label25 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.button7 = new System.Windows.Forms.Button(); + this.label18 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.filePath = new System.Windows.Forms.Panel(); + this.richTextBox1 = new System.Windows.Forms.RichTextBox(); + this.label23 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label24 = new System.Windows.Forms.Label(); + this.label19 = new System.Windows.Forms.Label(); + this.Settings = new System.Windows.Forms.Panel(); + this.button2 = new System.Windows.Forms.Button(); + this.label29 = new System.Windows.Forms.Label(); + this.label30 = new System.Windows.Forms.Label(); + this.checkBox1 = new System.Windows.Forms.CheckBox(); + this.label27 = new System.Windows.Forms.Label(); + this.checkBox2 = new System.Windows.Forms.CheckBox(); + this.menuItem16 = new System.Windows.Forms.MenuItem(); + this.menuItem17 = new System.Windows.Forms.MenuItem(); + this.menuItem18 = new System.Windows.Forms.MenuItem(); + this.menuItem19 = new System.Windows.Forms.MenuItem(); + this.menuItem20 = new System.Windows.Forms.MenuItem(); + this.About = new System.Windows.Forms.Panel(); + this.label22 = new System.Windows.Forms.Label(); + this.label28 = new System.Windows.Forms.Label(); + this.label33 = new System.Windows.Forms.Label(); + this.label34 = new System.Windows.Forms.Label(); + this.label35 = new System.Windows.Forms.Label(); + this.label36 = new System.Windows.Forms.Label(); + this.linkLabel1 = new System.Windows.Forms.LinkLabel(); + this.BrowseItDude.SuspendLayout(); + this.Renaming.SuspendLayout(); + this.Replacer.SuspendLayout(); + this.Adder.SuspendLayout(); + this.Remover.SuspendLayout(); + this.filePath.SuspendLayout(); + this.Settings.SuspendLayout(); + this.About.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.BackColor = System.Drawing.SystemColors.ButtonHighlight; - this.textBox1.Location = new System.Drawing.Point(105, 71); + this.textBox1.Location = new System.Drawing.Point(98, 71); this.textBox1.Name = "textBox1"; - this.textBox1.ReadOnly = true; this.textBox1.Size = new System.Drawing.Size(393, 20); this.textBox1.TabIndex = 0; + this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged); // // button1 // - this.button1.Location = new System.Drawing.Point(509, 69); + this.button1.Location = new System.Drawing.Point(502, 69); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75, 23); this.button1.TabIndex = 1; @@ -78,7 +147,7 @@ private void InitializeComponent() // label1 // this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(16, 74); + this.label1.Location = new System.Drawing.Point(9, 74); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(83, 13); this.label1.TabIndex = 2; @@ -88,7 +157,7 @@ private void InitializeComponent() // this.label2.Font = new System.Drawing.Font("Consolas", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); - this.label2.Location = new System.Drawing.Point(19, 9); + this.label2.Location = new System.Drawing.Point(12, 9); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(565, 41); this.label2.TabIndex = 3; @@ -98,71 +167,39 @@ private void InitializeComponent() // label3 // this.label3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; - this.label3.Location = new System.Drawing.Point(156, 132); + this.label3.Location = new System.Drawing.Point(149, 114); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(300, 2); this.label3.TabIndex = 4; // - // checkBox1 - // - this.checkBox1.AutoSize = true; - this.checkBox1.Location = new System.Drawing.Point(110, 101); - this.checkBox1.Name = "checkBox1"; - this.checkBox1.Size = new System.Drawing.Size(71, 17); - this.checkBox1.TabIndex = 5; - this.checkBox1.Text = "Capitalize"; - this.checkBox1.UseVisualStyleBackColor = true; - this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox3_CheckedChanged); - // - // checkBox2 - // - this.checkBox2.AutoSize = true; - this.checkBox2.Location = new System.Drawing.Point(187, 101); - this.checkBox2.Name = "checkBox2"; - this.checkBox2.Size = new System.Drawing.Size(88, 17); - this.checkBox2.TabIndex = 5; - this.checkBox2.Text = "Dash2Space"; - this.checkBox2.UseVisualStyleBackColor = true; - this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox3_CheckedChanged); + // BrowseItDude // - // checkBox3 - // - this.checkBox3.AutoSize = true; - this.checkBox3.Location = new System.Drawing.Point(281, 101); - this.checkBox3.Name = "checkBox3"; - this.checkBox3.Size = new System.Drawing.Size(108, 17); - this.checkBox3.TabIndex = 5; - this.checkBox3.Text = "Underline2Space"; - this.checkBox3.UseVisualStyleBackColor = true; - this.checkBox3.CheckedChanged += new System.EventHandler(this.checkBox3_CheckedChanged); - // - // button2 - // - this.button2.Location = new System.Drawing.Point(242, 146); - this.button2.Name = "button2"; - this.button2.Size = new System.Drawing.Size(118, 23); - this.button2.TabIndex = 6; - this.button2.Text = "Rename \'Em All!"; - this.button2.UseVisualStyleBackColor = true; - this.button2.Click += new System.EventHandler(this.button2_Click); + this.BrowseItDude.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.BrowseItDude.Controls.Add(this.button3); + this.BrowseItDude.Controls.Add(this.label4); + this.BrowseItDude.Location = new System.Drawing.Point(669, 10); + this.BrowseItDude.Name = "BrowseItDude"; + this.BrowseItDude.Size = new System.Drawing.Size(612, 233); + this.BrowseItDude.TabIndex = 7; + this.BrowseItDude.Visible = false; // - // panel1 + // button3 // - this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.panel1.Controls.Add(this.button3); - this.panel1.Controls.Add(this.label4); - this.panel1.Location = new System.Drawing.Point(585, 173); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(565, 157); - this.panel1.TabIndex = 7; - this.panel1.Visible = false; + this.button3.Font = new System.Drawing.Font("Consolas", 9.75F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.button3.Location = new System.Drawing.Point(266, 143); + this.button3.Name = "button3"; + this.button3.Size = new System.Drawing.Size(75, 23); + this.button3.TabIndex = 1; + this.button3.Text = "Back"; + this.button3.UseVisualStyleBackColor = true; + this.button3.Click += new System.EventHandler(this.button3_Click); // // label4 // this.label4.AutoSize = true; this.label4.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); - this.label4.Location = new System.Drawing.Point(111, 38); + this.label4.Location = new System.Drawing.Point(137, 37); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(350, 66); this.label4.TabIndex = 0; @@ -170,34 +207,23 @@ private void InitializeComponent() "ton."; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // - // button3 - // - this.button3.Font = new System.Drawing.Font("Consolas", 9.75F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.button3.Location = new System.Drawing.Point(236, 125); - this.button3.Name = "button3"; - this.button3.Size = new System.Drawing.Size(75, 23); - this.button3.TabIndex = 1; - this.button3.Text = "Back"; - this.button3.UseVisualStyleBackColor = true; - this.button3.Click += new System.EventHandler(this.button3_Click); - // - // panel2 + // Renaming // - this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.panel2.Controls.Add(this.button4); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(590, 12); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(565, 157); - this.panel2.TabIndex = 7; - this.panel2.Visible = false; + this.Renaming.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.Renaming.Controls.Add(this.button4); + this.Renaming.Controls.Add(this.label6); + this.Renaming.Controls.Add(this.label7); + this.Renaming.Controls.Add(this.label5); + this.Renaming.Location = new System.Drawing.Point(719, 253); + this.Renaming.Name = "Renaming"; + this.Renaming.Size = new System.Drawing.Size(612, 233); + this.Renaming.TabIndex = 7; + this.Renaming.Visible = false; // // button4 // this.button4.Font = new System.Drawing.Font("Consolas", 9.75F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.button4.Location = new System.Drawing.Point(210, 125); + this.button4.Location = new System.Drawing.Point(230, 149); this.button4.Name = "button4"; this.button4.Size = new System.Drawing.Size(146, 23); this.button4.TabIndex = 1; @@ -205,12 +231,32 @@ private void InitializeComponent() this.button4.UseVisualStyleBackColor = true; this.button4.Click += new System.EventHandler(this.button4_Click); // + // label6 + // + this.label6.Font = new System.Drawing.Font("Consolas", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.label6.Location = new System.Drawing.Point(25, 83); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(559, 32); + this.label6.TabIndex = 0; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label7 + // + this.label7.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.label7.Location = new System.Drawing.Point(237, 51); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(135, 32); + this.label7.TabIndex = 0; + this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // // label5 // this.label5.AutoSize = true; this.label5.Font = new System.Drawing.Font("Consolas", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); - this.label5.Location = new System.Drawing.Point(217, 6); + this.label5.Location = new System.Drawing.Point(237, 6); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(135, 32); this.label5.TabIndex = 0; @@ -222,75 +268,774 @@ private void InitializeComponent() this.timer1.Interval = 300; this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // - // label6 - // - this.label6.Font = new System.Drawing.Font("Consolas", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); - this.label6.Location = new System.Drawing.Point(3, 88); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(559, 32); - this.label6.TabIndex = 0; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // // timer2 // this.timer2.Interval = 1; this.timer2.Tick += new System.EventHandler(this.timer2_Tick); // - // label7 + // timer3 // - this.label7.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); - this.label7.Location = new System.Drawing.Point(217, 51); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(135, 32); - this.label7.TabIndex = 0; - this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.timer3.Interval = 5000; + this.timer3.Tick += new System.EventHandler(this.timer3_Tick); // - // checkBox4 + // mainMenu1 // - this.checkBox4.AutoSize = true; - this.checkBox4.Location = new System.Drawing.Point(395, 101); - this.checkBox4.Name = "checkBox4"; - this.checkBox4.Size = new System.Drawing.Size(102, 17); - this.checkBox4.TabIndex = 5; - this.checkBox4.Text = "Underline2Dash"; - this.checkBox4.UseVisualStyleBackColor = true; - this.checkBox4.CheckedChanged += new System.EventHandler(this.checkBox3_CheckedChanged); + this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { + this.menuItem1, + this.menuItem6}); // - // timer3 + // menuItem1 // - this.timer3.Interval = 5000; - this.timer3.Tick += new System.EventHandler(this.timer3_Tick); + this.menuItem1.Index = 0; + this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { + this.menuItem2, + this.menuItem16, + this.menuItem3, + this.menuItem4, + this.menuItem5}); + this.menuItem1.Text = "File"; + // + // menuItem2 + // + this.menuItem2.Index = 0; + this.menuItem2.Text = "Browse..."; + this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click); + // + // menuItem4 + // + this.menuItem4.Index = 3; + this.menuItem4.Text = "-"; + // + // menuItem3 + // + this.menuItem3.Index = 2; + this.menuItem3.Text = "About..."; + this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click); + // + // menuItem5 + // + this.menuItem5.Index = 4; + this.menuItem5.Text = "Exit"; + this.menuItem5.Click += new System.EventHandler(this.menuItem5_Click); + // + // menuItem6 + // + this.menuItem6.Index = 1; + this.menuItem6.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { + this.menuItem7, + this.menuItem9, + this.menuItem8, + this.menuItem10, + this.menuItem11, + this.menuItem15, + this.menuItem12, + this.menuItem13, + this.menuItem14, + this.menuItem17, + this.menuItem18, + this.menuItem20, + this.menuItem19}); + this.menuItem6.Text = "Operations"; + // + // menuItem7 + // + this.menuItem7.Index = 0; + this.menuItem7.Text = "Replace..."; + this.menuItem7.Click += new System.EventHandler(this.menuItem7_Click); + // + // menuItem9 + // + this.menuItem9.Index = 1; + this.menuItem9.Text = "Add..."; + this.menuItem9.Click += new System.EventHandler(this.menuItem9_Click); + // + // menuItem8 + // + this.menuItem8.Index = 2; + this.menuItem8.Text = "Remove..."; + this.menuItem8.Click += new System.EventHandler(this.menuItem8_Click); + // + // menuItem10 + // + this.menuItem10.Index = 3; + this.menuItem10.Text = "-"; + // + // menuItem11 + // + this.menuItem11.Index = 4; + this.menuItem11.Text = "All Uppercase"; + this.menuItem11.Click += new System.EventHandler(this.menuItem11_Click); + // + // menuItem15 + // + this.menuItem15.Index = 5; + this.menuItem15.Text = "All Capitalized"; + this.menuItem15.Click += new System.EventHandler(this.menuItem15_Click); + // + // menuItem12 + // + this.menuItem12.Index = 6; + this.menuItem12.Text = "All Lowercase"; + this.menuItem12.Click += new System.EventHandler(this.menuItem12_Click); + // + // menuItem13 + // + this.menuItem13.Index = 7; + this.menuItem13.Text = "-"; + // + // menuItem14 + // + this.menuItem14.Index = 8; + this.menuItem14.Text = "[1] Folder Indexer..."; + this.menuItem14.Click += new System.EventHandler(this.menuItem14_Click); + // + // Replacer + // + this.Replacer.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.Replacer.Controls.Add(this.ExitButton); + this.Replacer.Controls.Add(this.label12); + this.Replacer.Controls.Add(this.label11); + this.Replacer.Controls.Add(this.textBox3); + this.Replacer.Controls.Add(this.textBox2); + this.Replacer.Controls.Add(this.button5); + this.Replacer.Controls.Add(this.label10); + this.Replacer.Controls.Add(this.label9); + this.Replacer.Controls.Add(this.label8); + this.Replacer.Location = new System.Drawing.Point(654, 284); + this.Replacer.Name = "Replacer"; + this.Replacer.Size = new System.Drawing.Size(612, 233); + this.Replacer.TabIndex = 8; + // + // ExitButton + // + this.ExitButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); + this.ExitButton.AutoSize = true; + this.ExitButton.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.ExitButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ExitButton.Location = new System.Drawing.Point(572, 23); + this.ExitButton.Name = "ExitButton"; + this.ExitButton.Size = new System.Drawing.Size(17, 18); + this.ExitButton.TabIndex = 6; + this.ExitButton.Text = "×"; + this.ExitButton.Click += new System.EventHandler(this.label22_Click); + this.ExitButton.MouseEnter += new System.EventHandler(this.label22_MouseEnter); + this.ExitButton.MouseLeave += new System.EventHandler(this.label22_MouseLeave); + // + // label12 + // + this.label12.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); + this.label12.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.label12.Location = new System.Drawing.Point(260, 143); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(125, 2); + this.label12.TabIndex = 5; + // + // label11 + // + this.label11.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); + this.label11.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.label11.Location = new System.Drawing.Point(272, 103); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(125, 2); + this.label11.TabIndex = 5; + // + // textBox3 + // + this.textBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); + this.textBox3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.textBox3.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBox3.Font = new System.Drawing.Font("Consolas", 9.75F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox3.Location = new System.Drawing.Point(259, 128); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(125, 16); + this.textBox3.TabIndex = 2; + this.textBox3.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // textBox2 + // + this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); + this.textBox2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBox2.Font = new System.Drawing.Font("Consolas", 9.75F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox2.Location = new System.Drawing.Point(271, 88); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(125, 16); + this.textBox2.TabIndex = 2; + this.textBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // button5 + // + this.button5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); + this.button5.Font = new System.Drawing.Font("Consolas", 9.75F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.button5.Location = new System.Drawing.Point(243, 173); + this.button5.Name = "button5"; + this.button5.Size = new System.Drawing.Size(126, 23); + this.button5.TabIndex = 1; + this.button5.Text = "Rename \'Em All"; + this.button5.UseVisualStyleBackColor = true; + this.button5.Click += new System.EventHandler(this.button5_Click); + // + // label10 + // + this.label10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); + this.label10.AutoSize = true; + this.label10.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.label10.Location = new System.Drawing.Point(203, 125); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(50, 22); + this.label10.TabIndex = 0; + this.label10.Text = "With"; + this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label9 + // + this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); + this.label9.AutoSize = true; + this.label9.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.label9.Location = new System.Drawing.Point(185, 87); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(80, 22); + this.label9.TabIndex = 0; + this.label9.Text = "Replace"; + this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label8 + // + this.label8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); + this.label8.AutoSize = true; + this.label8.Font = new System.Drawing.Font("Consolas", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.label8.Location = new System.Drawing.Point(222, 31); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(154, 24); + this.label8.TabIndex = 0; + this.label8.Text = "The Replacer"; + this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // Adder + // + this.Adder.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.Adder.Controls.Add(this.label26); + this.Adder.Controls.Add(this.comboBox1); + this.Adder.Controls.Add(this.label14); + this.Adder.Controls.Add(this.textBox5); + this.Adder.Controls.Add(this.button6); + this.Adder.Controls.Add(this.label15); + this.Adder.Controls.Add(this.label16); + this.Adder.Controls.Add(this.label17); + this.Adder.Location = new System.Drawing.Point(645, 551); + this.Adder.Name = "Adder"; + this.Adder.Size = new System.Drawing.Size(612, 233); + this.Adder.TabIndex = 9; + // + // label26 + // + this.label26.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); + this.label26.AutoSize = true; + this.label26.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.label26.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label26.Location = new System.Drawing.Point(572, 23); + this.label26.Name = "label26"; + this.label26.Size = new System.Drawing.Size(17, 18); + this.label26.TabIndex = 7; + this.label26.Text = "×"; + this.label26.Click += new System.EventHandler(this.label22_Click); + this.label26.MouseEnter += new System.EventHandler(this.label22_MouseEnter); + this.label26.MouseLeave += new System.EventHandler(this.label22_MouseLeave); + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Items.AddRange(new object[] { + "Beginning", + "End"}); + this.comboBox1.Location = new System.Drawing.Point(291, 102); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(90, 21); + this.comboBox1.TabIndex = 6; + this.comboBox1.Text = "Beginning"; + // + // label14 + // + this.label14.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.label14.Location = new System.Drawing.Point(257, 77); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(125, 2); + this.label14.TabIndex = 5; + // + // textBox5 + // + this.textBox5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.textBox5.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBox5.Font = new System.Drawing.Font("Consolas", 9.75F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox5.Location = new System.Drawing.Point(256, 62); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(125, 16); + this.textBox5.TabIndex = 2; + this.textBox5.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // button6 + // + this.button6.Font = new System.Drawing.Font("Consolas", 9.75F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.button6.Location = new System.Drawing.Point(239, 154); + this.button6.Name = "button6"; + this.button6.Size = new System.Drawing.Size(126, 23); + this.button6.TabIndex = 1; + this.button6.Text = "Rename \'Em All"; + this.button6.UseVisualStyleBackColor = true; + this.button6.Click += new System.EventHandler(this.button6_Click); + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label15.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.label15.Location = new System.Drawing.Point(217, 101); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(70, 22); + this.label15.TabIndex = 0; + this.label15.Text = "At The"; + this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label16.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.label16.Location = new System.Drawing.Point(210, 61); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(40, 22); + this.label16.TabIndex = 0; + this.label16.Text = "Add"; + this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Font = new System.Drawing.Font("Consolas", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label17.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.label17.Location = new System.Drawing.Point(247, 9); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(118, 24); + this.label17.TabIndex = 0; + this.label17.Text = "The Adder"; + this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // Remover + // + this.Remover.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.Remover.Controls.Add(this.label25); + this.Remover.Controls.Add(this.label13); + this.Remover.Controls.Add(this.textBox4); + this.Remover.Controls.Add(this.button7); + this.Remover.Controls.Add(this.label18); + this.Remover.Controls.Add(this.label20); + this.Remover.Location = new System.Drawing.Point(645, 312); + this.Remover.Name = "Remover"; + this.Remover.Size = new System.Drawing.Size(612, 233); + this.Remover.TabIndex = 9; + // + // label25 + // + this.label25.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); + this.label25.AutoSize = true; + this.label25.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.label25.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label25.Location = new System.Drawing.Point(572, 23); + this.label25.Name = "label25"; + this.label25.Size = new System.Drawing.Size(17, 18); + this.label25.TabIndex = 7; + this.label25.Text = "×"; + this.label25.Click += new System.EventHandler(this.label22_Click); + this.label25.MouseEnter += new System.EventHandler(this.label22_MouseEnter); + this.label25.MouseLeave += new System.EventHandler(this.label22_MouseLeave); + // + // label13 + // + this.label13.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.label13.Location = new System.Drawing.Point(153, 121); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(300, 2); + this.label13.TabIndex = 5; + // + // textBox4 + // + this.textBox4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.textBox4.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBox4.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox4.Location = new System.Drawing.Point(153, 64); + this.textBox4.Multiline = true; + this.textBox4.Name = "textBox4"; + this.textBox4.ScrollBars = System.Windows.Forms.ScrollBars.Horizontal; + this.textBox4.Size = new System.Drawing.Size(300, 56); + this.textBox4.TabIndex = 2; + this.textBox4.Text = "Official\r\nVideo\r\nHQ\r\nLyrics"; + this.textBox4.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // button7 + // + this.button7.Font = new System.Drawing.Font("Consolas", 9.75F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.button7.Location = new System.Drawing.Point(241, 159); + this.button7.Name = "button7"; + this.button7.Size = new System.Drawing.Size(126, 23); + this.button7.TabIndex = 1; + this.button7.Text = "Rename \'Em All"; + this.button7.UseVisualStyleBackColor = true; + this.button7.Click += new System.EventHandler(this.button7_Click); + // + // label18 + // + this.label18.AutoSize = true; + this.label18.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label18.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.label18.Location = new System.Drawing.Point(234, 126); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(139, 13); + this.label18.TabIndex = 0; + this.label18.Text = "(enter separated list)"; + this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.Font = new System.Drawing.Font("Consolas", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label20.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.label20.Location = new System.Drawing.Point(237, 8); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(142, 24); + this.label20.TabIndex = 0; + this.label20.Text = "The Remover"; + this.label20.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // filePath + // + this.filePath.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.filePath.Controls.Add(this.richTextBox1); + this.filePath.Controls.Add(this.label23); + this.filePath.Controls.Add(this.label21); + this.filePath.Controls.Add(this.label24); + this.filePath.Location = new System.Drawing.Point(691, 261); + this.filePath.Name = "filePath"; + this.filePath.Size = new System.Drawing.Size(612, 233); + this.filePath.TabIndex = 9; + this.filePath.Paint += new System.Windows.Forms.PaintEventHandler(this.filePath_Paint); + // + // richTextBox1 + // + this.richTextBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.richTextBox1.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.richTextBox1.Location = new System.Drawing.Point(25, 78); + this.richTextBox1.Name = "richTextBox1"; + this.richTextBox1.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical; + this.richTextBox1.Size = new System.Drawing.Size(550, 96); + this.richTextBox1.TabIndex = 8; + this.richTextBox1.Text = ""; + this.richTextBox1.WordWrap = false; + // + // label23 + // + this.label23.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); + this.label23.AutoSize = true; + this.label23.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.label23.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label23.Location = new System.Drawing.Point(572, 23); + this.label23.Name = "label23"; + this.label23.Size = new System.Drawing.Size(17, 18); + this.label23.TabIndex = 7; + this.label23.Text = "×"; + this.label23.Click += new System.EventHandler(this.label22_Click); + this.label23.MouseEnter += new System.EventHandler(this.label22_MouseEnter); + this.label23.MouseHover += new System.EventHandler(this.label22_MouseLeave); + // + // label21 + // + this.label21.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.label21.Location = new System.Drawing.Point(25, 174); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(550, 2); + this.label21.TabIndex = 5; + // + // label24 + // + this.label24.AutoSize = true; + this.label24.Font = new System.Drawing.Font("Consolas", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label24.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.label24.Location = new System.Drawing.Point(207, 9); + this.label24.Name = "label24"; + this.label24.Size = new System.Drawing.Size(190, 24); + this.label24.TabIndex = 0; + this.label24.Text = "Folder2FilePath"; + this.label24.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Font = new System.Drawing.Font("Consolas", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label19.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.label19.Location = new System.Drawing.Point(138, 137); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(328, 36); + this.label19.TabIndex = 0; + this.label19.Text = "Select Your Desired Folder,\r\nAnd Choose An Operation From Menu Above."; + this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // Settings + // + this.Settings.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.Settings.Controls.Add(this.checkBox2); + this.Settings.Controls.Add(this.checkBox1); + this.Settings.Controls.Add(this.button2); + this.Settings.Controls.Add(this.label27); + this.Settings.Controls.Add(this.label29); + this.Settings.Controls.Add(this.label30); + this.Settings.Location = new System.Drawing.Point(622, 560); + this.Settings.Name = "Settings"; + this.Settings.Size = new System.Drawing.Size(612, 233); + this.Settings.TabIndex = 9; + // + // button2 + // + this.button2.Font = new System.Drawing.Font("Consolas", 9.75F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.button2.Location = new System.Drawing.Point(239, 154); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(126, 23); + this.button2.TabIndex = 1; + this.button2.Text = "Done!"; + this.button2.UseVisualStyleBackColor = true; + this.button2.Click += new System.EventHandler(this.button2_Click); + // + // label29 + // + this.label29.AutoSize = true; + this.label29.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label29.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.label29.Location = new System.Drawing.Point(135, 57); + this.label29.Name = "label29"; + this.label29.Size = new System.Drawing.Size(360, 22); + this.label29.TabIndex = 0; + this.label29.Text = "Consider Files Under Subdirectories"; + this.label29.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label30 + // + this.label30.AutoSize = true; + this.label30.Font = new System.Drawing.Font("Consolas", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label30.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.label30.Location = new System.Drawing.Point(249, 9); + this.label30.Name = "label30"; + this.label30.Size = new System.Drawing.Size(106, 24); + this.label30.TabIndex = 0; + this.label30.Text = "Settings"; + this.label30.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // checkBox1 + // + this.checkBox1.AutoSize = true; + this.checkBox1.Location = new System.Drawing.Point(119, 62); + this.checkBox1.Name = "checkBox1"; + this.checkBox1.Size = new System.Drawing.Size(15, 14); + this.checkBox1.TabIndex = 8; + this.checkBox1.UseVisualStyleBackColor = true; + this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); + // + // label27 + // + this.label27.AutoSize = true; + this.label27.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label27.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.label27.Location = new System.Drawing.Point(191, 87); + this.label27.Name = "label27"; + this.label27.Size = new System.Drawing.Size(230, 22); + this.label27.TabIndex = 0; + this.label27.Text = "Rename Directories Too"; + this.label27.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // checkBox2 + // + this.checkBox2.AutoSize = true; + this.checkBox2.Location = new System.Drawing.Point(175, 92); + this.checkBox2.Name = "checkBox2"; + this.checkBox2.Size = new System.Drawing.Size(15, 14); + this.checkBox2.TabIndex = 8; + this.checkBox2.UseVisualStyleBackColor = true; + this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged); + // + // menuItem16 + // + this.menuItem16.Index = 1; + this.menuItem16.Text = "Settings..."; + this.menuItem16.Click += new System.EventHandler(this.menuItem16_Click); + // + // menuItem17 + // + this.menuItem17.Index = 9; + this.menuItem17.Tag = "lol"; + this.menuItem17.Text = "[2] External Folder Indexer"; + this.menuItem17.Click += new System.EventHandler(this.menuItem17_Click); + // + // menuItem18 + // + this.menuItem18.Index = 10; + this.menuItem18.Text = "-"; + // + // menuItem19 + // + this.menuItem19.Enabled = false; + this.menuItem19.Index = 12; + this.menuItem19.Text = "2. For Large Directories"; + // + // menuItem20 + // + this.menuItem20.Enabled = false; + this.menuItem20.Index = 11; + this.menuItem20.Text = "1. For Small Directories"; + // + // About + // + this.About.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.About.Controls.Add(this.linkLabel1); + this.About.Controls.Add(this.label22); + this.About.Controls.Add(this.label28); + this.About.Controls.Add(this.label35); + this.About.Controls.Add(this.label36); + this.About.Controls.Add(this.label33); + this.About.Controls.Add(this.label34); + this.About.Location = new System.Drawing.Point(19, 284); + this.About.Name = "About"; + this.About.Size = new System.Drawing.Size(612, 233); + this.About.TabIndex = 9; + // + // label22 + // + this.label22.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); + this.label22.AutoSize = true; + this.label22.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.label22.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label22.Location = new System.Drawing.Point(572, 23); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(17, 18); + this.label22.TabIndex = 7; + this.label22.Text = "×"; + this.label22.Click += new System.EventHandler(this.label22_Click); + this.label22.MouseEnter += new System.EventHandler(this.label22_MouseEnter); + this.label22.MouseLeave += new System.EventHandler(this.label22_MouseLeave); + // + // label28 + // + this.label28.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.label28.Location = new System.Drawing.Point(147, 137); + this.label28.Name = "label28"; + this.label28.Size = new System.Drawing.Size(300, 2); + this.label28.TabIndex = 5; + // + // label33 + // + this.label33.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); + this.label33.AutoSize = true; + this.label33.Font = new System.Drawing.Font("Consolas", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label33.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.label33.Location = new System.Drawing.Point(222, 23); + this.label33.Name = "label33"; + this.label33.Size = new System.Drawing.Size(153, 19); + this.label33.TabIndex = 0; + this.label33.Text = "The Renamer v0.2"; + this.label33.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label34 + // + this.label34.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); + this.label34.AutoSize = true; + this.label34.Font = new System.Drawing.Font("Consolas", 9F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label34.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.label34.Location = new System.Drawing.Point(87, 57); + this.label34.Name = "label34"; + this.label34.Size = new System.Drawing.Size(441, 70); + this.label34.TabIndex = 0; + this.label34.Text = resources.GetString("label34.Text"); + this.label34.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label35 + // + this.label35.AutoSize = true; + this.label35.Font = new System.Drawing.Font("Consolas", 6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label35.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.label35.Location = new System.Drawing.Point(161, 121); + this.label35.Name = "label35"; + this.label35.Size = new System.Drawing.Size(281, 9); + this.label35.TabIndex = 0; + this.label35.Text = "(i\'m sorry for the messy source code i\'ll try to clean it up soon :D)"; + this.label35.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label36 + // + this.label36.AutoSize = true; + this.label36.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label36.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.label36.Location = new System.Drawing.Point(195, 156); + this.label36.Name = "label36"; + this.label36.Size = new System.Drawing.Size(217, 13); + this.label36.TabIndex = 0; + this.label36.Text = "YEREVAN, ARMENIA © THEBITBRINE 2017"; + this.label36.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // linkLabel1 + // + this.linkLabel1.AutoSize = true; + this.linkLabel1.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.linkLabel1.Location = new System.Drawing.Point(228, 175); + this.linkLabel1.Name = "linkLabel1"; + this.linkLabel1.Size = new System.Drawing.Size(145, 13); + this.linkLabel1.TabIndex = 8; + this.linkLabel1.TabStop = true; + this.linkLabel1.Text = "https://thebitbrine.com"; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(596, 181); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Controls.Add(this.button2); - this.Controls.Add(this.checkBox4); - this.Controls.Add(this.checkBox3); - this.Controls.Add(this.checkBox2); - this.Controls.Add(this.checkBox1); + this.ClientSize = new System.Drawing.Size(848, 852); + this.Controls.Add(this.BrowseItDude); + this.Controls.Add(this.Renaming); + this.Controls.Add(this.filePath); + this.Controls.Add(this.Replacer); + this.Controls.Add(this.About); + this.Controls.Add(this.Remover); + this.Controls.Add(this.Settings); + this.Controls.Add(this.Adder); this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Controls.Add(this.button1); this.Controls.Add(this.textBox1); + this.Controls.Add(this.label19); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; - this.HelpButton = true; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; + this.Menu = this.mainMenu1; this.MinimizeBox = false; this.Name = "Form1"; - this.Text = "The Renamer - v.0.01"; - this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); - this.panel2.ResumeLayout(false); - this.panel2.PerformLayout(); + this.Text = "The Renamer - v.0.2"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing); + this.Load += new System.EventHandler(this.Form1_Load); + this.BrowseItDude.ResumeLayout(false); + this.BrowseItDude.PerformLayout(); + this.Renaming.ResumeLayout(false); + this.Renaming.PerformLayout(); + this.Replacer.ResumeLayout(false); + this.Replacer.PerformLayout(); + this.Adder.ResumeLayout(false); + this.Adder.PerformLayout(); + this.Remover.ResumeLayout(false); + this.Remover.PerformLayout(); + this.filePath.ResumeLayout(false); + this.filePath.PerformLayout(); + this.Settings.ResumeLayout(false); + this.Settings.PerformLayout(); + this.About.ResumeLayout(false); + this.About.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); @@ -304,22 +1049,85 @@ private void InitializeComponent() private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label3; - private System.Windows.Forms.CheckBox checkBox1; - private System.Windows.Forms.CheckBox checkBox2; - private System.Windows.Forms.CheckBox checkBox3; - private System.Windows.Forms.Button button2; - private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Panel BrowseItDude; private System.Windows.Forms.Button button3; private System.Windows.Forms.Label label4; - private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.Panel Renaming; private System.Windows.Forms.Button button4; private System.Windows.Forms.Label label5; private System.Windows.Forms.Timer timer1; private System.Windows.Forms.Label label6; private System.Windows.Forms.Timer timer2; private System.Windows.Forms.Label label7; - private System.Windows.Forms.CheckBox checkBox4; private System.Windows.Forms.Timer timer3; + private System.Windows.Forms.MainMenu mainMenu1; + private System.Windows.Forms.MenuItem menuItem1; + private System.Windows.Forms.MenuItem menuItem2; + private System.Windows.Forms.MenuItem menuItem3; + private System.Windows.Forms.MenuItem menuItem4; + private System.Windows.Forms.MenuItem menuItem5; + private System.Windows.Forms.MenuItem menuItem6; + private System.Windows.Forms.MenuItem menuItem7; + private System.Windows.Forms.MenuItem menuItem9; + private System.Windows.Forms.MenuItem menuItem8; + private System.Windows.Forms.MenuItem menuItem10; + private System.Windows.Forms.MenuItem menuItem11; + private System.Windows.Forms.MenuItem menuItem12; + private System.Windows.Forms.MenuItem menuItem13; + private System.Windows.Forms.MenuItem menuItem14; + private System.Windows.Forms.Panel Replacer; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.Button button5; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Panel Adder; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.Button button6; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Panel Remover; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.Button button7; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.Panel filePath; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label24; + private System.Windows.Forms.Label ExitButton; + private System.Windows.Forms.Label label26; + private System.Windows.Forms.Label label25; + private System.Windows.Forms.Label label23; + private System.Windows.Forms.RichTextBox richTextBox1; + private System.Windows.Forms.MenuItem menuItem15; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.Panel Settings; + private System.Windows.Forms.CheckBox checkBox2; + private System.Windows.Forms.CheckBox checkBox1; + private System.Windows.Forms.Button button2; + private System.Windows.Forms.Label label27; + private System.Windows.Forms.Label label29; + private System.Windows.Forms.Label label30; + private System.Windows.Forms.MenuItem menuItem16; + private System.Windows.Forms.MenuItem menuItem17; + private System.Windows.Forms.MenuItem menuItem18; + private System.Windows.Forms.MenuItem menuItem19; + private System.Windows.Forms.MenuItem menuItem20; + private System.Windows.Forms.Panel About; + private System.Windows.Forms.LinkLabel linkLabel1; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label28; + private System.Windows.Forms.Label label35; + private System.Windows.Forms.Label label36; + private System.Windows.Forms.Label label33; + private System.Windows.Forms.Label label34; } } diff --git a/Renamer/Renamer/Form1.cs b/Renamer/Renamer/Form1.cs index e520ea0..47db014 100644 --- a/Renamer/Renamer/Form1.cs +++ b/Renamer/Renamer/Form1.cs @@ -14,11 +14,9 @@ namespace Renamer { public partial class Form1 : Form { + //IT WILL TURN THE DEV MODE ON IF ITS NOT EMPTY public string Path = ""; - public bool C = false; - public bool D = false; - public bool S = false; - public bool U = false; + public string progress = ""; public string currentFileName = ""; @@ -32,8 +30,41 @@ public partial class Form1 : Form public Form1() { InitializeComponent(); + this.Size = new Size(612, 233); + } + + List list = new List(); + public void DirSearch(string sDir) + { + try + { + string[] TempInners = Directory.GetFiles(sDir); + + for (int p = 0; p < TempInners.Length; p++) + { + list.Add(TempInners[p]); + } + + foreach (string d in Directory.GetDirectories(sDir)) + { + foreach (string f in Directory.GetFiles(d)) + { + string xzc = f.Replace("\\", @"\"); + list.Add(xzc); + } + DirSearch(d); + } + } + catch (System.Exception excpt) + { + MessageBox.Show(excpt.Message); + } + } + + + private void button1_Click(object sender, EventArgs e) { folderBrowserDialog1.ShowDialog(); @@ -42,124 +73,847 @@ private void button1_Click(object sender, EventArgs e) if (Path == "" || Path == null) textBox1.Text = ""; } - public void Renamer() + + + private void button3_Click(object sender, EventArgs e) + { + BrowseItDude.Visible = false; + BrowseItDude.Location = new Point(585, 173); + } + + private void timer1_Tick(object sender, EventArgs e) + { + switch (renameTitle) + { + case 0: + label5.ForeColor = Color.FromArgb(15, 15,15,15); + renameTitle++; + break; + case 1: + label5.ForeColor = Color.FromArgb(95,95,95,95); + renameTitle = 0; + break; + } + } + + private void timer2_Tick(object sender, EventArgs e) + { + label6.Text = currentFileName; + label7.Text = progress; + if (B.IsAlive == false) + { + Renaming.Visible = false; + timer1.Enabled = false; + + if (!label2.Text.Contains("Renamed ")) + { + label2.Text = "Renamed " + All + " Files!"; + } + + timer3.Enabled = true; + timer2.Enabled = false; + } + } + + private void button4_Click(object sender, EventArgs e) + { + if (B != null) + B.Suspend(); + } + + private void timer3_Tick(object sender, EventArgs e) + { + + label2.Text = "The Renamer"; + timer3.Enabled = false; + + } + + private void allCapsToolStripMenuItem_Click(object sender, EventArgs e) + { + + } + + private void menuItem2_Click(object sender, EventArgs e) + { + button1.PerformClick(); + } + + private void menuItem5_Click(object sender, EventArgs e) + { + Environment.Exit(0); + } + + string ReplaceThis; + string ReplaceThat; + private void button5_Click(object sender, EventArgs e) + { + ReplaceThis = textBox2.Text; + ReplaceThat = textBox3.Text; + A = new ThreadStart(do_Replace); + B = new Thread(A); + B.IsBackground = true; + B.Start(); + timer1.Enabled = true; + timer2.Enabled = true; + label6.Left = (this.ClientSize.Width - label6.Width) / 2; + label7.Left = (this.ClientSize.Width - label7.Width) / 2; + label5.Left = (this.ClientSize.Width - label5.Width) / 2; + button4.Left = (this.ClientSize.Width - button4.Width) / 2; + Renaming.Dock = DockStyle.Fill; + Renaming.Visible = true; + Replacer.Visible = false; + } + + private void menuItem14_Click(object sender, EventArgs e) + { + if (Path == "" || Path == null) + { + label4.Left = (this.ClientSize.Width - label4.Width) / 2; + button3.Left = (this.ClientSize.Width - button3.Width) / 2; + //panel1.Location = new Point(0,0); + BrowseItDude.Dock = DockStyle.Fill; + BrowseItDude.Visible = true; + } + else + { + filePath.Visible = true; + filePath.Dock = DockStyle.Fill; + if (DigDirs == true) + { + DirSearch(Path); + richTextBox1.Text = string.Join("\r\n", list.ToArray()); + } + else + richTextBox1.Text = string.Join("\r\n", Directory.GetFiles(Path)); + } + } + + private void menuItem7_Click(object sender, EventArgs e) + { + if (Path == "" || Path == null) + { + label4.Left = (this.ClientSize.Width - label4.Width) / 2; + button3.Left = (this.ClientSize.Width - button3.Width) / 2; + //panel1.Location = new Point(0,0); + BrowseItDude.Dock = DockStyle.Fill; + BrowseItDude.Visible = true; + } + else + { + Replacer.Visible = true; + Replacer.BringToFront(); + Replacer.Dock = DockStyle.Fill; + } + } + + private void label22_MouseEnter(object sender, EventArgs e) + { + ExitButton.BackColor = Color.FromKnownColor(KnownColor.GradientActiveCaption); + label26.BackColor = Color.FromKnownColor(KnownColor.GradientActiveCaption); + label23.BackColor = Color.FromKnownColor(KnownColor.GradientActiveCaption); + label25.BackColor = Color.FromKnownColor(KnownColor.GradientActiveCaption); + label22.BackColor = Color.FromKnownColor(KnownColor.GradientActiveCaption); + } + + private void label22_MouseLeave(object sender, EventArgs e) + { + ExitButton.BackColor = Color.FromArgb(224, 224, 224); + label26.BackColor = Color.FromArgb(224, 224, 224); + label23.BackColor = Color.FromArgb(224, 224, 224); + label25.BackColor = Color.FromArgb(224, 224, 224); + label22.BackColor = Color.FromArgb(224, 224, 224); + } + + private void label22_Click(object sender, EventArgs e) + { + Replacer.Visible = false; + Adder.Visible = false; + Remover.Visible = false; + filePath.Visible = false; + About.Visible = false; + } + + private void menuItem9_Click(object sender, EventArgs e) { - string[] FileList = Directory.GetFiles(Path); + if (Path == "" || Path == null) + { + label4.Left = (this.ClientSize.Width - label4.Width) / 2; + button3.Left = (this.ClientSize.Width - button3.Width) / 2; + //panel1.Location = new Point(0,0); + BrowseItDude.Dock = DockStyle.Fill; + BrowseItDude.Visible = true; + } + else + { + Adder.Visible = true; + Adder.BringToFront(); + Adder.Dock = DockStyle.Fill; + } + } + + private void menuItem8_Click(object sender, EventArgs e) + { + if (Path == "" || Path == null) + { + label4.Left = (this.ClientSize.Width - label4.Width) / 2; + button3.Left = (this.ClientSize.Width - button3.Width) / 2; + //panel1.Location = new Point(0,0); + BrowseItDude.Dock = DockStyle.Fill; + BrowseItDude.Visible = true; + } + else + { + Remover.Visible = true; + Remover.BringToFront(); + Remover.Dock = DockStyle.Fill; + } + } + + private void filePath_Paint(object sender, PaintEventArgs e) + { + + } + string RemoveString; + private void button7_Click(object sender, EventArgs e) + { + RemoveString = textBox4.Text; + A = new ThreadStart(do_Remove); + B = new Thread(A); + B.IsBackground = true; + B.Start(); + timer1.Enabled = true; + timer2.Enabled = true; + label6.Left = (this.ClientSize.Width - label6.Width) / 2; + label7.Left = (this.ClientSize.Width - label7.Width) / 2; + label5.Left = (this.ClientSize.Width - label5.Width) / 2; + button4.Left = (this.ClientSize.Width - button4.Width) / 2; + Renaming.Dock = DockStyle.Fill; + Renaming.Visible = true; + Remover.Visible = false; + + } + string AddString; + bool AddBool; + private void button6_Click(object sender, EventArgs e) + { + AddString = textBox5.Text; + + if (comboBox1.SelectedItem == "Beginning") + AddBool = true; + else + AddBool = false; + + A = new ThreadStart(do_Add); + B = new Thread(A); + B.IsBackground = true; + B.Start(); + timer1.Enabled = true; + timer2.Enabled = true; + label6.Left = (this.ClientSize.Width - label6.Width) / 2; + label7.Left = (this.ClientSize.Width - label7.Width) / 2; + label5.Left = (this.ClientSize.Width - label5.Width) / 2; + button4.Left = (this.ClientSize.Width - button4.Width) / 2; + Renaming.Dock = DockStyle.Fill; + Renaming.Visible = true; + Adder.Visible = false; + } + + public void do_Replace() + { + string[] FileList; + + if (DigDirs == true) + { + DirSearch(Path); + FileList = list.ToArray(); + } + else + { + FileList = Directory.GetFiles(Path); + } All = FileList.Length; for (int i = 0; i < FileList.Length; i++) { - string Temp = FileList[i].Replace(Path+@"\",""); + string Temp = FileList[i].Replace(Path + @"\", ""); + + Temp = Temp.Replace(ReplaceThis, ReplaceThat); - if (U) + progress = i + 1 + @"\" + FileList.Length; + currentFileName = Temp; + + Temp = Path + @"\" + Temp; + try { - Temp = Temp.Replace('_', '-'); + System.IO.File.Move(FileList[i], Temp); } - if (D) + catch (System.Exception excpt) + { + MessageBox.Show(excpt.Message); + } + } + + + string[] TempDirs = Directory.GetDirectories(Path); + for (int w = 0; w < TempDirs.Length; w++) + { + string Temp = TempDirs[w].Replace(Path + @"\", ""); + + + + Temp = Temp.Replace(ReplaceThis, ReplaceThat); + + + + currentFileName = Temp; + Temp = Path + @"\" + Temp; + try { - Temp = Temp.Replace('-', ' '); + System.IO.Directory.Move(TempDirs[w], Temp); } - if (S) + catch (System.Exception excpt) { - Temp = Temp.Replace('_', ' '); + MessageBox.Show(excpt.Message); } + } - if (C) + + + + } + + + public void do_Remove() + { + + string[] FileList; + + if (DigDirs == true) + { + DirSearch(Path); + FileList = list.ToArray(); + } + else + { + FileList = Directory.GetFiles(Path); + } + + All = FileList.Length; + string[] enterSepped = RemoveString.Split(new[] { "\r\n" }, StringSplitOptions.None); + + for (int i = 0; i < FileList.Length; i++) + { + string Temp = FileList[i].Replace(Path + @"\", ""); + + for (int x = 0; x < enterSepped.Length; x++) { - Temp = Temp.First().ToString().ToUpper() + Temp.Substring(1); - Temp = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(Temp.ToLower()); + Temp = Temp.Replace(enterSepped[x], ""); } + progress = i + 1 + @"\" + FileList.Length; currentFileName = Temp; Temp = Path + @"\" + Temp; - System.IO.File.Move(FileList[i], Temp); - + try + { + System.IO.File.Move(FileList[i], Temp); + } + catch (System.Exception excpt) + { + MessageBox.Show(excpt.Message); + } } + string[] TempDirs = Directory.GetDirectories(Path); + for (int w = 0; w < TempDirs.Length; w++) + { + string Temp = TempDirs[w].Replace(Path + @"\", ""); + + + + for (int x = 0; x < enterSepped.Length; x++) + { + Temp = Temp.Replace(enterSepped[x], ""); + } + + + + currentFileName = Temp; + Temp = Path + @"\" + Temp; + try + { + System.IO.Directory.Move(TempDirs[w], Temp); + } + catch (System.Exception excpt) + { + MessageBox.Show(excpt.Message); + } + } + + + + } - private void checkBox3_CheckedChanged(object sender, EventArgs e) + + public void do_Add() { - C = checkBox1.Checked; - D = checkBox2.Checked; - S = checkBox3.Checked; - U = checkBox4.Checked; + string[] FileList; + + if (DigDirs == true) + { + DirSearch(Path); + FileList = list.ToArray(); + } + else + { + FileList = Directory.GetFiles(Path); + } + + All = FileList.Length; + for (int i = 0; i < FileList.Length; i++) + { + string Temp = FileList[i].Replace(Path + @"\", ""); + if(AddBool) + Temp = AddString + Temp; + else + Temp = Temp + AddString; + + progress = i + 1 + @"\" + FileList.Length; + currentFileName = Temp; + + Temp = Path + @"\" + Temp; + + try + { + System.IO.File.Move(FileList[i], Temp); + } + catch (System.Exception excpt) + { + MessageBox.Show(excpt.Message); + } + } + + string[] TempDirs = Directory.GetDirectories(Path); + for (int w = 0; w < TempDirs.Length; w++) + { + string Temp = TempDirs[w].Replace(Path + @"\", ""); + + + + if (AddBool) + Temp = AddString + Temp; + else + Temp = Temp + AddString; + + + + currentFileName = Temp; + Temp = Path + @"\" + Temp; + try + { + System.IO.Directory.Move(TempDirs[w], Temp); + } + catch (System.Exception excpt) + { + MessageBox.Show(excpt.Message); + } + } + + + } - private void button2_Click(object sender, EventArgs e) + + + public void do_AllCaps() + { + string[] FileList; + + if (DigDirs == true) + { + DirSearch(Path); + FileList = list.ToArray(); + } + else + { + FileList = Directory.GetFiles(Path); + } + All = FileList.Length; + for (int i = 0; i < FileList.Length; i++) + { + string Temp = FileList[i].Replace(Path + @"\", ""); + + Temp = Temp.ToUpper(); + + progress = i + 1 + @"\" + FileList.Length; + currentFileName = Temp; + + Temp = Path + @"\" + Temp; + + try + { + System.IO.File.Move(FileList[i], Temp); + } + catch (System.Exception excpt) + { + MessageBox.Show(excpt.Message); + } + } + + + string[] TempDirs = Directory.GetDirectories(Path); + for (int w = 0; w < TempDirs.Length; w++) + { + string Temp = TempDirs[w].Replace(Path + @"\", ""); + + + + Temp = Temp.ToUpper(); + + + + currentFileName = Temp; + Temp = Path + @"\" + Temp; + try + { + System.IO.Directory.Move(TempDirs[w], "Temp"); + System.IO.Directory.Move("Temp", Temp); + } + catch (System.Exception excpt) + { + MessageBox.Show(excpt.Message); + } + } + + + } + + + public void do_AllLower() + { + string[] FileList; + + if (DigDirs == true) + { + DirSearch(Path); + FileList = list.ToArray(); + } + else + { + FileList = Directory.GetFiles(Path); + } + All = FileList.Length; + for (int i = 0; i < FileList.Length; i++) + { + string Temp = FileList[i].Replace(Path + @"\", ""); + + Temp = Temp.ToLower(); + + progress = i + 1 + @"\" + FileList.Length; + currentFileName = Temp; + + Temp = Path + @"\" + Temp; + + try + { + System.IO.File.Move(FileList[i], Temp); + } + catch (System.Exception excpt) + { + MessageBox.Show(excpt.Message); + } + } + + string[] TempDirs = Directory.GetDirectories(Path); + for (int w = 0; w < TempDirs.Length; w++) + { + string Temp = TempDirs[w].Replace(Path + @"\", ""); + + + + Temp = Temp.ToLower(); + + + + currentFileName = Temp; + Temp = Path + @"\" + Temp; + try + { + System.IO.Directory.Move(TempDirs[w], "Temp"); + System.IO.Directory.Move("Temp", Temp); + } + catch (System.Exception excpt) + { + MessageBox.Show(excpt.Message); + } + } + + + } + + + + public void do_CapIt() + { + string[] FileList; + + if (DigDirs == true) + { + DirSearch(Path); + FileList = list.ToArray(); + } + else + { + FileList = Directory.GetFiles(Path); + } + + All = FileList.Length; + for (int i = 0; i < FileList.Length; i++) + { + string Temp = FileList[i].Replace(Path + @"\", ""); + + Temp = Temp.First().ToString().ToUpper() + Temp.Substring(1); + Temp = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(Temp.ToLower()); + + progress = i + 1 + @"\" + FileList.Length; + currentFileName = Temp; + + Temp = Path + @"\" + Temp; + + try + { + System.IO.File.Move(FileList[i], Temp); + } + catch (System.Exception excpt) + { + MessageBox.Show(excpt.Message); + } + } + + + + string[] TempDirs = Directory.GetDirectories(Path); + for (int w = 0; w < TempDirs.Length; w++) + { + string Temp = TempDirs[w].Replace(Path + @"\", ""); + Temp = Temp.First().ToString().ToUpper() + Temp.Substring(1); + Temp = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(Temp.ToLower()); + + + + + currentFileName = Temp; + Temp = Path + @"\" + Temp; + try + { + System.IO.Directory.Move(TempDirs[w], "Temp"); + System.IO.Directory.Move("Temp", Temp); + } + catch (System.Exception excpt) + { + MessageBox.Show(excpt.Message); + } + } + + + + } + + + + private void menuItem15_Click(object sender, EventArgs e) { - if (Path =="" || Path == null) + + if (Path == "" || Path == null) { - panel1.Location = new Point(19, 12); - panel1.Visible = true; + label4.Left = (this.ClientSize.Width - label4.Width) / 2; + button3.Left = (this.ClientSize.Width - button3.Width) / 2; + //panel1.Location = new Point(0,0); + BrowseItDude.Dock = DockStyle.Fill; + BrowseItDude.Visible = true; } else { - A = new ThreadStart(Renamer); + RemoveString = textBox4.Text; + A = new ThreadStart(do_CapIt); B = new Thread(A); B.IsBackground = true; B.Start(); timer1.Enabled = true; timer2.Enabled = true; - panel2.Location = new Point(19, 12); - panel2.Visible = true; + label6.Left = (this.ClientSize.Width - label6.Width) / 2; + label7.Left = (this.ClientSize.Width - label7.Width) / 2; + label5.Left = (this.ClientSize.Width - label5.Width) / 2; + button4.Left = (this.ClientSize.Width - button4.Width) / 2; + Renaming.Dock = DockStyle.Fill; + Renaming.Visible = true; } } - private void button3_Click(object sender, EventArgs e) + private void menuItem11_Click(object sender, EventArgs e) { - panel1.Visible = false; - panel1.Location = new Point(585, 173); + if (Path == "" || Path == null) + { + label4.Left = (this.ClientSize.Width - label4.Width) / 2; + button3.Left = (this.ClientSize.Width - button3.Width) / 2; + //panel1.Location = new Point(0,0); + BrowseItDude.Dock = DockStyle.Fill; + BrowseItDude.Visible = true; + } + else + { + RemoveString = textBox4.Text; + A = new ThreadStart(do_AllCaps); + B = new Thread(A); + B.IsBackground = true; + B.Start(); + timer1.Enabled = true; + timer2.Enabled = true; + label6.Left = (this.ClientSize.Width - label6.Width) / 2; + label7.Left = (this.ClientSize.Width - label7.Width) / 2; + label5.Left = (this.ClientSize.Width - label5.Width) / 2; + button4.Left = (this.ClientSize.Width - button4.Width) / 2; + Renaming.Dock = DockStyle.Fill; + Renaming.Visible = true; + } } - private void timer1_Tick(object sender, EventArgs e) + private void menuItem12_Click(object sender, EventArgs e) { - switch (renameTitle) + if (Path == "" || Path == null) { - case 0: - label5.ForeColor = Color.FromArgb(15, 15,15,15); - renameTitle++; - break; - case 1: - label5.ForeColor = Color.FromArgb(95,95,95,95); - renameTitle = 0; - break; + label4.Left = (this.ClientSize.Width - label4.Width) / 2; + button3.Left = (this.ClientSize.Width - button3.Width) / 2; + //panel1.Location = new Point(0,0); + BrowseItDude.Dock = DockStyle.Fill; + BrowseItDude.Visible = true; + } + else + { + RemoveString = textBox4.Text; + A = new ThreadStart(do_AllLower); + B = new Thread(A); + B.IsBackground = true; + B.Start(); + timer1.Enabled = true; + timer2.Enabled = true; + label6.Left = (this.ClientSize.Width - label6.Width) / 2; + label7.Left = (this.ClientSize.Width - label7.Width) / 2; + label5.Left = (this.ClientSize.Width - label5.Width) / 2; + button4.Left = (this.ClientSize.Width - button4.Width) / 2; + Renaming.Dock = DockStyle.Fill; + Renaming.Visible = true; } } - private void timer2_Tick(object sender, EventArgs e) + public bool DigDirs = false; + private void checkBox1_CheckedChanged(object sender, EventArgs e) { - label6.Text = currentFileName; - label7.Text = progress; - if (B.IsAlive == false) - { - panel2.Visible = false; - timer1.Enabled = false; + DigDirs = checkBox1.Checked; + File.WriteAllText("Renamer.conf", RenameDirs + "," + DigDirs); + } - if (!label2.Text.Contains("Renamed ")) + private void textBox1_TextChanged(object sender, EventArgs e) + { + Path = textBox1.Text; + } + + bool RenameDirs = false; + private void checkBox2_CheckedChanged(object sender, EventArgs e) + { + RenameDirs = checkBox2.Checked; + File.WriteAllText("Renamer.conf", RenameDirs + "," + DigDirs); + } + + private void menuItem16_Click(object sender, EventArgs e) + { + Settings.Visible = true; + Settings.BringToFront(); + Settings.Dock = DockStyle.Fill; + } + + private void button2_Click(object sender, EventArgs e) + { + Settings.Visible = false; + } + + private void menuItem17_Click(object sender, EventArgs e) + { + if (Path == "" || Path == null) + { + label4.Left = (this.ClientSize.Width - label4.Width) / 2; + button3.Left = (this.ClientSize.Width - button3.Width) / 2; + //panel1.Location = new Point(0,0); + BrowseItDude.Dock = DockStyle.Fill; + BrowseItDude.Visible = true; + } + else + { + ThreadStart h = new ThreadStart(EFI); + Thread g = new Thread(h); + g.IsBackground = true; + g.Start(); + } + } + public void EFI() + { + if (DigDirs == true) + { + DirSearch(Path); + string dixs = "Directory_Index-[WithSubs][" + DateTime.Now.Month + DateTime.Now.Day + DateTime.Now.Hour + DateTime.Now.Minute + DateTime.Now.Second + "].txt"; + StreamWriter sw = new StreamWriter(dixs); + string[] arr = list.ToArray(); + for (int i = 0; i < arr.Length; i++) { - label2.Text = "Renamed " + All + " Files!"; + sw.WriteLine(arr[i]); } - - timer3.Enabled = true; - timer2.Enabled = false; + sw.Close(); + System.Diagnostics.Process.Start(dixs); + } + else + { + string dix = "Directory_Index-[" + DateTime.Now.Month + DateTime.Now.Day + DateTime.Now.Hour + DateTime.Now.Minute + DateTime.Now.Second + "].txt"; + StreamWriter sw = new StreamWriter(dix); + string[] arr = Directory.GetFiles(Path); + for (int i = 0; i < arr.Length; i++) + { + sw.WriteLine(arr[i]); + } + sw.Close(); + System.Diagnostics.Process.Start(dix); + + } } - private void button4_Click(object sender, EventArgs e) + private void menuItem3_Click(object sender, EventArgs e) { - if (B != null) - B.Suspend(); + About.Visible = true; + About.BringToFront(); + About.Dock = DockStyle.Fill; } - private void timer3_Tick(object sender, EventArgs e) + private void Form1_Load(object sender, EventArgs e) + { + try + { + string[] conf = File.ReadAllText("Renamer.conf").Split(','); + RenameDirs = conf[0] == "True"; + DigDirs = conf[1] == "True"; + checkBox1.Checked = DigDirs; + checkBox2.Checked = RenameDirs; + } + catch { /*swallow*/ } + } + + private void Form1_FormClosing(object sender, FormClosingEventArgs e) { - - label2.Text = "The Renamer"; - timer3.Enabled = false; } + + } } diff --git a/Renamer/Renamer/Form1.resx b/Renamer/Renamer/Form1.resx index 4a8b3b6..4ed4ab3 100644 --- a/Renamer/Renamer/Form1.resx +++ b/Renamer/Renamer/Form1.resx @@ -129,6 +129,17 @@ 360, 17 + + 447, 17 + + + A Little Fun 'n' Lazy Weekend Project Which Made It Into v0.2! +I Just Made This To Tiddy Up Some Of My Files +But Because Some People Found It Useful +I Updated It And I Guess I'll Keep Updating It For a While. + + + diff --git a/Renamer/Renamer/Renamer.csproj b/Renamer/Renamer/Renamer.csproj index 5f4ff53..3eda52b 100644 --- a/Renamer/Renamer/Renamer.csproj +++ b/Renamer/Renamer/Renamer.csproj @@ -11,6 +11,7 @@ v4.5.2 512 true + false publish\ true Disk @@ -22,8 +23,7 @@ false true 0 - 0.0.0.%2a - false + 0.2.0.%2a false true @@ -109,6 +109,11 @@ Microsoft .NET Framework 4.5.2 %28x86 and x64%29 true + + False + .NET Framework 3.5 SP1 Client Profile + false + False .NET Framework 3.5 SP1 diff --git a/Renamer/Renamer/bin/Debug/Renamer.exe b/Renamer/Renamer/bin/Debug/Renamer.exe new file mode 100644 index 0000000..a5c8038 Binary files /dev/null and b/Renamer/Renamer/bin/Debug/Renamer.exe differ diff --git a/Renamer/Renamer/bin/Debug/Renamer.exe.config b/Renamer/Renamer/bin/Debug/Renamer.exe.config new file mode 100644 index 0000000..d740e88 --- /dev/null +++ b/Renamer/Renamer/bin/Debug/Renamer.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Renamer/Renamer/bin/Debug/Renamer.pdb b/Renamer/Renamer/bin/Debug/Renamer.pdb new file mode 100644 index 0000000..0d67963 Binary files /dev/null and b/Renamer/Renamer/bin/Debug/Renamer.pdb differ diff --git a/Renamer/Renamer/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/Renamer/Renamer/obj/Debug/DesignTimeResolveAssemblyReferences.cache index ba64335..5174dfd 100644 Binary files a/Renamer/Renamer/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/Renamer/Renamer/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/Renamer/Renamer/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Renamer/Renamer/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index 71ef65e..eb88157 100644 Binary files a/Renamer/Renamer/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/Renamer/Renamer/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Renamer/Renamer/obj/Debug/Renamer.Form1.resources b/Renamer/Renamer/obj/Debug/Renamer.Form1.resources index ef774ec..53e7505 100644 Binary files a/Renamer/Renamer/obj/Debug/Renamer.Form1.resources and b/Renamer/Renamer/obj/Debug/Renamer.Form1.resources differ diff --git a/Renamer/Renamer/obj/Debug/Renamer.csproj.GenerateResource.Cache b/Renamer/Renamer/obj/Debug/Renamer.csproj.GenerateResource.Cache index 52d2d6f..7f942d1 100644 Binary files a/Renamer/Renamer/obj/Debug/Renamer.csproj.GenerateResource.Cache and b/Renamer/Renamer/obj/Debug/Renamer.csproj.GenerateResource.Cache differ diff --git a/Renamer/Renamer/obj/Debug/Renamer.csprojResolveAssemblyReference.cache b/Renamer/Renamer/obj/Debug/Renamer.csprojResolveAssemblyReference.cache index 87c7f5a..3cdb905 100644 Binary files a/Renamer/Renamer/obj/Debug/Renamer.csprojResolveAssemblyReference.cache and b/Renamer/Renamer/obj/Debug/Renamer.csprojResolveAssemblyReference.cache differ diff --git a/Renamer/Renamer/obj/Debug/Renamer.exe b/Renamer/Renamer/obj/Debug/Renamer.exe new file mode 100644 index 0000000..a5c8038 Binary files /dev/null and b/Renamer/Renamer/obj/Debug/Renamer.exe differ diff --git a/Renamer/Renamer/obj/Debug/Renamer.pdb b/Renamer/Renamer/obj/Debug/Renamer.pdb index f8b779f..0d67963 100644 Binary files a/Renamer/Renamer/obj/Debug/Renamer.pdb and b/Renamer/Renamer/obj/Debug/Renamer.pdb differ