📄 form2.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace 校园卡服务系统
{
/// <summary>
/// Form2 的摘要说明。
/// </summary>
public class Form2 : System.Windows.Forms.Form
{
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button6;
private System.Windows.Forms.Button button7;
private System.Windows.Forms.Button button8;
private System.Windows.Forms.Button button9;
private System.Windows.Forms.Button button11;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public Form2()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
static void Main()
{
Application.Run(new Form2());
}
/// <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(Form2));
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
this.button7 = new System.Windows.Forms.Button();
this.button8 = new System.Windows.Forms.Button();
this.button9 = new System.Windows.Forms.Button();
this.button11 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// button1
//
this.button1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button1.BackgroundImage")));
this.button1.Location = new System.Drawing.Point(0, 393);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(43, 42);
this.button1.TabIndex = 0;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button2.BackgroundImage")));
this.button2.Location = new System.Drawing.Point(43, 393);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(43, 42);
this.button2.TabIndex = 1;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button3
//
this.button3.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button3.BackgroundImage")));
this.button3.Location = new System.Drawing.Point(86, 393);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(43, 42);
this.button3.TabIndex = 2;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// button6
//
this.button6.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button6.BackgroundImage")));
this.button6.Location = new System.Drawing.Point(129, 393);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(43, 42);
this.button6.TabIndex = 5;
this.button6.Click += new System.EventHandler(this.button6_Click);
//
// button7
//
this.button7.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button7.BackgroundImage")));
this.button7.Location = new System.Drawing.Point(0, 435);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(43, 42);
this.button7.TabIndex = 6;
this.button7.Click += new System.EventHandler(this.button7_Click);
//
// button8
//
this.button8.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button8.BackgroundImage")));
this.button8.Location = new System.Drawing.Point(129, 435);
this.button8.Name = "button8";
this.button8.Size = new System.Drawing.Size(43, 42);
this.button8.TabIndex = 7;
this.button8.Click += new System.EventHandler(this.button8_Click);
//
// button9
//
this.button9.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button9.BackgroundImage")));
this.button9.Location = new System.Drawing.Point(86, 435);
this.button9.Name = "button9";
this.button9.Size = new System.Drawing.Size(43, 42);
this.button9.TabIndex = 8;
this.button9.Click += new System.EventHandler(this.button9_Click);
//
// button11
//
this.button11.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button11.BackgroundImage")));
this.button11.Location = new System.Drawing.Point(43, 435);
this.button11.Name = "button11";
this.button11.Size = new System.Drawing.Size(43, 42);
this.button11.TabIndex = 10;
this.button11.Click += new System.EventHandler(this.button11_Click);
//
// Form2
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
this.ClientSize = new System.Drawing.Size(512, 480);
this.Controls.Add(this.button11);
this.Controls.Add(this.button9);
this.Controls.Add(this.button8);
this.Controls.Add(this.button7);
this.Controls.Add(this.button6);
this.Controls.Add(this.button3);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "Form2";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Load += new System.EventHandler(this.Form2_Load);
this.ResumeLayout(false);
}
#endregion
private void Form2_Load(object sender, System.EventArgs e)
{
Form1 frm1 = new Form1();
frm1.ShowDialog();
}
private void button7_Click(object sender, System.EventArgs e)
{
Form8 frm8 = new Form8();
frm8.ShowDialog();
}
private void button10_Click(object sender, System.EventArgs e)
{
}
private void button11_Click(object sender, System.EventArgs e)
{
Form9 frm9 = new Form9();
frm9.ShowDialog();
}
private void button8_Click(object sender, System.EventArgs e)
{
if(MessageBox.Show("您确定要退出吗?","exit",MessageBoxButtons.YesNo)==DialogResult.Yes)
{
this.Close();
}
}
private void button4_Click(object sender, System.EventArgs e)
{
}
private void button1_Click(object sender, System.EventArgs e)
{
Form3 frm3 = new Form3();
frm3.ShowDialog();
}
private void button2_Click(object sender, System.EventArgs e)
{
Form6 frm6 = new Form6();
frm6.ShowDialog();
}
private void button9_Click(object sender, System.EventArgs e)
{
Form7 frm7 = new Form7();
frm7.ShowDialog();
}
private void button3_Click(object sender, System.EventArgs e)
{
Form5 frm5 = new Form5();
frm5.ShowDialog();
}
private void button6_Click(object sender, System.EventArgs e)
{
Form4 frm4 = new Form4();
frm4.ShowDialog();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -