frmAbout.cs
上传用户:yiyuerguo
上传日期:2014-09-27
资源大小:3781k
文件大小:5k
源码类别:

C#编程

开发平台:

Others

  1. using System;
  2. using System.Drawing;
  3. using System.Collections;
  4. using System.ComponentModel;
  5. using System.Windows.Forms;
  6. namespace FiveStones
  7. {
  8. /// <summary>
  9. /// frmAbout 的摘要说明。
  10. /// </summary>
  11. public class frmAbout : System.Windows.Forms.Form
  12. {
  13. private System.Windows.Forms.PictureBox pictureBox1;
  14. private System.Windows.Forms.Label label1;
  15. private System.Windows.Forms.Button btnClose;
  16. private System.Windows.Forms.GroupBox groupBox1;
  17. private System.Windows.Forms.Label label2;
  18. private System.Windows.Forms.LinkLabel lkbEmail;
  19. /// <summary>
  20. /// 必需的设计器变量。
  21. /// </summary>
  22. private System.ComponentModel.Container components = null;
  23. public frmAbout()
  24. {
  25. //
  26. // Windows 窗体设计器支持所必需的
  27. //
  28. InitializeComponent();
  29. //
  30. // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
  31. //
  32. }
  33. /// <summary>
  34. /// 清理所有正在使用的资源。
  35. /// </summary>
  36. protected override void Dispose( bool disposing )
  37. {
  38. if( disposing )
  39. {
  40. if(components != null)
  41. {
  42. components.Dispose();
  43. }
  44. }
  45. base.Dispose( disposing );
  46. }
  47. #region Windows 窗体设计器生成的代码
  48. /// <summary>
  49. /// 设计器支持所需的方法 - 不要使用代码编辑器修改
  50. /// 此方法的内容。
  51. /// </summary>
  52. private void InitializeComponent()
  53. {
  54. System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmAbout));
  55. this.pictureBox1 = new System.Windows.Forms.PictureBox();
  56. this.label1 = new System.Windows.Forms.Label();
  57. this.btnClose = new System.Windows.Forms.Button();
  58. this.groupBox1 = new System.Windows.Forms.GroupBox();
  59. this.label2 = new System.Windows.Forms.Label();
  60. this.lkbEmail = new System.Windows.Forms.LinkLabel();
  61. this.SuspendLayout();
  62. // 
  63. // pictureBox1
  64. // 
  65. this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
  66. this.pictureBox1.Location = new System.Drawing.Point(16, 17);
  67. this.pictureBox1.Name = "pictureBox1";
  68. this.pictureBox1.Size = new System.Drawing.Size(51, 50);
  69. this.pictureBox1.TabIndex = 0;
  70. this.pictureBox1.TabStop = false;
  71. // 
  72. // label1
  73. // 
  74. this.label1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
  75. this.label1.Location = new System.Drawing.Point(80, 17);
  76. this.label1.Name = "label1";
  77. this.label1.Size = new System.Drawing.Size(192, 50);
  78. this.label1.TabIndex = 1;
  79. this.label1.Text = "C#版五子棋n作者:二十四画生n版本:1.0.0";
  80. this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
  81. // 
  82. // btnClose
  83. // 
  84. this.btnClose.Location = new System.Drawing.Point(196, 160);
  85. this.btnClose.Name = "btnClose";
  86. this.btnClose.TabIndex = 2;
  87. this.btnClose.Text = "确定(&Q)";
  88. this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
  89. // 
  90. // groupBox1
  91. // 
  92. this.groupBox1.Location = new System.Drawing.Point(16, 136);
  93. this.groupBox1.Name = "groupBox1";
  94. this.groupBox1.Size = new System.Drawing.Size(260, 8);
  95. this.groupBox1.TabIndex = 3;
  96. this.groupBox1.TabStop = false;
  97. // 
  98. // label2
  99. // 
  100. this.label2.Location = new System.Drawing.Point(16, 81);
  101. this.label2.Name = "label2";
  102. this.label2.Size = new System.Drawing.Size(260, 31);
  103. this.label2.TabIndex = 4;
  104. this.label2.Text = "本软件为免费软件,可任意传播复制。若需本软件源码请与作者联系。";
  105. // 
  106. // lkbEmail
  107. // 
  108. this.lkbEmail.LinkArea = new System.Windows.Forms.LinkArea(6, 19);
  109. this.lkbEmail.Location = new System.Drawing.Point(16, 112);
  110. this.lkbEmail.Name = "lkbEmail";
  111. this.lkbEmail.Size = new System.Drawing.Size(260, 23);
  112. this.lkbEmail.TabIndex = 5;
  113. this.lkbEmail.TabStop = true;
  114. this.lkbEmail.Text = "Email:esshs@tom.com";
  115. this.lkbEmail.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lkbEmail_LinkClicked);
  116. // 
  117. // frmAbout
  118. // 
  119. this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
  120. this.ClientSize = new System.Drawing.Size(292, 193);
  121. this.Controls.Add(this.lkbEmail);
  122. this.Controls.Add(this.label2);
  123. this.Controls.Add(this.groupBox1);
  124. this.Controls.Add(this.btnClose);
  125. this.Controls.Add(this.label1);
  126. this.Controls.Add(this.pictureBox1);
  127. this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
  128. this.MaximizeBox = false;
  129. this.MinimizeBox = false;
  130. this.Name = "frmAbout";
  131. this.ShowInTaskbar = false;
  132. this.Text = "关于 C#版五子棋";
  133. this.ResumeLayout(false);
  134. }
  135. #endregion
  136. private void btnClose_Click(object sender, System.EventArgs e)
  137. {
  138. this.Close();
  139. }
  140. private void lkbEmail_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
  141. {
  142. System.Diagnostics.Process.Start("mailto:esshs@tom.com");
  143. }
  144. }
  145. }