About.cs 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. /*******************************************************************************************
  2. ** ************************************************************* **
  3. ** **********File Name: About.cs Version 1.0, 8 November 2004** **
  4. ** ****************Author: Siva Kovvuri************** **
  5. ** **
  6. ** **
  7. ** This class displays the version information of the Graphic Editor application. **
  8. ** **
  9. ********************************************************************************************/
  10. using System;
  11. using System.Drawing;
  12. using System.Collections;
  13. using System.ComponentModel;
  14. using System.Windows.Forms;
  15. namespace GraEditor
  16. {
  17. public class AboutDialog : System.Windows.Forms.Form
  18. {
  19. private System.Windows.Forms.Label label1;// label to hold the text
  20. private System.Windows.Forms.Label label2;// label to hold the text
  21. private System.Windows.Forms.Button button1;
  22. private System.Windows.Forms.Label label3;// button to close the form
  23. private System.ComponentModel.Container components = null;
  24. public AboutDialog()
  25. {
  26. InitializeComponent();
  27. }
  28. protected override void Dispose( bool disposing )
  29. {
  30. if( disposing )
  31. {
  32. if(components != null)
  33. {
  34. components.Dispose();
  35. }
  36. }
  37. base.Dispose( disposing );
  38. }
  39. #region Windows
  40. private void InitializeComponent()
  41. {
  42. System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(AboutDialog));
  43. this.label1 = new System.Windows.Forms.Label();
  44. this.label2 = new System.Windows.Forms.Label();
  45. this.button1 = new System.Windows.Forms.Button();
  46. this.label3 = new System.Windows.Forms.Label();
  47. this.SuspendLayout();
  48. //
  49. // label1
  50. //
  51. this.label1.BackColor = System.Drawing.Color.Transparent;
  52. this.label1.Font = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  53. this.label1.Location = new System.Drawing.Point(16, 16);
  54. this.label1.Name = "label1";
  55. this.label1.Size = new System.Drawing.Size(272, 24);
  56. this.label1.TabIndex = 0;
  57. this.label1.Text = "Graph Element Editor V1.0";
  58. //
  59. // label2
  60. //
  61. this.label2.BackColor = System.Drawing.Color.Transparent;
  62. this.label2.Font = new System.Drawing.Font("Arial", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  63. this.label2.Location = new System.Drawing.Point(80, 48);
  64. this.label2.Name = "label2";
  65. this.label2.Size = new System.Drawing.Size(192, 24);
  66. this.label2.TabIndex = 1;
  67. this.label2.Text = "Copyright 2004";
  68. //
  69. // button1
  70. //
  71. this.button1.Location = new System.Drawing.Point(96, 96);
  72. this.button1.Name = "button1";
  73. this.button1.Size = new System.Drawing.Size(74, 22);
  74. this.button1.TabIndex = 2;
  75. this.button1.Text = "OK";
  76. this.button1.Click += new System.EventHandler(this.button1_Click);
  77. //
  78. // label3
  79. //
  80. this.label3.BackColor = System.Drawing.Color.Transparent;
  81. this.label3.Font = new System.Drawing.Font("Arial", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  82. this.label3.Location = new System.Drawing.Point(48, 48);
  83. this.label3.Name = "label3";
  84. this.label3.Size = new System.Drawing.Size(32, 24);
  85. this.label3.TabIndex = 3;
  86. this.label3.Text = "(C)";
  87. //
  88. // AboutDialog
  89. //
  90. this.AcceptButton = this.button1;
  91. this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
  92. this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
  93. this.ClientSize = new System.Drawing.Size(303, 124);
  94. this.Controls.Add(this.label3);
  95. this.Controls.Add(this.button1);
  96. this.Controls.Add(this.label2);
  97. this.Controls.Add(this.label1);
  98. this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
  99. this.Name = "AboutDialog";
  100. this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
  101. this.Text = "About";
  102. this.Load += new System.EventHandler(this.AboutDialog_Load);
  103. this.ResumeLayout(false);
  104. }
  105. #endregion
  106. private void button1_Click(object sender, System.EventArgs e)//Close the form
  107. {
  108. this.Close();
  109. }
  110. private void AboutDialog_Load(object sender, System.EventArgs e)
  111. {
  112. }
  113. }
  114. }