⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aboutform.cs

📁 C#实现DHTML编辑器功能!
💻 CS
字号:
// DINAMIC XML Editor
//
// Copyright (c) 2002-2003 Dusan Hlavaty
// mailto: duddo@atlas.cz
//
// This software is licensed under the terms of
// GNU General Public license
//
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

using XML_editor.Common;

namespace XML_editor.MyForms
{
	/// <summary>
	/// Formular zobrazujuci verziu programu, informacie o autorovi ...
	/// </summary>
	public class AboutForm : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Button button1;
		private System.ComponentModel.Container components = null;

		// -------------------------------------------------------------------------
		/// <summary>
		/// Inicializuje formular <see cref="AboutForm"/>
		/// </summary>
		public AboutForm()
		{
			MyInitializeComponent();
		}

		// -------------------------------------------------------------------------
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		
		// -------------------------------------------------------------------------
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void MyInitializeComponent()
		{
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.button1 = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// label1
			// 
			this.label1.BackColor = System.Drawing.Color.Transparent;
			this.label1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(238)));
			this.label1.Location = new System.Drawing.Point(264, 168);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(144, 48);
			this.label1.TabIndex = 0;
			this.label1.Text = "DL XML Editor\r\nVersion:\r\nBuild:";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// label2
			// 
			this.label2.BackColor = System.Drawing.Color.Transparent;
			this.label2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.label2.Location = new System.Drawing.Point(416, 168);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(80, 48);
			this.label2.TabIndex = 1;
			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			System.Version v = System.Reflection.Assembly.GetEntryAssembly().GetName().Version;
			this.label2.Text = "\r\n" + v.Major.ToString() + "." + v.Minor.ToString() + "\r\n" + v.Build.ToString();
			// 
			// label3
			// 
			this.label3.BackColor = System.Drawing.Color.Transparent;
			this.label3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.label3.Location = new System.Drawing.Point(272, 16);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(216, 72);
			this.label3.TabIndex = 2;
			this.label3.Text = 
@"(c) 2002-2003 by Dusan Hlavaty

mailto: hlavatyd@frpd.utcpd.sk
";
			this.label3.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			// 
			// button1
			// 
			this.button1.CausesValidation = false;
			this.button1.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.button1.Location = new System.Drawing.Point(16, 216);
			this.button1.Name = "button1";
			this.button1.TabIndex = 3;
			this.button1.Text = "OK";
			// 
			// label4
			// 
			this.label4.BackColor = System.Drawing.Color.Transparent;
			this.label4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(238)));
			this.label4.Location = new System.Drawing.Point(264, 112);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(144, 48);
			this.label4.TabIndex = 4;
			this.label4.Text = "DLTextEditor component\r\nVersion:\r\nBuild:";
			this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// label5
			// 
			this.label5.BackColor = System.Drawing.Color.Transparent;
			this.label5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.label5.Location = new System.Drawing.Point(416, 112);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(80, 48);
			this.label5.TabIndex = 5;
			this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			v = System.Reflection.Assembly.GetAssembly(new DLTextEditor.TextAreaControl().GetType()).GetName().Version;
			this.label5.Text = "\r\n" + v.Major.ToString() + "." + v.Minor.ToString() + "\r\n" + v.Build.ToString();

			// 
			// Form3
			// 
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.ShowInTaskbar = false;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
			this.TopMost = true;
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.BackgroundImage = IconProvider.LoadBitmap(this, "XML_editor.Icons.about_about.png");
			this.ClientSize = new System.Drawing.Size(500, 250);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																																	this.button1,
																																	this.label3,
																																	this.label2,
																																	this.label1,
																																	this.label4,
																																	this.label5});
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
			this.Text = String.Empty;
			this.ResumeLayout(false);

		}

	} // public class AboutForm : System.Windows.Forms.Form
} // namespace XML_editor.MyForms

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -