Form3.cs
上传用户:miknos
上传日期:2022-04-30
资源大小:802k
文件大小:10k
源码类别:

百货/超市行业

开发平台:

Visual C++

  1. using System;
  2. using System.Drawing;
  3. using System.Collections;
  4. using System.ComponentModel;
  5. using System.Windows.Forms;
  6. namespace supershop
  7. {
  8. /// <summary>
  9. /// Form3 的摘要说明。
  10. /// </summary>
  11. public class Form3 : System.Windows.Forms.Form
  12. {
  13. private System.Windows.Forms.PictureBox pictureBox1;
  14. private System.Windows.Forms.LinkLabel linkLabel1;
  15. private System.Windows.Forms.RichTextBox richTextBox1;
  16. private System.Windows.Forms.GroupBox groupBox1;
  17. private System.Windows.Forms.PictureBox pictureBox2;
  18. private System.Windows.Forms.PictureBox pictureBox3;
  19. private System.Windows.Forms.PictureBox pictureBox4;
  20. private System.Windows.Forms.PictureBox pictureBox5;
  21. private System.Windows.Forms.PictureBox pictureBox6;
  22. private System.Windows.Forms.PictureBox pictureBox7;
  23. private System.Windows.Forms.PictureBox pictureBox8;
  24. /// <summary>
  25. /// 必需的设计器变量。
  26. /// </summary>
  27. private System.ComponentModel.Container components = null;
  28. public Form3()
  29. {
  30. //
  31. // Windows 窗体设计器支持所必需的
  32. //
  33. InitializeComponent();
  34. //
  35. // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
  36. //
  37. }
  38. /// <summary>
  39. /// 清理所有正在使用的资源。
  40. /// </summary>
  41. protected override void Dispose( bool disposing )
  42. {
  43. if( disposing )
  44. {
  45. if(components != null)
  46. {
  47. components.Dispose();
  48. }
  49. }
  50. base.Dispose( disposing );
  51. }
  52. #region Windows 窗体设计器生成的代码
  53. /// <summary>
  54. /// 设计器支持所需的方法 - 不要使用代码编辑器修改
  55. /// 此方法的内容。
  56. /// </summary>
  57. private void InitializeComponent()
  58. {
  59. System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form3));
  60. this.pictureBox1 = new System.Windows.Forms.PictureBox();
  61. this.linkLabel1 = new System.Windows.Forms.LinkLabel();
  62. this.richTextBox1 = new System.Windows.Forms.RichTextBox();
  63. this.groupBox1 = new System.Windows.Forms.GroupBox();
  64. this.pictureBox8 = new System.Windows.Forms.PictureBox();
  65. this.pictureBox6 = new System.Windows.Forms.PictureBox();
  66. this.pictureBox5 = new System.Windows.Forms.PictureBox();
  67. this.pictureBox4 = new System.Windows.Forms.PictureBox();
  68. this.pictureBox3 = new System.Windows.Forms.PictureBox();
  69. this.pictureBox2 = new System.Windows.Forms.PictureBox();
  70. this.pictureBox7 = new System.Windows.Forms.PictureBox();
  71. this.groupBox1.SuspendLayout();
  72. this.SuspendLayout();
  73. // 
  74. // pictureBox1
  75. // 
  76. this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
  77. this.pictureBox1.Location = new System.Drawing.Point(360, 280);
  78. this.pictureBox1.Name = "pictureBox1";
  79. this.pictureBox1.Size = new System.Drawing.Size(64, 27);
  80. this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
  81. this.pictureBox1.TabIndex = 0;
  82. this.pictureBox1.TabStop = false;
  83. this.pictureBox1.Click += new System.EventHandler(this.imgclick);
  84. // 
  85. // linkLabel1
  86. // 
  87. this.linkLabel1.Location = new System.Drawing.Point(184, 280);
  88. this.linkLabel1.Name = "linkLabel1";
  89. this.linkLabel1.Size = new System.Drawing.Size(160, 23);
  90. this.linkLabel1.TabIndex = 1;
  91. this.linkLabel1.TabStop = true;
  92. this.linkLabel1.Text = "技术支持pxl821102@126.com";
  93. this.linkLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
  94. this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linklbclick);
  95. // 
  96. // richTextBox1
  97. // 
  98. this.richTextBox1.BackColor = System.Drawing.SystemColors.Control;
  99. this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
  100. this.richTextBox1.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
  101. this.richTextBox1.ForeColor = System.Drawing.Color.Magenta;
  102. this.richTextBox1.Location = new System.Drawing.Point(32, 16);
  103. this.richTextBox1.Name = "richTextBox1";
  104. this.richTextBox1.ReadOnly = true;
  105. this.richTextBox1.Size = new System.Drawing.Size(368, 168);
  106. this.richTextBox1.TabIndex = 2;
  107. this.richTextBox1.Text = "橙子工作组成员:n               庞 晓 亮n               刘 京 超n               么 克 磊n         " +
  108. "      杨    磊n               夏 正 洪n               臧 黎 明n                      橙子超" +
  109. "市管理系统1.0版        n                      河北科技大学计算机专业";
  110. // 
  111. // groupBox1
  112. // 
  113. this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
  114. | System.Windows.Forms.AnchorStyles.Left) 
  115. | System.Windows.Forms.AnchorStyles.Right)));
  116. this.groupBox1.Controls.Add(this.pictureBox8);
  117. this.groupBox1.Controls.Add(this.pictureBox6);
  118. this.groupBox1.Controls.Add(this.pictureBox5);
  119. this.groupBox1.Controls.Add(this.pictureBox4);
  120. this.groupBox1.Controls.Add(this.pictureBox3);
  121. this.groupBox1.Controls.Add(this.pictureBox2);
  122. this.groupBox1.Controls.Add(this.richTextBox1);
  123. this.groupBox1.Location = new System.Drawing.Point(8, 64);
  124. this.groupBox1.Name = "groupBox1";
  125. this.groupBox1.Size = new System.Drawing.Size(432, 200);
  126. this.groupBox1.TabIndex = 3;
  127. this.groupBox1.TabStop = false;
  128. // 
  129. // pictureBox8
  130. // 
  131. this.pictureBox8.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox8.Image")));
  132. this.pictureBox8.Location = new System.Drawing.Point(120, 35);
  133. this.pictureBox8.Name = "pictureBox8";
  134. this.pictureBox8.Size = new System.Drawing.Size(16, 16);
  135. this.pictureBox8.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
  136. this.pictureBox8.TabIndex = 8;
  137. this.pictureBox8.TabStop = false;
  138. // 
  139. // pictureBox6
  140. // 
  141. this.pictureBox6.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox6.Image")));
  142. this.pictureBox6.Location = new System.Drawing.Point(120, 123);
  143. this.pictureBox6.Name = "pictureBox6";
  144. this.pictureBox6.Size = new System.Drawing.Size(16, 16);
  145. this.pictureBox6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
  146. this.pictureBox6.TabIndex = 7;
  147. this.pictureBox6.TabStop = false;
  148. // 
  149. // pictureBox5
  150. // 
  151. this.pictureBox5.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox5.Image")));
  152. this.pictureBox5.Location = new System.Drawing.Point(120, 105);
  153. this.pictureBox5.Name = "pictureBox5";
  154. this.pictureBox5.Size = new System.Drawing.Size(16, 16);
  155. this.pictureBox5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
  156. this.pictureBox5.TabIndex = 6;
  157. this.pictureBox5.TabStop = false;
  158. // 
  159. // pictureBox4
  160. // 
  161. this.pictureBox4.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox4.Image")));
  162. this.pictureBox4.Location = new System.Drawing.Point(120, 89);
  163. this.pictureBox4.Name = "pictureBox4";
  164. this.pictureBox4.Size = new System.Drawing.Size(16, 16);
  165. this.pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
  166. this.pictureBox4.TabIndex = 5;
  167. this.pictureBox4.TabStop = false;
  168. // 
  169. // pictureBox3
  170. // 
  171. this.pictureBox3.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox3.Image")));
  172. this.pictureBox3.Location = new System.Drawing.Point(120, 71);
  173. this.pictureBox3.Name = "pictureBox3";
  174. this.pictureBox3.Size = new System.Drawing.Size(16, 16);
  175. this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
  176. this.pictureBox3.TabIndex = 4;
  177. this.pictureBox3.TabStop = false;
  178. // 
  179. // pictureBox2
  180. // 
  181. this.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox2.Image")));
  182. this.pictureBox2.Location = new System.Drawing.Point(120, 53);
  183. this.pictureBox2.Name = "pictureBox2";
  184. this.pictureBox2.Size = new System.Drawing.Size(16, 16);
  185. this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
  186. this.pictureBox2.TabIndex = 3;
  187. this.pictureBox2.TabStop = false;
  188. // 
  189. // pictureBox7
  190. // 
  191. this.pictureBox7.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox7.Image")));
  192. this.pictureBox7.Location = new System.Drawing.Point(0, 0);
  193. this.pictureBox7.Name = "pictureBox7";
  194. this.pictureBox7.Size = new System.Drawing.Size(456, 64);
  195. this.pictureBox7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
  196. this.pictureBox7.TabIndex = 4;
  197. this.pictureBox7.TabStop = false;
  198. // 
  199. // Form3
  200. // 
  201. this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
  202. this.ClientSize = new System.Drawing.Size(456, 311);
  203. this.Controls.Add(this.pictureBox7);
  204. this.Controls.Add(this.pictureBox1);
  205. this.Controls.Add(this.groupBox1);
  206. this.Controls.Add(this.linkLabel1);
  207. this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
  208. this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
  209. this.Name = "Form3";
  210. this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
  211. this.Text = "关于橙子超市系统";
  212. this.groupBox1.ResumeLayout(false);
  213. this.ResumeLayout(false);
  214. }
  215. #endregion
  216. private void imgclick(object sender, System.EventArgs e)
  217. {
  218. this.Close();
  219. }
  220. private void linklbclick(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
  221. {
  222. try
  223. {
  224. VisitLink();
  225. }
  226. catch (Exception ex )
  227. {
  228. MessageBox.Show("Unable to open link that was clicked.");
  229. }
  230. }
  231. private void VisitLink()
  232. {
  233. // Change the color of the link text by setting LinkVisited 
  234. // to true.
  235. linkLabel1.LinkVisited = true;
  236. //Call the Process.Start method to open the default browser 
  237. //with a URL:
  238. System.Diagnostics.Process.Start("mailto:pxl821102@126.com");
  239. }
  240. }
  241. }