Form3.cs
上传用户:miknos
上传日期:2022-04-30
资源大小:802k
文件大小:10k
- using System;
- using System.Drawing;
- using System.Collections;
- using System.ComponentModel;
- using System.Windows.Forms;
- namespace supershop
- {
- /// <summary>
- /// Form3 的摘要说明。
- /// </summary>
- public class Form3 : System.Windows.Forms.Form
- {
- private System.Windows.Forms.PictureBox pictureBox1;
- private System.Windows.Forms.LinkLabel linkLabel1;
- private System.Windows.Forms.RichTextBox richTextBox1;
- private System.Windows.Forms.GroupBox groupBox1;
- private System.Windows.Forms.PictureBox pictureBox2;
- private System.Windows.Forms.PictureBox pictureBox3;
- private System.Windows.Forms.PictureBox pictureBox4;
- private System.Windows.Forms.PictureBox pictureBox5;
- private System.Windows.Forms.PictureBox pictureBox6;
- private System.Windows.Forms.PictureBox pictureBox7;
- private System.Windows.Forms.PictureBox pictureBox8;
- /// <summary>
- /// 必需的设计器变量。
- /// </summary>
- private System.ComponentModel.Container components = null;
- public Form3()
- {
- //
- // Windows 窗体设计器支持所必需的
- //
- InitializeComponent();
- //
- // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
- //
- }
- /// <summary>
- /// 清理所有正在使用的资源。
- /// </summary>
- protected override void Dispose( bool disposing )
- {
- if( disposing )
- {
- if(components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose( disposing );
- }
- #region Windows 窗体设计器生成的代码
- /// <summary>
- /// 设计器支持所需的方法 - 不要使用代码编辑器修改
- /// 此方法的内容。
- /// </summary>
- private void InitializeComponent()
- {
- System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form3));
- this.pictureBox1 = new System.Windows.Forms.PictureBox();
- this.linkLabel1 = new System.Windows.Forms.LinkLabel();
- this.richTextBox1 = new System.Windows.Forms.RichTextBox();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.pictureBox8 = new System.Windows.Forms.PictureBox();
- this.pictureBox6 = new System.Windows.Forms.PictureBox();
- this.pictureBox5 = new System.Windows.Forms.PictureBox();
- this.pictureBox4 = new System.Windows.Forms.PictureBox();
- this.pictureBox3 = new System.Windows.Forms.PictureBox();
- this.pictureBox2 = new System.Windows.Forms.PictureBox();
- this.pictureBox7 = new System.Windows.Forms.PictureBox();
- this.groupBox1.SuspendLayout();
- this.SuspendLayout();
- //
- // pictureBox1
- //
- this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
- this.pictureBox1.Location = new System.Drawing.Point(360, 280);
- this.pictureBox1.Name = "pictureBox1";
- this.pictureBox1.Size = new System.Drawing.Size(64, 27);
- this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
- this.pictureBox1.TabIndex = 0;
- this.pictureBox1.TabStop = false;
- this.pictureBox1.Click += new System.EventHandler(this.imgclick);
- //
- // linkLabel1
- //
- this.linkLabel1.Location = new System.Drawing.Point(184, 280);
- this.linkLabel1.Name = "linkLabel1";
- this.linkLabel1.Size = new System.Drawing.Size(160, 23);
- this.linkLabel1.TabIndex = 1;
- this.linkLabel1.TabStop = true;
- this.linkLabel1.Text = "技术支持pxl821102@126.com";
- this.linkLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linklbclick);
- //
- // richTextBox1
- //
- this.richTextBox1.BackColor = System.Drawing.SystemColors.Control;
- this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
- this.richTextBox1.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
- this.richTextBox1.ForeColor = System.Drawing.Color.Magenta;
- this.richTextBox1.Location = new System.Drawing.Point(32, 16);
- this.richTextBox1.Name = "richTextBox1";
- this.richTextBox1.ReadOnly = true;
- this.richTextBox1.Size = new System.Drawing.Size(368, 168);
- this.richTextBox1.TabIndex = 2;
- this.richTextBox1.Text = "橙子工作组成员:n 庞 晓 亮n 刘 京 超n 么 克 磊n " +
- " 杨 磊n 夏 正 洪n 臧 黎 明n 橙子超" +
- "市管理系统1.0版 n 河北科技大学计算机专业";
- //
- // groupBox1
- //
- this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.groupBox1.Controls.Add(this.pictureBox8);
- this.groupBox1.Controls.Add(this.pictureBox6);
- this.groupBox1.Controls.Add(this.pictureBox5);
- this.groupBox1.Controls.Add(this.pictureBox4);
- this.groupBox1.Controls.Add(this.pictureBox3);
- this.groupBox1.Controls.Add(this.pictureBox2);
- this.groupBox1.Controls.Add(this.richTextBox1);
- this.groupBox1.Location = new System.Drawing.Point(8, 64);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(432, 200);
- this.groupBox1.TabIndex = 3;
- this.groupBox1.TabStop = false;
- //
- // pictureBox8
- //
- this.pictureBox8.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox8.Image")));
- this.pictureBox8.Location = new System.Drawing.Point(120, 35);
- this.pictureBox8.Name = "pictureBox8";
- this.pictureBox8.Size = new System.Drawing.Size(16, 16);
- this.pictureBox8.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
- this.pictureBox8.TabIndex = 8;
- this.pictureBox8.TabStop = false;
- //
- // pictureBox6
- //
- this.pictureBox6.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox6.Image")));
- this.pictureBox6.Location = new System.Drawing.Point(120, 123);
- this.pictureBox6.Name = "pictureBox6";
- this.pictureBox6.Size = new System.Drawing.Size(16, 16);
- this.pictureBox6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
- this.pictureBox6.TabIndex = 7;
- this.pictureBox6.TabStop = false;
- //
- // pictureBox5
- //
- this.pictureBox5.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox5.Image")));
- this.pictureBox5.Location = new System.Drawing.Point(120, 105);
- this.pictureBox5.Name = "pictureBox5";
- this.pictureBox5.Size = new System.Drawing.Size(16, 16);
- this.pictureBox5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
- this.pictureBox5.TabIndex = 6;
- this.pictureBox5.TabStop = false;
- //
- // pictureBox4
- //
- this.pictureBox4.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox4.Image")));
- this.pictureBox4.Location = new System.Drawing.Point(120, 89);
- this.pictureBox4.Name = "pictureBox4";
- this.pictureBox4.Size = new System.Drawing.Size(16, 16);
- this.pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
- this.pictureBox4.TabIndex = 5;
- this.pictureBox4.TabStop = false;
- //
- // pictureBox3
- //
- this.pictureBox3.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox3.Image")));
- this.pictureBox3.Location = new System.Drawing.Point(120, 71);
- this.pictureBox3.Name = "pictureBox3";
- this.pictureBox3.Size = new System.Drawing.Size(16, 16);
- this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
- this.pictureBox3.TabIndex = 4;
- this.pictureBox3.TabStop = false;
- //
- // pictureBox2
- //
- this.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox2.Image")));
- this.pictureBox2.Location = new System.Drawing.Point(120, 53);
- this.pictureBox2.Name = "pictureBox2";
- this.pictureBox2.Size = new System.Drawing.Size(16, 16);
- this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
- this.pictureBox2.TabIndex = 3;
- this.pictureBox2.TabStop = false;
- //
- // pictureBox7
- //
- this.pictureBox7.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox7.Image")));
- this.pictureBox7.Location = new System.Drawing.Point(0, 0);
- this.pictureBox7.Name = "pictureBox7";
- this.pictureBox7.Size = new System.Drawing.Size(456, 64);
- this.pictureBox7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
- this.pictureBox7.TabIndex = 4;
- this.pictureBox7.TabStop = false;
- //
- // Form3
- //
- this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
- this.ClientSize = new System.Drawing.Size(456, 311);
- this.Controls.Add(this.pictureBox7);
- this.Controls.Add(this.pictureBox1);
- this.Controls.Add(this.groupBox1);
- this.Controls.Add(this.linkLabel1);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
- this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
- this.Name = "Form3";
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "关于橙子超市系统";
- this.groupBox1.ResumeLayout(false);
- this.ResumeLayout(false);
- }
- #endregion
- private void imgclick(object sender, System.EventArgs e)
- {
- this.Close();
- }
- private void linklbclick(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
- {
- try
- {
- VisitLink();
- }
- catch (Exception ex )
- {
- MessageBox.Show("Unable to open link that was clicked.");
- }
- }
- private void VisitLink()
- {
- // Change the color of the link text by setting LinkVisited
- // to true.
- linkLabel1.LinkVisited = true;
- //Call the Process.Start method to open the default browser
- //with a URL:
- System.Diagnostics.Process.Start("mailto:pxl821102@126.com");
- }
-
- }
- }