www.pudn.com > OA-FlowDefine.rar > AboutDialog.cs


using System; 
using System.Drawing; 
using System.Collections; 
using System.ComponentModel; 
using System.Windows.Forms; 
 
namespace FlowCharter 
{ 
	///  
	/// Summary description for AboutDialog. 
	///  
	public class AboutDialog : System.Windows.Forms.Form 
	{ 
		private System.Windows.Forms.PictureBox pictureBox1; 
		private System.Windows.Forms.ImageList _anchorStyleImageList; 
		private System.Windows.Forms.Button _closeBtn; 
		private System.Windows.Forms.PictureBox _ico; 
		private System.Windows.Forms.Label _titleLabel; 
		private System.Windows.Forms.Label _text1Label; 
		private System.Windows.Forms.Label _text2Label; 
		private System.Windows.Forms.LinkLabel _linkLabel; 
		private System.ComponentModel.IContainer components; 
 
		public AboutDialog() 
		{ 
			// 
			// Required for Windows Form Designer support 
			// 
			InitializeComponent(); 
		} 
 
		///  
		/// Clean up any resources being used. 
		///  
		protected override void Dispose( bool disposing ) 
		{ 
			if( disposing ) 
			{ 
				if(components != null) 
				{ 
					components.Dispose(); 
				} 
			} 
			base.Dispose( disposing ); 
		} 
 
		#region Windows Form Designer generated code 
		///  
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor. 
		///  
		private void InitializeComponent() 
		{ 
			this.components = new System.ComponentModel.Container(); 
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(AboutDialog)); 
			this._anchorStyleImageList = new System.Windows.Forms.ImageList(this.components); 
			this._closeBtn = new System.Windows.Forms.Button(); 
			this.pictureBox1 = new System.Windows.Forms.PictureBox(); 
			this._ico = new System.Windows.Forms.PictureBox(); 
			this._titleLabel = new System.Windows.Forms.Label(); 
			this._text1Label = new System.Windows.Forms.Label(); 
			this._text2Label = new System.Windows.Forms.Label(); 
			this._linkLabel = new System.Windows.Forms.LinkLabel(); 
			this.SuspendLayout(); 
			//  
			// _anchorStyleImageList 
			//  
			this._anchorStyleImageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit; 
			this._anchorStyleImageList.ImageSize = new System.Drawing.Size(16, 16); 
			this._anchorStyleImageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("_anchorStyleImageList.ImageStream"))); 
			this._anchorStyleImageList.TransparentColor = System.Drawing.Color.Transparent; 
			//  
			// _closeBtn 
			//  
			this._closeBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel; 
			this._closeBtn.FlatStyle = System.Windows.Forms.FlatStyle.Popup; 
			this._closeBtn.Location = new System.Drawing.Point(248, 184); 
			this._closeBtn.Name = "_closeBtn"; 
			this._closeBtn.TabIndex = 0; 
			this._closeBtn.Text = "Close"; 
			//  
			// pictureBox1 
			//  
			this.pictureBox1.BackColor = System.Drawing.SystemColors.ControlDark; 
			this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; 
			this.pictureBox1.Location = new System.Drawing.Point(8, 176); 
			this.pictureBox1.Name = "pictureBox1"; 
			this.pictureBox1.Size = new System.Drawing.Size(320, 40); 
			this.pictureBox1.TabIndex = 7; 
			this.pictureBox1.TabStop = false; 
			//  
			// _ico 
			//  
			this._ico.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; 
			this._ico.Image = ((System.Drawing.Bitmap)(resources.GetObject("_ico.Image"))); 
			this._ico.Location = new System.Drawing.Point(8, 80); 
			this._ico.Name = "_ico"; 
			this._ico.Size = new System.Drawing.Size(34, 33); 
			this._ico.TabIndex = 8; 
			this._ico.TabStop = false; 
			//  
			// _titleLabel 
			//  
			this._titleLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204))); 
			this._titleLabel.Location = new System.Drawing.Point(64, 24); 
			this._titleLabel.Name = "_titleLabel"; 
			this._titleLabel.Size = new System.Drawing.Size(240, 24); 
			this._titleLabel.TabIndex = 9; 
			this._titleLabel.Text = "FlowCharter Demo Program 1.0"; 
			//  
			// _text1Label 
			//  
			this._text1Label.Location = new System.Drawing.Point(64, 56); 
			this._text1Label.Name = "_text1Label"; 
			this._text1Label.Size = new System.Drawing.Size(256, 48); 
			this._text1Label.TabIndex = 10; 
			this._text1Label.Text = "This program illustrates some of the flowcharting capabilities of FlowChart.NET."; 
			//  
			// _text2Label 
			//  
			this._text2Label.Location = new System.Drawing.Point(64, 112); 
			this._text2Label.Name = "_text2Label"; 
			this._text2Label.Size = new System.Drawing.Size(256, 16); 
			this._text2Label.TabIndex = 10; 
			this._text2Label.Text = "Copyright © 2004 MindFusion Limited"; 
			//  
			// _linkLabel 
			//  
			this._linkLabel.Location = new System.Drawing.Point(64, 136); 
			this._linkLabel.Name = "_linkLabel"; 
			this._linkLabel.Size = new System.Drawing.Size(232, 16); 
			this._linkLabel.TabIndex = 11; 
			this._linkLabel.TabStop = true; 
			this._linkLabel.Text = "http://mindfusion.org"; 
			this._linkLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkLabel_OnLinkClicked); 
			//  
			// AboutDialog 
			//  
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); 
			this.CancelButton = this._closeBtn; 
			this.ClientSize = new System.Drawing.Size(336, 223); 
			this.Controls.AddRange(new System.Windows.Forms.Control[] { 
																		  this._linkLabel, 
																		  this._text1Label, 
																		  this._titleLabel, 
																		  this._ico, 
																		  this._closeBtn, 
																		  this.pictureBox1, 
																		  this._text2Label}); 
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; 
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 
			this.MaximizeBox = false; 
			this.MinimizeBox = false; 
			this.Name = "AboutDialog"; 
			this.ShowInTaskbar = false; 
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; 
			this.Text = "About FlowCharter"; 
			this.ResumeLayout(false); 
 
		} 
		#endregion 
 
		private void LinkLabel_OnLinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e) 
		{ 
			System.Diagnostics.Process.Start("http://mindfusion.org/"); 
		} 
	} 
}