⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 formmain.cs

📁 一个C#开发的简繁体内码转换系统。对做内码转换的朋友会有一定帮助。
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace Unicode_Gb2312
{
	/// <summary>
	/// Summary description for Form1.
	/// </summary>
	public class FormMain : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Button button_Select;
		private System.Windows.Forms.FolderBrowserDialog pathBrowser;
		private System.Windows.Forms.TextBox tBFilePath;
		private System.Windows.Forms.CheckedListBox cLB_FilesList;
		private System.Windows.Forms.CheckBox cbSelectAll;
		private System.Windows.Forms.Button btGBtoUTF8;
		private System.Windows.Forms.Button btUTF8toGB;
		private System.Windows.Forms.ProgressBar pBTranStatus;
		private System.Windows.Forms.Label lbCurFile;
		private System.Windows.Forms.TextBox tbTargetPath;
		private System.Windows.Forms.Button btTargetPate;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.FolderBrowserDialog fbdTargetPath;
		private System.Windows.Forms.CheckBox cbReplaceCodePage;
		private System.Windows.Forms.Button btBig5ToGb2312;
		private System.Windows.Forms.Button btGb2312ToBig5;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public FormMain()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FormMain));
			this.cLB_FilesList = new System.Windows.Forms.CheckedListBox();
			this.pathBrowser = new System.Windows.Forms.FolderBrowserDialog();
			this.button_Select = new System.Windows.Forms.Button();
			this.tBFilePath = new System.Windows.Forms.TextBox();
			this.cbSelectAll = new System.Windows.Forms.CheckBox();
			this.btGBtoUTF8 = new System.Windows.Forms.Button();
			this.btUTF8toGB = new System.Windows.Forms.Button();
			this.pBTranStatus = new System.Windows.Forms.ProgressBar();
			this.lbCurFile = new System.Windows.Forms.Label();
			this.tbTargetPath = new System.Windows.Forms.TextBox();
			this.btTargetPate = new System.Windows.Forms.Button();
			this.label1 = new System.Windows.Forms.Label();
			this.fbdTargetPath = new System.Windows.Forms.FolderBrowserDialog();
			this.cbReplaceCodePage = new System.Windows.Forms.CheckBox();
			this.btBig5ToGb2312 = new System.Windows.Forms.Button();
			this.btGb2312ToBig5 = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// cLB_FilesList
			// 
			this.cLB_FilesList.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.cLB_FilesList.CheckOnClick = true;
			this.cLB_FilesList.HorizontalScrollbar = true;
			this.cLB_FilesList.Location = new System.Drawing.Point(8, 32);
			this.cLB_FilesList.Name = "cLB_FilesList";
			this.cLB_FilesList.Size = new System.Drawing.Size(307, 210);
			this.cLB_FilesList.TabIndex = 0;
			// 
			// pathBrowser
			// 
			this.pathBrowser.Description = "This is Translation Source Path. Pleas Select...";
			this.pathBrowser.ShowNewFolderButton = false;
			// 
			// button_Select
			// 
			this.button_Select.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.button_Select.Location = new System.Drawing.Point(240, 8);
			this.button_Select.Name = "button_Select";
			this.button_Select.Size = new System.Drawing.Size(75, 21);
			this.button_Select.TabIndex = 3;
			this.button_Select.Text = "Path...";
			this.button_Select.Click += new System.EventHandler(this.button1_Click);
			// 
			// tBFilePath
			// 
			this.tBFilePath.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.tBFilePath.Location = new System.Drawing.Point(8, 8);
			this.tBFilePath.Name = "tBFilePath";
			this.tBFilePath.Size = new System.Drawing.Size(233, 21);
			this.tBFilePath.TabIndex = 2;
			this.tBFilePath.Text = "";
			this.tBFilePath.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tBFilePath_KeyDown);
			// 
			// cbSelectAll
			// 
			this.cbSelectAll.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.cbSelectAll.Location = new System.Drawing.Point(8, 248);
			this.cbSelectAll.Name = "cbSelectAll";
			this.cbSelectAll.Size = new System.Drawing.Size(96, 16);
			this.cbSelectAll.TabIndex = 4;
			this.cbSelectAll.Text = "Selected All";
			this.cbSelectAll.CheckedChanged += new System.EventHandler(this.cbSelectAll_CheckedChanged);
			// 
			// btGBtoUTF8
			// 
			this.btGBtoUTF8.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.btGBtoUTF8.Font = new System.Drawing.Font("SimSun", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.btGBtoUTF8.Location = new System.Drawing.Point(320, 56);
			this.btGBtoUTF8.Name = "btGBtoUTF8";
			this.btGBtoUTF8.Size = new System.Drawing.Size(148, 32);
			this.btGBtoUTF8.TabIndex = 5;
			this.btGBtoUTF8.Text = "GB2312 To UTF8";
			this.btGBtoUTF8.Click += new System.EventHandler(this.btGBtoUTF8_Click);
			// 
			// btUTF8toGB
			// 
			this.btUTF8toGB.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.btUTF8toGB.Font = new System.Drawing.Font("SimSun", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.btUTF8toGB.Location = new System.Drawing.Point(320, 96);
			this.btUTF8toGB.Name = "btUTF8toGB";
			this.btUTF8toGB.Size = new System.Drawing.Size(148, 32);
			this.btUTF8toGB.TabIndex = 6;
			this.btUTF8toGB.Text = "UTF8 To GB2312";
			this.btUTF8toGB.Click += new System.EventHandler(this.btUTF8toGB_Click);
			// 
			// pBTranStatus
			// 
			this.pBTranStatus.Location = new System.Drawing.Point(328, 240);
			this.pBTranStatus.Name = "pBTranStatus";
			this.pBTranStatus.Size = new System.Drawing.Size(136, 24);
			this.pBTranStatus.Step = 1;
			this.pBTranStatus.TabIndex = 7;
			// 
			// lbCurFile
			// 
			this.lbCurFile.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.lbCurFile.Location = new System.Drawing.Point(328, 224);
			this.lbCurFile.Name = "lbCurFile";
			this.lbCurFile.Size = new System.Drawing.Size(136, 16);
			this.lbCurFile.TabIndex = 8;
			this.lbCurFile.Text = "Current File...";
			// 
			// tbTargetPath
			// 
			this.tbTargetPath.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.tbTargetPath.Location = new System.Drawing.Point(320, 24);
			this.tbTargetPath.Name = "tbTargetPath";
			this.tbTargetPath.TabIndex = 9;
			this.tbTargetPath.Text = "";
			// 
			// btTargetPate
			// 
			this.btTargetPate.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.btTargetPate.Location = new System.Drawing.Point(419, 24);
			this.btTargetPate.Name = "btTargetPate";
			this.btTargetPate.Size = new System.Drawing.Size(48, 21);
			this.btTargetPate.TabIndex = 10;
			this.btTargetPate.Text = "Path...";
			this.btTargetPate.Click += new System.EventHandler(this.btTargetPate_Click);
			// 
			// label1
			// 
			this.label1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.label1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.label1.Location = new System.Drawing.Point(320, 8);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(88, 14);
			this.label1.TabIndex = 11;
			this.label1.Text = "Target Path:";
			// 
			// fbdTargetPath
			// 
			this.fbdTargetPath.Description = "This is Translation Target Path. Pleas Selected Or Create New..";
			// 
			// cbReplaceCodePage
			// 
			this.cbReplaceCodePage.Checked = true;
			this.cbReplaceCodePage.CheckState = System.Windows.Forms.CheckState.Checked;
			this.cbReplaceCodePage.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.cbReplaceCodePage.Location = new System.Drawing.Point(112, 248);
			this.cbReplaceCodePage.Name = "cbReplaceCodePage";
			this.cbReplaceCodePage.Size = new System.Drawing.Size(120, 16);
			this.cbReplaceCodePage.TabIndex = 13;
			this.cbReplaceCodePage.Text = "Replace CodePage";
			// 
			// btBig5ToGb2312
			// 
			this.btBig5ToGb2312.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.btBig5ToGb2312.Font = new System.Drawing.Font("SimSun", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.btBig5ToGb2312.Location = new System.Drawing.Point(320, 136);
			this.btBig5ToGb2312.Name = "btBig5ToGb2312";
			this.btBig5ToGb2312.Size = new System.Drawing.Size(148, 32);
			this.btBig5ToGb2312.TabIndex = 14;
			this.btBig5ToGb2312.Text = "BIG5 To GB2312";
			this.btBig5ToGb2312.Click += new System.EventHandler(this.btBig5ToGb2312_Click);
			// 
			// btGb2312ToBig5
			// 
			this.btGb2312ToBig5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.btGb2312ToBig5.Font = new System.Drawing.Font("SimSun", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.btGb2312ToBig5.Location = new System.Drawing.Point(320, 176);
			this.btGb2312ToBig5.Name = "btGb2312ToBig5";
			this.btGb2312ToBig5.Size = new System.Drawing.Size(148, 32);
			this.btGb2312ToBig5.TabIndex = 15;
			this.btGb2312ToBig5.Text = "GB2312 To BIG5";
			this.btGb2312ToBig5.Click += new System.EventHandler(this.btGb2312ToBig5_Click);
			// 
			// FormMain
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(480, 269);
			this.Controls.Add(this.btGb2312ToBig5);
			this.Controls.Add(this.btBig5ToGb2312);
			this.Controls.Add(this.cbReplaceCodePage);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.btTargetPate);
			this.Controls.Add(this.tbTargetPath);
			this.Controls.Add(this.lbCurFile);
			this.Controls.Add(this.pBTranStatus);
			this.Controls.Add(this.btUTF8toGB);
			this.Controls.Add(this.btGBtoUTF8);
			this.Controls.Add(this.cbSelectAll);
			this.Controls.Add(this.tBFilePath);
			this.Controls.Add(this.button_Select);
			this.Controls.Add(this.cLB_FilesList);
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.Name = "FormMain";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "Unicode Gb2312";
			this.ResumeLayout(false);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -