optimized

This commit is contained in:
2026-03-29 16:05:52 +08:00
parent ca8d1238c4
commit b3cec3c133
10 changed files with 143 additions and 98 deletions

View File

@@ -14,73 +14,101 @@ namespace Writer
private void InitializeComponent()
{
this.txtFile = new System.Windows.Forms.TextBox();
this.btnBrowse = new System.Windows.Forms.Button();
this.txtUpload = new System.Windows.Forms.TextBox();
this.txtDownload = new System.Windows.Forms.TextBox();
this.lblFile = new System.Windows.Forms.Label();
this.lblUpload = new System.Windows.Forms.Label();
this.lblDownload = new System.Windows.Forms.Label();
this.btnWrite = new System.Windows.Forms.Button();
this.SuspendLayout();
txtFile = new TextBox();
btnBrowse = new Button();
txtUpload = new TextBox();
txtDownload = new TextBox();
lblFile = new Label();
lblUpload = new Label();
lblDownload = new Label();
btnWrite = new Button();
SuspendLayout();
//
// txtFile
this.txtFile.Location = new System.Drawing.Point(12, 30);
this.txtFile.Name = "txtFile";
this.txtFile.Size = new System.Drawing.Size(360, 23);
//
txtFile.Location = new Point(12, 30);
txtFile.Name = "txtFile";
txtFile.Size = new Size(360, 23);
txtFile.TabIndex = 0;
//
// btnBrowse
this.btnBrowse.Location = new System.Drawing.Point(378, 28);
this.btnBrowse.Name = "btnBrowse";
this.btnBrowse.Size = new System.Drawing.Size(75, 25);
this.btnBrowse.Text = "浏览";
this.btnBrowse.UseVisualStyleBackColor = true;
this.btnBrowse.Click += new System.EventHandler(this.btnBrowse_Click);
//
btnBrowse.Location = new Point(378, 28);
btnBrowse.Name = "btnBrowse";
btnBrowse.Size = new Size(75, 25);
btnBrowse.TabIndex = 1;
btnBrowse.Text = "浏览";
btnBrowse.UseVisualStyleBackColor = true;
btnBrowse.Click += btnBrowse_Click;
//
// txtUpload
this.txtUpload.Location = new System.Drawing.Point(12, 80);
this.txtUpload.Name = "txtUpload";
this.txtUpload.Size = new System.Drawing.Size(441, 23);
//
txtUpload.Location = new Point(12, 80);
txtUpload.Name = "txtUpload";
txtUpload.Size = new Size(441, 23);
txtUpload.TabIndex = 2;
//
// txtDownload
this.txtDownload.Location = new System.Drawing.Point(12, 130);
this.txtDownload.Name = "txtDownload";
this.txtDownload.Size = new System.Drawing.Size(441, 23);
// labels
this.lblFile.AutoSize = true;
this.lblFile.Location = new System.Drawing.Point(12, 12);
this.lblFile.Name = "lblFile";
this.lblFile.Size = new System.Drawing.Size(59, 15);
this.lblFile.Text = "目标文件";
this.lblUpload.AutoSize = true;
this.lblUpload.Location = new System.Drawing.Point(12, 62);
this.lblUpload.Name = "lblUpload";
this.lblUpload.Size = new System.Drawing.Size(83, 15);
this.lblUpload.Text = "上传暗码(上传)";
this.lblDownload.AutoSize = true;
this.lblDownload.Location = new System.Drawing.Point(12, 112);
this.lblDownload.Name = "lblDownload";
this.lblDownload.Size = new System.Drawing.Size(83, 15);
this.lblDownload.Text = "下载暗码(下载)";
//
txtDownload.Location = new Point(12, 130);
txtDownload.Name = "txtDownload";
txtDownload.Size = new Size(441, 23);
txtDownload.TabIndex = 3;
//
// lblFile
//
lblFile.AutoSize = true;
lblFile.Location = new Point(12, 12);
lblFile.Name = "lblFile";
lblFile.Size = new Size(56, 17);
lblFile.TabIndex = 4;
lblFile.Text = "目标文件";
//
// lblUpload
//
lblUpload.AutoSize = true;
lblUpload.Location = new Point(12, 62);
lblUpload.Name = "lblUpload";
lblUpload.Size = new Size(88, 17);
lblUpload.TabIndex = 5;
lblUpload.Text = "上传暗码(上传)";
//
// lblDownload
//
lblDownload.AutoSize = true;
lblDownload.Location = new Point(12, 112);
lblDownload.Name = "lblDownload";
lblDownload.Size = new Size(88, 17);
lblDownload.TabIndex = 6;
lblDownload.Text = "下载暗码(下载)";
//
// btnWrite
this.btnWrite.Location = new System.Drawing.Point(378, 170);
this.btnWrite.Name = "btnWrite";
this.btnWrite.Size = new System.Drawing.Size(75, 27);
this.btnWrite.Text = "开始写入";
this.btnWrite.UseVisualStyleBackColor = true;
this.btnWrite.Click += new System.EventHandler(this.btnWrite_Click);
//
btnWrite.Location = new Point(378, 170);
btnWrite.Name = "btnWrite";
btnWrite.Size = new Size(75, 27);
btnWrite.TabIndex = 7;
btnWrite.Text = "开始写入";
btnWrite.UseVisualStyleBackColor = true;
btnWrite.Click += btnWrite_Click;
//
// MainForm
this.ClientSize = new System.Drawing.Size(465, 209);
this.Controls.Add(this.txtFile);
this.Controls.Add(this.btnBrowse);
this.Controls.Add(this.txtUpload);
this.Controls.Add(this.txtDownload);
this.Controls.Add(this.lblFile);
this.Controls.Add(this.lblUpload);
this.Controls.Add(this.lblDownload);
this.Controls.Add(this.btnWrite);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.Name = "MainForm";
this.Text = "Writer - 写入暗码";
this.ResumeLayout(false);
this.PerformLayout();
//
ClientSize = new Size(465, 209);
Controls.Add(txtFile);
Controls.Add(btnBrowse);
Controls.Add(txtUpload);
Controls.Add(txtDownload);
Controls.Add(lblFile);
Controls.Add(lblUpload);
Controls.Add(lblDownload);
Controls.Add(btnWrite);
FormBorderStyle = FormBorderStyle.FixedDialog;
MaximizeBox = false;
Name = "MainForm";
Text = "二一教育暗码写入工具1.0.0.5";
ResumeLayout(false);
PerformLayout();
}
private System.Windows.Forms.TextBox txtFile;