📄 frmabout.cs
字号:
//
this.cmdOK.AccessibleDescription = (string) resources.GetObject("cmdOK.AccessibleDescription");
this.cmdOK.AccessibleName = (string) resources.GetObject("cmdOK.AccessibleName");
this.cmdOK.Anchor = (System.Windows.Forms.AnchorStyles) resources.GetObject("cmdOK.Anchor");
this.cmdOK.BackgroundImage = (System.Drawing.Image) resources.GetObject("cmdOK.BackgroundImage");
this.cmdOK.DialogResult = System.Windows.Forms.DialogResult.OK;
this.cmdOK.Dock = (System.Windows.Forms.DockStyle) resources.GetObject("cmdOK.Dock");
this.cmdOK.Enabled = (bool) resources.GetObject("cmdOK.Enabled");
this.cmdOK.FlatStyle = (System.Windows.Forms.FlatStyle) resources.GetObject("cmdOK.FlatStyle");
this.cmdOK.Font = (System.Drawing.Font) resources.GetObject("cmdOK.Font");
this.cmdOK.Image = (System.Drawing.Image) resources.GetObject("cmdOK.Image");
this.cmdOK.ImageAlign = (System.Drawing.ContentAlignment) resources.GetObject("cmdOK.ImageAlign");
this.cmdOK.ImageIndex = (int) resources.GetObject("cmdOK.ImageIndex");
this.cmdOK.ImeMode = (System.Windows.Forms.ImeMode) resources.GetObject("cmdOK.ImeMode");
this.cmdOK.Location = (System.Drawing.Point) resources.GetObject("cmdOK.Location");
this.cmdOK.Name = "cmdOK";
this.cmdOK.RightToLeft = (System.Windows.Forms.RightToLeft) resources.GetObject("cmdOK.RightToLeft");
this.cmdOK.Size = (System.Drawing.Size) resources.GetObject("cmdOK.Size");
this.cmdOK.TabIndex = (int) resources.GetObject("cmdOK.TabIndex");
this.cmdOK.Text = resources.GetString("cmdOK.Text");
this.cmdOK.TextAlign = (System.Drawing.ContentAlignment) resources.GetObject("cmdOK.TextAlign");
this.cmdOK.Visible = (bool) resources.GetObject("cmdOK.Visible");
//
//lblCopyright
//
this.lblCopyright.AccessibleDescription = (string) resources.GetObject("lblCopyright.AccessibleDescription");
this.lblCopyright.AccessibleName = (string) resources.GetObject("lblCopyright.AccessibleName");
this.lblCopyright.Anchor = (System.Windows.Forms.AnchorStyles) resources.GetObject("lblCopyright.Anchor");
this.lblCopyright.AutoSize = (bool) resources.GetObject("lblCopyright.AutoSize");
this.lblCopyright.Dock = (System.Windows.Forms.DockStyle) resources.GetObject("lblCopyright.Dock");
this.lblCopyright.Enabled = (bool) resources.GetObject("lblCopyright.Enabled");
this.lblCopyright.Font = (System.Drawing.Font) resources.GetObject("lblCopyright.Font");
this.lblCopyright.Image = (System.Drawing.Image) resources.GetObject("lblCopyright.Image");
this.lblCopyright.ImageAlign = (System.Drawing.ContentAlignment) resources.GetObject("lblCopyright.ImageAlign");
this.lblCopyright.ImageIndex = (int) resources.GetObject("lblCopyright.ImageIndex");
this.lblCopyright.ImeMode = (System.Windows.Forms.ImeMode) resources.GetObject("lblCopyright.ImeMode");
this.lblCopyright.Location = (System.Drawing.Point) resources.GetObject("lblCopyright.Location");
this.lblCopyright.Name = "lblCopyright";
this.lblCopyright.RightToLeft = (System.Windows.Forms.RightToLeft) resources.GetObject("lblCopyright.RightToLeft");
this.lblCopyright.Size = (System.Drawing.Size) resources.GetObject("lblCopyright.Size");
this.lblCopyright.TabIndex = (int) resources.GetObject("lblCopyright.TabIndex");
this.lblCopyright.Text = resources.GetString("lblCopyright.Text");
this.lblCopyright.TextAlign = (System.Drawing.ContentAlignment) resources.GetObject("lblCopyright.TextAlign");
this.lblCopyright.Visible = (bool) resources.GetObject("lblCopyright.Visible");
//
//lblCodebase
//
this.lblCodebase.AccessibleDescription = (string) resources.GetObject("lblCodebase.AccessibleDescription");
this.lblCodebase.AccessibleName = (string) resources.GetObject("lblCodebase.AccessibleName");
this.lblCodebase.Anchor = (System.Windows.Forms.AnchorStyles) resources.GetObject("lblCodebase.Anchor");
this.lblCodebase.AutoSize = (bool) resources.GetObject("lblCodebase.AutoSize");
this.lblCodebase.Dock = (System.Windows.Forms.DockStyle) resources.GetObject("lblCodebase.Dock");
this.lblCodebase.Enabled = (bool) resources.GetObject("lblCodebase.Enabled");
this.lblCodebase.Font = (System.Drawing.Font) resources.GetObject("lblCodebase.Font");
this.lblCodebase.Image = (System.Drawing.Image) resources.GetObject("lblCodebase.Image");
this.lblCodebase.ImageAlign = (System.Drawing.ContentAlignment) resources.GetObject("lblCodebase.ImageAlign");
this.lblCodebase.ImageIndex = (int) resources.GetObject("lblCodebase.ImageIndex");
this.lblCodebase.ImeMode = (System.Windows.Forms.ImeMode) resources.GetObject("lblCodebase.ImeMode");
this.lblCodebase.Location = (System.Drawing.Point) resources.GetObject("lblCodebase.Location");
this.lblCodebase.Name = "lblCodebase";
this.lblCodebase.RightToLeft = (System.Windows.Forms.RightToLeft) resources.GetObject("lblCodebase.RightToLeft");
this.lblCodebase.Size = (System.Drawing.Size) resources.GetObject("lblCodebase.Size");
this.lblCodebase.TabIndex = (int) resources.GetObject("lblCodebase.TabIndex");
this.lblCodebase.Text = resources.GetString("lblCodebase.Text");
this.lblCodebase.TextAlign = (System.Drawing.ContentAlignment) resources.GetObject("lblCodebase.TextAlign");
this.lblCodebase.Visible = (bool) resources.GetObject("lblCodebase.Visible");
//
//frmAbout
//
this.AcceptButton = this.cmdOK;
this.AccessibleDescription = (string) resources.GetObject("$this.AccessibleDescription");
this.AccessibleName = (string) resources.GetObject("$this.AccessibleName");
this.Anchor = (System.Windows.Forms.AnchorStyles) resources.GetObject("$this.Anchor");
this.AutoScaleBaseSize = (System.Drawing.Size) resources.GetObject("$this.AutoScaleBaseSize");
this.AutoScroll = (bool) resources.GetObject("$this.AutoScroll");
this.AutoScrollMargin = (System.Drawing.Size) resources.GetObject("$this.AutoScrollMargin");
this.AutoScrollMinSize = (System.Drawing.Size) resources.GetObject("$this.AutoScrollMinSize");
this.BackgroundImage = (System.Drawing.Image) resources.GetObject("$this.BackgroundImage");
this.CancelButton = this.cmdOK;
this.ClientSize = (System.Drawing.Size) resources.GetObject("$this.ClientSize");
this.Controls.AddRange(new System.Windows.Forms.Control[] {this.lblCodebase, this.lblCopyright, this.cmdOK, this.lblDescription, this.lblVersion, this.lblTitle, this.pbIcon});
this.Dock = (System.Windows.Forms.DockStyle) resources.GetObject("$this.Dock");
this.Enabled = (bool) resources.GetObject("$this.Enabled");
this.Font = (System.Drawing.Font) resources.GetObject("$this.Font");
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = (System.Drawing.Icon) resources.GetObject("$this.Icon");
this.ImeMode = (System.Windows.Forms.ImeMode) resources.GetObject("$this.ImeMode");
this.Location = (System.Drawing.Point) resources.GetObject("$this.Location");
this.MaximizeBox = false;
this.MaximumSize = (System.Drawing.Size) resources.GetObject("$this.MaximumSize");
this.MinimizeBox = false;
this.MinimumSize = (System.Drawing.Size) resources.GetObject("$this.MinimumSize");
this.Name = "frmAbout";
this.RightToLeft = (System.Windows.Forms.RightToLeft) resources.GetObject("$this.RightToLeft");
this.ShowInTaskbar = false;
this.StartPosition = (System.Windows.Forms.FormStartPosition) resources.GetObject("$this.StartPosition");
this.Text = resources.GetString("$this.Text");
this.Visible = (bool) resources.GetObject("$this.Visible");
this.ResumeLayout(false);
this.Load +=new EventHandler(frmAbout_Load);
}
#endregion
// Note: Because this form is opened by frmMain using the ShowDialog command, we simply set the
// DialogResult property of cmdOK to OK which causes the form to close when clicked.
private void frmAbout_Load(object sender, System.EventArgs e) {
try {
// Set this Form's Text + Icon properties by using values from the parent form
this.Text = "About " + this.Owner.Text;
this.Icon = this.Owner.Icon;
// Set this Form's Picture Box's image using the parent's icon
// However, we need to convert it to a Bitmap since the Picture Box Control
// will not accept a raw Icon.
this.pbIcon.Image = this.Owner.Icon.ToBitmap();
// Set the labels identitying the Title, Version, and Description by
// reading Assembly meta-data originally entered in the AssemblyInfo.cs file
// using the AssemblyInfo class defined in the same file
AssemblyInfo ainfo = new AssemblyInfo();
this.lblTitle.Text = ainfo.Title;
this.lblVersion.Text = string.Format("Version {0}", ainfo.Version);
this.lblCopyright.Text = ainfo.Copyright;
this.lblDescription.Text = ainfo.Description;
this.lblCodebase.Text = ainfo.CodeBase;
} catch(System.Exception exp) {
// This catch will trap any unexpected error.
MessageBox.Show(exp.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Stop);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -