📄 frmabout.cs
字号:
//////////////////////////////////////////////////////////////////////
// Part of LLBLGen sourcecode. See version information
//////////////////////////////////////////////////////////////////////
// COPYRIGHTS:
// Copyright (c)2002 Solutions Design. All rights reserved.
//
// Released under the following license: (BSD2)
// -------------------------------------------
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// 1) Redistributions of source code must retain the above copyright notice, this list of
// conditions and the following disclaimer.
// 2) Redistributions in binary form must reproduce the above copyright notice, this list of
// conditions and the following disclaimer in the documentation and/or other materials
// provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY SOLUTIONS DESIGN ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
// PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SOLUTIONS DESIGN OR CONTRIBUTORS BE LIABLE FOR
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
// NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
// BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// The views and conclusions contained in the software and documentation are those of the authors
// and should not be interpreted as representing official policies, either expressed or implied,
// of Solutions Design.
//
//////////////////////////////////////////////////////////////////////
// Contributers to the code:
// - Frans Bouma [FB]
//////////////////////////////////////////////////////////////////////
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Reflection;
namespace LLBLGen
{
/// <summary>
/// Summary description for frmAbout.
/// </summary>
public class frmAbout : System.Windows.Forms.Form
{
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Button btnOK;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.LinkLabel linkLabel1;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox tbxVersion;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox tbxReleaseDate;
private System.Windows.Forms.DataGrid dgReferencedAssemblies;
private System.Windows.Forms.PictureBox pictureBox1;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public frmAbout()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
Assembly asmThis = Assembly.GetExecutingAssembly();
Version verThis = asmThis.GetName().Version;
tbxVersion.Text = verThis.Major + "." + verThis.Minor + "." + verThis.Build + "." + verThis.Revision + " " + frmMain.sBUILDTYPE;
tbxReleaseDate.Text = frmMain.sRELEASEDATE;
AssemblyName[] arranReferencedAssemblies = asmThis.GetReferencedAssemblies();
dgReferencedAssemblies.DataSource = arranReferencedAssemblies;
}
/// <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()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmAbout));
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.dgReferencedAssemblies = new System.Windows.Forms.DataGrid();
this.tbxReleaseDate = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.tbxVersion = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.btnOK = new System.Windows.Forms.Button();
this.label4 = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgReferencedAssemblies)).BeginInit();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right);
this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {
this.dgReferencedAssemblies,
this.tbxReleaseDate,
this.label6,
this.tbxVersion,
this.label5,
this.linkLabel1,
this.label3,
this.label2,
this.label1});
this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.groupBox1.Location = new System.Drawing.Point(6, 162);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(369, 384);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Info";
//
// dgReferencedAssemblies
//
this.dgReferencedAssemblies.AlternatingBackColor = System.Drawing.Color.Gainsboro;
this.dgReferencedAssemblies.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right);
this.dgReferencedAssemblies.BackColor = System.Drawing.Color.Silver;
this.dgReferencedAssemblies.BackgroundColor = System.Drawing.Color.Silver;
this.dgReferencedAssemblies.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.dgReferencedAssemblies.CaptionBackColor = System.Drawing.Color.DarkSlateBlue;
this.dgReferencedAssemblies.CaptionFont = new System.Drawing.Font("Tahoma", 8F);
this.dgReferencedAssemblies.CaptionForeColor = System.Drawing.Color.White;
this.dgReferencedAssemblies.CaptionText = "Referenced Assemblies";
this.dgReferencedAssemblies.DataMember = "";
this.dgReferencedAssemblies.FlatMode = true;
this.dgReferencedAssemblies.ForeColor = System.Drawing.Color.Black;
this.dgReferencedAssemblies.GridLineColor = System.Drawing.Color.White;
this.dgReferencedAssemblies.HeaderBackColor = System.Drawing.Color.DarkGray;
this.dgReferencedAssemblies.HeaderForeColor = System.Drawing.Color.Black;
this.dgReferencedAssemblies.LinkColor = System.Drawing.Color.DarkSlateBlue;
this.dgReferencedAssemblies.Location = new System.Drawing.Point(12, 165);
this.dgReferencedAssemblies.Name = "dgReferencedAssemblies";
this.dgReferencedAssemblies.ParentRowsBackColor = System.Drawing.Color.Black;
this.dgReferencedAssemblies.ParentRowsForeColor = System.Drawing.Color.White;
this.dgReferencedAssemblies.ReadOnly = true;
this.dgReferencedAssemblies.SelectionBackColor = System.Drawing.Color.DarkSlateBlue;
this.dgReferencedAssemblies.SelectionForeColor = System.Drawing.Color.White;
this.dgReferencedAssemblies.Size = new System.Drawing.Size(345, 185);
this.dgReferencedAssemblies.TabIndex = 8;
//
// tbxReleaseDate
//
this.tbxReleaseDate.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.tbxReleaseDate.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.tbxReleaseDate.Enabled = false;
this.tbxReleaseDate.Location = new System.Drawing.Point(180, 87);
this.tbxReleaseDate.Name = "tbxReleaseDate";
this.tbxReleaseDate.Size = new System.Drawing.Size(90, 20);
this.tbxReleaseDate.TabIndex = 7;
this.tbxReleaseDate.Text = "";
//
// label6
//
this.label6.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.label6.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.label6.Location = new System.Drawing.Point(42, 90);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(138, 15);
this.label6.TabIndex = 6;
this.label6.Text = "Release date (mmddyyyy)";
//
// tbxVersion
//
this.tbxVersion.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.tbxVersion.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.tbxVersion.Enabled = false;
this.tbxVersion.Location = new System.Drawing.Point(180, 66);
this.tbxVersion.Name = "tbxVersion";
this.tbxVersion.Size = new System.Drawing.Size(147, 20);
this.tbxVersion.TabIndex = 5;
this.tbxVersion.Text = "";
//
// label5
//
this.label5.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.label5.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.label5.Location = new System.Drawing.Point(126, 69);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(54, 15);
this.label5.TabIndex = 4;
this.label5.Text = "Version";
//
// linkLabel1
//
this.linkLabel1.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
this.linkLabel1.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.linkLabel1.Location = new System.Drawing.Point(116, 359);
this.linkLabel1.Name = "linkLabel1";
this.linkLabel1.Size = new System.Drawing.Size(133, 15);
this.linkLabel1.TabIndex = 3;
this.linkLabel1.TabStop = true;
this.linkLabel1.Text = "http://www.sd.nl/software";
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
//
// label3
//
this.label3.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.label3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.label3.Location = new System.Drawing.Point(88, 117);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(192, 39);
this.label3.TabIndex = 2;
this.label3.Text = "This is FREE software, released under the BSD2 license.";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label2
//
this.label2.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.label2.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.label2.Location = new System.Drawing.Point(75, 42);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(214, 18);
this.label2.TabIndex = 1;
this.label2.Text = "
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -