|
@@ -0,0 +1,219 @@
|
|
|
+namespace FileNameCharsetConvert
|
|
|
+{
|
|
|
+ partial class MainForm
|
|
|
+ {
|
|
|
+ /// <summary>
|
|
|
+ /// 必需的设计器变量。
|
|
|
+ /// </summary>
|
|
|
+ private System.ComponentModel.IContainer components = null;
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 清理所有正在使用的资源。
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
|
|
+ protected override void Dispose(bool disposing)
|
|
|
+ {
|
|
|
+ if (disposing && (components != null))
|
|
|
+ {
|
|
|
+ components.Dispose();
|
|
|
+ }
|
|
|
+ base.Dispose(disposing);
|
|
|
+ }
|
|
|
+
|
|
|
+ #region Windows 窗体设计器生成的代码
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 设计器支持所需的方法 - 不要
|
|
|
+ /// 使用代码编辑器修改此方法的内容。
|
|
|
+ /// </summary>
|
|
|
+ private void InitializeComponent()
|
|
|
+ {
|
|
|
+ System.Windows.Forms.ColumnHeader columnHeader1;
|
|
|
+ System.Windows.Forms.ColumnHeader columnHeader2;
|
|
|
+ System.Windows.Forms.ColumnHeader columnHeader3;
|
|
|
+ this.lvMain = new System.Windows.Forms.ListView();
|
|
|
+ this.txtFolder = new System.Windows.Forms.TextBox();
|
|
|
+ this.btnSelectFolder = new System.Windows.Forms.Button();
|
|
|
+ this.label1 = new System.Windows.Forms.Label();
|
|
|
+ this.btnScan = new System.Windows.Forms.Button();
|
|
|
+ this.cmbEncoding = new System.Windows.Forms.ComboBox();
|
|
|
+ this.btnConvert = new System.Windows.Forms.Button();
|
|
|
+ this.btnApplySelection = new System.Windows.Forms.Button();
|
|
|
+ this.dlgFolder = new System.Windows.Forms.FolderBrowserDialog();
|
|
|
+ this.proc = new System.Windows.Forms.ProgressBar();
|
|
|
+ this.label2 = new System.Windows.Forms.Label();
|
|
|
+ columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
|
+ columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
|
+ columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
|
+ this.SuspendLayout();
|
|
|
+ //
|
|
|
+ // columnHeader1
|
|
|
+ //
|
|
|
+ columnHeader1.Text = "原始文件名";
|
|
|
+ columnHeader1.Width = 235;
|
|
|
+ //
|
|
|
+ // columnHeader2
|
|
|
+ //
|
|
|
+ columnHeader2.Text = "目标文件名";
|
|
|
+ columnHeader2.Width = 191;
|
|
|
+ //
|
|
|
+ // columnHeader3
|
|
|
+ //
|
|
|
+ columnHeader3.Text = "状态";
|
|
|
+ columnHeader3.Width = 64;
|
|
|
+ //
|
|
|
+ // lvMain
|
|
|
+ //
|
|
|
+ this.lvMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
|
+ | System.Windows.Forms.AnchorStyles.Left)
|
|
|
+ | System.Windows.Forms.AnchorStyles.Right)));
|
|
|
+ this.lvMain.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
|
|
|
+ columnHeader1,
|
|
|
+ columnHeader2,
|
|
|
+ columnHeader3});
|
|
|
+ this.lvMain.FullRowSelect = true;
|
|
|
+ this.lvMain.HideSelection = false;
|
|
|
+ this.lvMain.Location = new System.Drawing.Point(12, 81);
|
|
|
+ this.lvMain.Name = "lvMain";
|
|
|
+ this.lvMain.Size = new System.Drawing.Size(597, 280);
|
|
|
+ this.lvMain.TabIndex = 0;
|
|
|
+ this.lvMain.UseCompatibleStateImageBehavior = false;
|
|
|
+ this.lvMain.View = System.Windows.Forms.View.Details;
|
|
|
+ //
|
|
|
+ // txtFolder
|
|
|
+ //
|
|
|
+ this.txtFolder.AllowDrop = true;
|
|
|
+ this.txtFolder.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|
|
+ | System.Windows.Forms.AnchorStyles.Right)));
|
|
|
+ this.txtFolder.Location = new System.Drawing.Point(56, 6);
|
|
|
+ this.txtFolder.Name = "txtFolder";
|
|
|
+ this.txtFolder.Size = new System.Drawing.Size(391, 21);
|
|
|
+ this.txtFolder.TabIndex = 1;
|
|
|
+ this.txtFolder.DragDrop += new System.Windows.Forms.DragEventHandler(this.txtFolder_DragDrop);
|
|
|
+ this.txtFolder.DragEnter += new System.Windows.Forms.DragEventHandler(this.txtFolder_DragEnter);
|
|
|
+ //
|
|
|
+ // btnSelectFolder
|
|
|
+ //
|
|
|
+ this.btnSelectFolder.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
|
|
+ this.btnSelectFolder.Location = new System.Drawing.Point(453, 4);
|
|
|
+ this.btnSelectFolder.Name = "btnSelectFolder";
|
|
|
+ this.btnSelectFolder.Size = new System.Drawing.Size(75, 23);
|
|
|
+ this.btnSelectFolder.TabIndex = 2;
|
|
|
+ this.btnSelectFolder.Text = "浏览";
|
|
|
+ this.btnSelectFolder.UseVisualStyleBackColor = true;
|
|
|
+ this.btnSelectFolder.Click += new System.EventHandler(this.btnSelectFolder_Click);
|
|
|
+ //
|
|
|
+ // label1
|
|
|
+ //
|
|
|
+ this.label1.AutoSize = true;
|
|
|
+ this.label1.Location = new System.Drawing.Point(12, 9);
|
|
|
+ this.label1.Name = "label1";
|
|
|
+ this.label1.Size = new System.Drawing.Size(41, 12);
|
|
|
+ this.label1.TabIndex = 3;
|
|
|
+ this.label1.Text = "文件夹";
|
|
|
+ //
|
|
|
+ // btnScan
|
|
|
+ //
|
|
|
+ this.btnScan.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
|
|
+ this.btnScan.Location = new System.Drawing.Point(534, 4);
|
|
|
+ this.btnScan.Name = "btnScan";
|
|
|
+ this.btnScan.Size = new System.Drawing.Size(71, 23);
|
|
|
+ this.btnScan.TabIndex = 4;
|
|
|
+ this.btnScan.Text = "扫描";
|
|
|
+ this.btnScan.UseVisualStyleBackColor = true;
|
|
|
+ this.btnScan.Click += new System.EventHandler(this.btnScan_Click);
|
|
|
+ //
|
|
|
+ // cmbEncoding
|
|
|
+ //
|
|
|
+ this.cmbEncoding.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|
|
+ | System.Windows.Forms.AnchorStyles.Right)));
|
|
|
+ this.cmbEncoding.DisplayMember = "DisplayName";
|
|
|
+ this.cmbEncoding.FormattingEnabled = true;
|
|
|
+ this.cmbEncoding.Location = new System.Drawing.Point(56, 38);
|
|
|
+ this.cmbEncoding.Name = "cmbEncoding";
|
|
|
+ this.cmbEncoding.Size = new System.Drawing.Size(391, 20);
|
|
|
+ this.cmbEncoding.TabIndex = 5;
|
|
|
+ //
|
|
|
+ // btnConvert
|
|
|
+ //
|
|
|
+ this.btnConvert.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
|
|
+ this.btnConvert.Location = new System.Drawing.Point(453, 36);
|
|
|
+ this.btnConvert.Name = "btnConvert";
|
|
|
+ this.btnConvert.Size = new System.Drawing.Size(75, 23);
|
|
|
+ this.btnConvert.TabIndex = 6;
|
|
|
+ this.btnConvert.Text = "转换文件名";
|
|
|
+ this.btnConvert.UseVisualStyleBackColor = true;
|
|
|
+ this.btnConvert.Click += new System.EventHandler(this.btnConvert_Click);
|
|
|
+ //
|
|
|
+ // btnApplySelection
|
|
|
+ //
|
|
|
+ this.btnApplySelection.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
|
|
+ this.btnApplySelection.Location = new System.Drawing.Point(534, 36);
|
|
|
+ this.btnApplySelection.Name = "btnApplySelection";
|
|
|
+ this.btnApplySelection.Size = new System.Drawing.Size(71, 23);
|
|
|
+ this.btnApplySelection.TabIndex = 6;
|
|
|
+ this.btnApplySelection.Text = "应用选中";
|
|
|
+ this.btnApplySelection.UseVisualStyleBackColor = true;
|
|
|
+ this.btnApplySelection.Click += new System.EventHandler(this.btnApplySelection_Click);
|
|
|
+ //
|
|
|
+ // dlgFolder
|
|
|
+ //
|
|
|
+ this.dlgFolder.RootFolder = System.Environment.SpecialFolder.MyComputer;
|
|
|
+ //
|
|
|
+ // proc
|
|
|
+ //
|
|
|
+ this.proc.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|
|
+ | System.Windows.Forms.AnchorStyles.Right)));
|
|
|
+ this.proc.Location = new System.Drawing.Point(12, 65);
|
|
|
+ this.proc.Name = "proc";
|
|
|
+ this.proc.Size = new System.Drawing.Size(595, 10);
|
|
|
+ this.proc.TabIndex = 7;
|
|
|
+ //
|
|
|
+ // label2
|
|
|
+ //
|
|
|
+ this.label2.AutoSize = true;
|
|
|
+ this.label2.Location = new System.Drawing.Point(12, 41);
|
|
|
+ this.label2.Name = "label2";
|
|
|
+ this.label2.Size = new System.Drawing.Size(29, 12);
|
|
|
+ this.label2.TabIndex = 8;
|
|
|
+ this.label2.Text = "编码";
|
|
|
+ //
|
|
|
+ // Form1
|
|
|
+ //
|
|
|
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|
|
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
+ this.ClientSize = new System.Drawing.Size(621, 373);
|
|
|
+ this.Controls.Add(this.label2);
|
|
|
+ this.Controls.Add(this.proc);
|
|
|
+ this.Controls.Add(this.btnApplySelection);
|
|
|
+ this.Controls.Add(this.btnConvert);
|
|
|
+ this.Controls.Add(this.cmbEncoding);
|
|
|
+ this.Controls.Add(this.btnScan);
|
|
|
+ this.Controls.Add(this.label1);
|
|
|
+ this.Controls.Add(this.btnSelectFolder);
|
|
|
+ this.Controls.Add(this.txtFolder);
|
|
|
+ this.Controls.Add(this.lvMain);
|
|
|
+ this.MinimumSize = new System.Drawing.Size(530, 400);
|
|
|
+ this.Name = "Form1";
|
|
|
+ this.Text = "乱码文件名修正";
|
|
|
+ this.ResumeLayout(false);
|
|
|
+ this.PerformLayout();
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ private System.Windows.Forms.ListView lvMain;
|
|
|
+ private System.Windows.Forms.TextBox txtFolder;
|
|
|
+ private System.Windows.Forms.Button btnSelectFolder;
|
|
|
+ private System.Windows.Forms.Label label1;
|
|
|
+ private System.Windows.Forms.Button btnScan;
|
|
|
+ private System.Windows.Forms.ComboBox cmbEncoding;
|
|
|
+ private System.Windows.Forms.Button btnConvert;
|
|
|
+ private System.Windows.Forms.Button btnApplySelection;
|
|
|
+ private System.Windows.Forms.FolderBrowserDialog dlgFolder;
|
|
|
+ private System.Windows.Forms.ProgressBar proc;
|
|
|
+ private System.Windows.Forms.Label label2;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|