About.cs 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. using System;
  2. using System.Drawing;
  3. using System.Collections;
  4. using System.ComponentModel;
  5. using System.Windows.Forms;
  6. namespace GraphicalCS
  7. {
  8. /// <summary>
  9. /// About 的摘要说明。
  10. /// </summary>
  11. public class About : System.Windows.Forms.Form
  12. {
  13. private System.Windows.Forms.Label NAME;
  14. private System.Windows.Forms.Label CopyRight;
  15. private System.Windows.Forms.LinkLabel EMail;
  16. private System.Windows.Forms.Label lblEmail;
  17. private System.Windows.Forms.Button btnOK;
  18. private System.Windows.Forms.Label Athur;
  19. private System.Windows.Forms.PictureBox pictureBox;
  20. /// <summary>
  21. /// 必需的设计器变量。
  22. /// </summary>
  23. private System.ComponentModel.Container components = null;
  24. public About()
  25. {
  26. //
  27. // Windows 窗体设计器支持所必需的
  28. //
  29. InitializeComponent();
  30. //
  31. // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
  32. //
  33. }
  34. /// <summary>
  35. /// 清理所有正在使用的资源。
  36. /// </summary>
  37. protected override void Dispose( bool disposing )
  38. {
  39. if( disposing )
  40. {
  41. if(components != null)
  42. {
  43. components.Dispose();
  44. }
  45. }
  46. base.Dispose( disposing );
  47. }
  48. #region Windows 窗体设计器生成的代码
  49. /// <summary>
  50. /// 设计器支持所需的方法 - 不要使用代码编辑器修改
  51. /// 此方法的内容。
  52. /// </summary>
  53. private void InitializeComponent()
  54. {
  55. System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(About));
  56. this.NAME = new System.Windows.Forms.Label();
  57. this.CopyRight = new System.Windows.Forms.Label();
  58. this.EMail = new System.Windows.Forms.LinkLabel();
  59. this.lblEmail = new System.Windows.Forms.Label();
  60. this.btnOK = new System.Windows.Forms.Button();
  61. this.Athur = new System.Windows.Forms.Label();
  62. this.pictureBox = new System.Windows.Forms.PictureBox();
  63. this.SuspendLayout();
  64. //
  65. // NAME
  66. //
  67. this.NAME.Location = new System.Drawing.Point(88, 24);
  68. this.NAME.Name = "NAME";
  69. this.NAME.Size = new System.Drawing.Size(136, 16);
  70. this.NAME.TabIndex = 0;
  71. this.NAME.Text = "myPGS v1.0";
  72. //
  73. // CopyRight
  74. //
  75. this.CopyRight.Location = new System.Drawing.Point(88, 48);
  76. this.CopyRight.Name = "CopyRight";
  77. this.CopyRight.Size = new System.Drawing.Size(160, 16);
  78. this.CopyRight.TabIndex = 1;
  79. this.CopyRight.Text = "Copyright (C) 2004 PCH";
  80. //
  81. // EMail
  82. //
  83. this.EMail.Location = new System.Drawing.Point(80, 104);
  84. this.EMail.Name = "EMail";
  85. this.EMail.Size = new System.Drawing.Size(144, 23);
  86. this.EMail.TabIndex = 2;
  87. this.EMail.TabStop = true;
  88. this.EMail.Text = "tcpch@sohu.com";
  89. this.EMail.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.EMail_LinkClicked);
  90. //
  91. // lblEmail
  92. //
  93. this.lblEmail.Location = new System.Drawing.Point(32, 104);
  94. this.lblEmail.Name = "lblEmail";
  95. this.lblEmail.Size = new System.Drawing.Size(48, 23);
  96. this.lblEmail.TabIndex = 3;
  97. this.lblEmail.Text = "E-Mail:";
  98. //
  99. // btnOK
  100. //
  101. this.btnOK.Location = new System.Drawing.Point(208, 136);
  102. this.btnOK.Name = "btnOK";
  103. this.btnOK.Size = new System.Drawing.Size(64, 24);
  104. this.btnOK.TabIndex = 4;
  105. this.btnOK.Text = "OK";
  106. this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
  107. //
  108. // Athur
  109. //
  110. this.Athur.Location = new System.Drawing.Point(88, 72);
  111. this.Athur.Name = "Athur";
  112. this.Athur.Size = new System.Drawing.Size(144, 23);
  113. this.Athur.TabIndex = 5;
  114. this.Athur.Text = "010678 庞池海";
  115. //
  116. // pictureBox
  117. //
  118. this.pictureBox.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox.BackgroundImage")));
  119. this.pictureBox.Location = new System.Drawing.Point(16, 24);
  120. this.pictureBox.Name = "pictureBox";
  121. this.pictureBox.Size = new System.Drawing.Size(48, 48);
  122. this.pictureBox.TabIndex = 6;
  123. this.pictureBox.TabStop = false;
  124. //
  125. // About
  126. //
  127. this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
  128. this.ClientSize = new System.Drawing.Size(292, 174);
  129. this.Controls.Add(this.pictureBox);
  130. this.Controls.Add(this.Athur);
  131. this.Controls.Add(this.btnOK);
  132. this.Controls.Add(this.lblEmail);
  133. this.Controls.Add(this.EMail);
  134. this.Controls.Add(this.CopyRight);
  135. this.Controls.Add(this.NAME);
  136. this.ForeColor = System.Drawing.SystemColors.ControlText;
  137. this.Name = "About";
  138. this.Text = "About myPGS";
  139. this.ResumeLayout(false);
  140. }
  141. #endregion
  142. private void EMail_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
  143. {
  144. System.Diagnostics.Process.Start("mailto:tcpch@sohu.com");
  145. }
  146. private void btnOK_Click(object sender, System.EventArgs e)
  147. {
  148. this.Close();
  149. }
  150. }
  151. }