📄 dlgfrmabout.cs
字号:
using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Windows.Forms;namespace WWAM.Forms.Dlg{ public class DlgFrmAbout : WWAM.Forms.Dlg.DlgBase {
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label lblAuth; private System.ComponentModel.IContainer components = null; public DlgFrmAbout() { // 该调用是 Windows 窗体设计器所必需的。 InitializeComponent(); // TODO: 在 InitializeComponent 调用后添加任何初始化 } public DlgFrmAbout(Form form):base(form) { // 该调用是 Windows 窗体设计器所必需的。 InitializeComponent(); // TODO: 在 InitializeComponent 调用后添加任何初始化 } /// <summary> /// 清理所有正在使用的资源。 /// </summary> protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region 设计器生成的代码 /// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(DlgFrmAbout));
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.lblAuth = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// btnAccept
//
this.btnAccept.Location = new System.Drawing.Point(144, 0);
this.btnAccept.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Skin;
this.btnAccept.LookAndFeel.UseWindowsXPTheme = false;
this.btnAccept.Name = "btnAccept";
this.btnAccept.Visible = false;
//
// btnCancel
//
this.btnCancel.Location = new System.Drawing.Point(240, 0);
this.btnCancel.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Skin;
this.btnCancel.LookAndFeel.UseWindowsXPTheme = false;
this.btnCancel.Name = "btnCancel";
this.btnCancel.Visible = false;
//
// pictureBox1
//
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(420, 152);
this.pictureBox1.TabIndex = 3;
this.pictureBox1.TabStop = false;
//
// lblAuth
//
this.lblAuth.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(240)), ((System.Byte)(237)), ((System.Byte)(237)));
this.lblAuth.Location = new System.Drawing.Point(168, 112);
this.lblAuth.Name = "lblAuth";
this.lblAuth.Size = new System.Drawing.Size(208, 16);
this.lblAuth.TabIndex = 4;
this.lblAuth.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// DlgFrmAbout
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(420, 152);
this.Controls.Add(this.lblAuth);
this.Controls.Add(this.pictureBox1);
this.Name = "DlgFrmAbout";
this.Text = "关于";
this.Controls.SetChildIndex(this.pictureBox1, 0);
this.Controls.SetChildIndex(this.lblAuth, 0);
this.Controls.SetChildIndex(this.btnCancel, 0);
this.Controls.SetChildIndex(this.btnAccept, 0);
this.ResumeLayout(false);
} #endregion protected override void OnLoad(EventArgs e)
{
base.OnLoad (e);
lblAuth.Text = "授权给:"+WWAM.XMLConfig.GetNodeValue("Authorization");
}
}}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -