|
@@ -0,0 +1,263 @@
|
|
|
+namespace FileCharsetConvert
|
|
|
+{
|
|
|
+ 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()
|
|
|
+ {
|
|
|
+ ColumnHeader columnHeader1;
|
|
|
+ ColumnHeader columnHeader3;
|
|
|
+ label2 = new Label();
|
|
|
+ proc = new ProgressBar();
|
|
|
+ btnApplySelection = new Button();
|
|
|
+ cmbInEnc = new ComboBox();
|
|
|
+ btnScan = new Button();
|
|
|
+ label1 = new Label();
|
|
|
+ btnSelectFolder = new Button();
|
|
|
+ txtFolder = new TextBox();
|
|
|
+ lvMain = new ListView();
|
|
|
+ chkSubDir = new CheckBox();
|
|
|
+ txtFlt = new TextBox();
|
|
|
+ label3 = new Label();
|
|
|
+ cmbOutEnc = new ComboBox();
|
|
|
+ label4 = new Label();
|
|
|
+ dlgFolder = new FolderBrowserDialog();
|
|
|
+ columnHeader1 = new ColumnHeader();
|
|
|
+ columnHeader3 = new ColumnHeader();
|
|
|
+ SuspendLayout();
|
|
|
+ //
|
|
|
+ // columnHeader1
|
|
|
+ //
|
|
|
+ columnHeader1.Text = "文件名(双击预览)";
|
|
|
+ columnHeader1.Width = 427;
|
|
|
+ //
|
|
|
+ // columnHeader3
|
|
|
+ //
|
|
|
+ columnHeader3.Text = "状态";
|
|
|
+ columnHeader3.Width = 64;
|
|
|
+ //
|
|
|
+ // label2
|
|
|
+ //
|
|
|
+ label2.AutoSize = true;
|
|
|
+ label2.Location = new Point(14, 86);
|
|
|
+ label2.Margin = new Padding(4, 0, 4, 0);
|
|
|
+ label2.Name = "label2";
|
|
|
+ label2.Size = new Size(44, 17);
|
|
|
+ label2.TabIndex = 18;
|
|
|
+ label2.Text = "读编码";
|
|
|
+ //
|
|
|
+ // proc
|
|
|
+ //
|
|
|
+ proc.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
|
+ proc.Location = new Point(14, 154);
|
|
|
+ proc.Margin = new Padding(4, 4, 4, 4);
|
|
|
+ proc.Name = "proc";
|
|
|
+ proc.Size = new Size(584, 14);
|
|
|
+ proc.TabIndex = 17;
|
|
|
+ //
|
|
|
+ // btnApplySelection
|
|
|
+ //
|
|
|
+ btnApplySelection.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
|
+ btnApplySelection.Location = new Point(511, 103);
|
|
|
+ btnApplySelection.Margin = new Padding(4, 4, 4, 4);
|
|
|
+ btnApplySelection.Name = "btnApplySelection";
|
|
|
+ btnApplySelection.Size = new Size(88, 33);
|
|
|
+ btnApplySelection.TabIndex = 7;
|
|
|
+ btnApplySelection.Text = "应用选中";
|
|
|
+ btnApplySelection.UseVisualStyleBackColor = true;
|
|
|
+ btnApplySelection.Click += btnApplySelection_Click;
|
|
|
+ //
|
|
|
+ // cmbInEnc
|
|
|
+ //
|
|
|
+ cmbInEnc.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
|
+ cmbInEnc.DisplayMember = "DisplayName";
|
|
|
+ cmbInEnc.FormattingEnabled = true;
|
|
|
+ cmbInEnc.Location = new Point(65, 82);
|
|
|
+ cmbInEnc.Margin = new Padding(4, 4, 4, 4);
|
|
|
+ cmbInEnc.Name = "cmbInEnc";
|
|
|
+ cmbInEnc.Size = new Size(438, 25);
|
|
|
+ cmbInEnc.TabIndex = 5;
|
|
|
+ //
|
|
|
+ // btnScan
|
|
|
+ //
|
|
|
+ btnScan.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
|
+ btnScan.Location = new Point(511, 47);
|
|
|
+ btnScan.Margin = new Padding(4, 4, 4, 4);
|
|
|
+ btnScan.Name = "btnScan";
|
|
|
+ btnScan.Size = new Size(88, 33);
|
|
|
+ btnScan.TabIndex = 4;
|
|
|
+ btnScan.Text = "扫描";
|
|
|
+ btnScan.UseVisualStyleBackColor = true;
|
|
|
+ btnScan.Click += btnScan_Click;
|
|
|
+ //
|
|
|
+ // label1
|
|
|
+ //
|
|
|
+ label1.AutoSize = true;
|
|
|
+ label1.Location = new Point(14, 13);
|
|
|
+ label1.Margin = new Padding(4, 0, 4, 0);
|
|
|
+ label1.Name = "label1";
|
|
|
+ label1.Size = new Size(44, 17);
|
|
|
+ label1.TabIndex = 12;
|
|
|
+ label1.Text = "文件夹";
|
|
|
+ //
|
|
|
+ // btnSelectFolder
|
|
|
+ //
|
|
|
+ btnSelectFolder.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
|
+ btnSelectFolder.Location = new Point(511, 6);
|
|
|
+ btnSelectFolder.Margin = new Padding(4, 4, 4, 4);
|
|
|
+ btnSelectFolder.Name = "btnSelectFolder";
|
|
|
+ btnSelectFolder.Size = new Size(88, 33);
|
|
|
+ btnSelectFolder.TabIndex = 1;
|
|
|
+ btnSelectFolder.Text = "浏览";
|
|
|
+ btnSelectFolder.UseVisualStyleBackColor = true;
|
|
|
+ btnSelectFolder.Click += btnSelectFolder_Click;
|
|
|
+ //
|
|
|
+ // txtFolder
|
|
|
+ //
|
|
|
+ txtFolder.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
|
+ txtFolder.Location = new Point(65, 8);
|
|
|
+ txtFolder.Margin = new Padding(4, 4, 4, 4);
|
|
|
+ txtFolder.Name = "txtFolder";
|
|
|
+ txtFolder.Size = new Size(438, 23);
|
|
|
+ txtFolder.TabIndex = 0;
|
|
|
+ //
|
|
|
+ // lvMain
|
|
|
+ //
|
|
|
+ lvMain.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
|
+ lvMain.Columns.AddRange(new ColumnHeader[] { columnHeader1, columnHeader3 });
|
|
|
+ lvMain.FullRowSelect = true;
|
|
|
+ lvMain.Location = new Point(14, 177);
|
|
|
+ lvMain.Margin = new Padding(4, 4, 4, 4);
|
|
|
+ lvMain.Name = "lvMain";
|
|
|
+ lvMain.Size = new Size(584, 438);
|
|
|
+ lvMain.TabIndex = 8;
|
|
|
+ lvMain.UseCompatibleStateImageBehavior = false;
|
|
|
+ lvMain.View = View.Details;
|
|
|
+ lvMain.MouseDoubleClick += lvMain_MouseDoubleClick;
|
|
|
+ //
|
|
|
+ // chkSubDir
|
|
|
+ //
|
|
|
+ chkSubDir.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
|
+ chkSubDir.AutoSize = true;
|
|
|
+ chkSubDir.Location = new Point(405, 47);
|
|
|
+ chkSubDir.Margin = new Padding(4, 4, 4, 4);
|
|
|
+ chkSubDir.Name = "chkSubDir";
|
|
|
+ chkSubDir.Size = new Size(99, 21);
|
|
|
+ chkSubDir.TabIndex = 3;
|
|
|
+ chkSubDir.Text = "包含子文件夹";
|
|
|
+ chkSubDir.UseVisualStyleBackColor = true;
|
|
|
+ //
|
|
|
+ // txtFlt
|
|
|
+ //
|
|
|
+ txtFlt.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
|
+ txtFlt.Location = new Point(65, 44);
|
|
|
+ txtFlt.Margin = new Padding(4, 4, 4, 4);
|
|
|
+ txtFlt.Name = "txtFlt";
|
|
|
+ txtFlt.Size = new Size(319, 23);
|
|
|
+ txtFlt.TabIndex = 2;
|
|
|
+ txtFlt.Text = "*.txt;*.cs;*.aspx";
|
|
|
+ //
|
|
|
+ // label3
|
|
|
+ //
|
|
|
+ label3.AutoSize = true;
|
|
|
+ label3.Location = new Point(14, 48);
|
|
|
+ label3.Margin = new Padding(4, 0, 4, 0);
|
|
|
+ label3.Name = "label3";
|
|
|
+ label3.Size = new Size(32, 17);
|
|
|
+ label3.TabIndex = 21;
|
|
|
+ label3.Text = "过滤";
|
|
|
+ //
|
|
|
+ // cmbOutEnc
|
|
|
+ //
|
|
|
+ cmbOutEnc.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
|
+ cmbOutEnc.DisplayMember = "DisplayName";
|
|
|
+ cmbOutEnc.FormattingEnabled = true;
|
|
|
+ cmbOutEnc.Location = new Point(65, 119);
|
|
|
+ cmbOutEnc.Margin = new Padding(4, 4, 4, 4);
|
|
|
+ cmbOutEnc.Name = "cmbOutEnc";
|
|
|
+ cmbOutEnc.Size = new Size(438, 25);
|
|
|
+ cmbOutEnc.TabIndex = 6;
|
|
|
+ //
|
|
|
+ // label4
|
|
|
+ //
|
|
|
+ label4.AutoSize = true;
|
|
|
+ label4.Location = new Point(14, 123);
|
|
|
+ label4.Margin = new Padding(4, 0, 4, 0);
|
|
|
+ label4.Name = "label4";
|
|
|
+ label4.Size = new Size(44, 17);
|
|
|
+ label4.TabIndex = 18;
|
|
|
+ label4.Text = "写编码";
|
|
|
+ //
|
|
|
+ // dlgFolder
|
|
|
+ //
|
|
|
+ dlgFolder.RootFolder = Environment.SpecialFolder.MyComputer;
|
|
|
+ //
|
|
|
+ // MainForm
|
|
|
+ //
|
|
|
+ AutoScaleDimensions = new SizeF(7F, 17F);
|
|
|
+ AutoScaleMode = AutoScaleMode.Font;
|
|
|
+ ClientSize = new Size(612, 633);
|
|
|
+ Controls.Add(label3);
|
|
|
+ Controls.Add(txtFlt);
|
|
|
+ Controls.Add(chkSubDir);
|
|
|
+ Controls.Add(label4);
|
|
|
+ Controls.Add(label2);
|
|
|
+ Controls.Add(proc);
|
|
|
+ Controls.Add(btnApplySelection);
|
|
|
+ Controls.Add(cmbOutEnc);
|
|
|
+ Controls.Add(cmbInEnc);
|
|
|
+ Controls.Add(btnScan);
|
|
|
+ Controls.Add(label1);
|
|
|
+ Controls.Add(btnSelectFolder);
|
|
|
+ Controls.Add(txtFolder);
|
|
|
+ Controls.Add(lvMain);
|
|
|
+ Margin = new Padding(4, 4, 4, 4);
|
|
|
+ Name = "MainForm";
|
|
|
+ Text = "文件编码转换";
|
|
|
+ ResumeLayout(false);
|
|
|
+ PerformLayout();
|
|
|
+ }
|
|
|
+
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ private System.Windows.Forms.Label label2;
|
|
|
+ private System.Windows.Forms.ProgressBar proc;
|
|
|
+ private System.Windows.Forms.Button btnApplySelection;
|
|
|
+ private System.Windows.Forms.ComboBox cmbInEnc;
|
|
|
+ private System.Windows.Forms.Button btnScan;
|
|
|
+ private System.Windows.Forms.Label label1;
|
|
|
+ private System.Windows.Forms.Button btnSelectFolder;
|
|
|
+ private System.Windows.Forms.TextBox txtFolder;
|
|
|
+ private System.Windows.Forms.ListView lvMain;
|
|
|
+ private System.Windows.Forms.CheckBox chkSubDir;
|
|
|
+ private System.Windows.Forms.TextBox txtFlt;
|
|
|
+ private System.Windows.Forms.Label label3;
|
|
|
+ private System.Windows.Forms.ComboBox cmbOutEnc;
|
|
|
+ private System.Windows.Forms.Label label4;
|
|
|
+ private System.Windows.Forms.FolderBrowserDialog dlgFolder;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|