📄 designreportaboutform.cs
字号:
using System;
using System.Reflection;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace TreeReportApp
{
/// <summary>
/// 报表模块的关于窗体
/// </summary>
public class AboutForm : System.Windows.Forms.Form
{
private System.Windows.Forms.Label lblVersion;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public AboutForm()
{
InitializeComponent();
}
/// <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()
{
this.lblVersion = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// lblVersion
//
this.lblVersion.BackColor = System.Drawing.Color.Transparent;
this.lblVersion.ForeColor = System.Drawing.Color.Black;
this.lblVersion.Location = new System.Drawing.Point(24, 16);
this.lblVersion.Name = "lblVersion";
this.lblVersion.Size = new System.Drawing.Size(272, 25);
this.lblVersion.TabIndex = 1;
this.lblVersion.Text = "Tree Reports Version (1.0)";
this.lblVersion.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// AboutForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(332, 77);
this.Controls.Add(this.lblVersion);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(283, 97);
this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(283, 97);
this.Name = "AboutForm";
this.Text = "Tree Reports About";
this.Load += new System.EventHandler(this.AboutForm_Load);
this.ResumeLayout(false);
}
#endregion
/// <summary>
/// AboutForm_Load - 在载入时设置当前程序集的版本
/// </summary>
private void AboutForm_Load(object sender, System.EventArgs e)
{
lblVersion.Text = "Tree Reports Version (" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() + ")";
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -