在Form1.cs中,当在线MD5文件验证失败时,增加状态更新和延迟关闭窗口的逻辑,以避免程序卡死。同时在Form1.Designer.cs中,将窗口设置为不在任务栏显示,以提升用户体验。
91 lines
3.3 KiB
C#
91 lines
3.3 KiB
C#
namespace CheckDownload
|
||
{
|
||
partial class Update
|
||
{
|
||
/// <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()
|
||
{
|
||
this.Update_Text = new System.Windows.Forms.Label();
|
||
this.Update_Pro = new System.Windows.Forms.ProgressBar();
|
||
this.Status_Box = new System.Windows.Forms.Label();
|
||
this.SuspendLayout();
|
||
//
|
||
// Update_Text
|
||
//
|
||
this.Update_Text.AutoSize = true;
|
||
this.Update_Text.Location = new System.Drawing.Point(12, 12);
|
||
this.Update_Text.Name = "Update_Text";
|
||
this.Update_Text.Size = new System.Drawing.Size(59, 12);
|
||
this.Update_Text.TabIndex = 0;
|
||
this.Update_Text.Text = "更新状态:";
|
||
//
|
||
// Update_Pro
|
||
//
|
||
this.Update_Pro.Location = new System.Drawing.Point(12, 36);
|
||
this.Update_Pro.Name = "Update_Pro";
|
||
this.Update_Pro.Size = new System.Drawing.Size(339, 23);
|
||
this.Update_Pro.TabIndex = 1;
|
||
//
|
||
// Status_Box
|
||
//
|
||
this.Status_Box.AutoSize = true;
|
||
this.Status_Box.Location = new System.Drawing.Point(72, 12);
|
||
this.Status_Box.Name = "Status_Box";
|
||
this.Status_Box.Size = new System.Drawing.Size(23, 12);
|
||
this.Status_Box.TabIndex = 2;
|
||
this.Status_Box.Text = "...";
|
||
//
|
||
// Update
|
||
//
|
||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||
this.ClientSize = new System.Drawing.Size(363, 73);
|
||
this.ControlBox = false;
|
||
this.Controls.Add(this.Status_Box);
|
||
this.Controls.Add(this.Update_Pro);
|
||
this.Controls.Add(this.Update_Text);
|
||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||
this.MaximizeBox = false;
|
||
this.MinimizeBox = false;
|
||
this.Name = "Update";
|
||
this.ShowInTaskbar = false;
|
||
this.Text = "自动更新";
|
||
this.TopMost = true;
|
||
this.Load += new System.EventHandler(this.Update_Load);
|
||
this.ResumeLayout(false);
|
||
this.PerformLayout();
|
||
|
||
}
|
||
|
||
#endregion
|
||
|
||
private System.Windows.Forms.Label Update_Text;
|
||
private System.Windows.Forms.ProgressBar Update_Pro;
|
||
private System.Windows.Forms.Label Status_Box;
|
||
}
|
||
}
|
||
|