/******************************************************************************************* ** ************************************************************* ** ** **********File Name: About.cs Version 1.0, 8 November 2004** ** ** ****************Author: Siva Kovvuri************** ** ** ** ** ** ** This class displays the version information of the Graphic Editor application. ** ** ** ********************************************************************************************/ using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; namespace GraEditor { public class AboutDialog : System.Windows.Forms.Form { private System.Windows.Forms.Label label1;// label to hold the text private System.Windows.Forms.Label label2;// label to hold the text private System.Windows.Forms.Button button1; private System.Windows.Forms.Label label3;// button to close the form private System.ComponentModel.Container components = null; public AboutDialog() { InitializeComponent(); } protected override void Dispose( bool disposing ) { if( disposing ) { if(components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Windows private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(AboutDialog)); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.button1 = new System.Windows.Forms.Button(); this.label3 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // label1 // this.label1.BackColor = System.Drawing.Color.Transparent; this.label1.Font = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.label1.Location = new System.Drawing.Point(16, 16); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(272, 24); this.label1.TabIndex = 0; this.label1.Text = "Graph Element Editor V1.0"; // // label2 // this.label2.BackColor = System.Drawing.Color.Transparent; this.label2.Font = new System.Drawing.Font("Arial", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.label2.Location = new System.Drawing.Point(80, 48); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(192, 24); this.label2.TabIndex = 1; this.label2.Text = "Copyright 2004"; // // button1 // this.button1.Location = new System.Drawing.Point(96, 96); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(74, 22); this.button1.TabIndex = 2; this.button1.Text = "OK"; this.button1.Click += new System.EventHandler(this.button1_Click); // // label3 // this.label3.BackColor = System.Drawing.Color.Transparent; this.label3.Font = new System.Drawing.Font("Arial", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.label3.Location = new System.Drawing.Point(48, 48); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(32, 24); this.label3.TabIndex = 3; this.label3.Text = "(C)"; // // AboutDialog // this.AcceptButton = this.button1; this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage"))); this.ClientSize = new System.Drawing.Size(303, 124); this.Controls.Add(this.label3); this.Controls.Add(this.button1); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Name = "AboutDialog"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "About"; this.Load += new System.EventHandler(this.AboutDialog_Load); this.ResumeLayout(false); } #endregion private void button1_Click(object sender, System.EventArgs e)//Close the form { this.Close(); } private void AboutDialog_Load(object sender, System.EventArgs e) { } } }