📄 mainform.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace StudentManage.UILevel
{
/// <summary>
/// Form1 的摘要说明。
/// </summary>
public class MainForm : 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 button4;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Button button7;
private System.Windows.Forms.Button button8;
private System.Windows.Forms.Button button9;
private System.Windows.Forms.Button button10;
private System.Windows.Forms.Button btnExit;
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.TabPage tabPage4;
private System.Windows.Forms.StatusBar statusBar1;
private System.Windows.Forms.StatusBarPanel statusBarPanel1;
private System.Windows.Forms.StatusBarPanel statusBarPanel2;
private System.Windows.Forms.PictureBox pictureBox1;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public MainForm()
{
//
// 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(MainForm));
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
this.btnExit = 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.button10 = new System.Windows.Forms.Button();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.statusBar1 = new System.Windows.Forms.StatusBar();
this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel();
this.statusBarPanel2 = new System.Windows.Forms.StatusBarPanel();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).BeginInit();
this.tabPage2.SuspendLayout();
this.tabPage4.SuspendLayout();
this.tabPage3.SuspendLayout();
this.SuspendLayout();
//
// button1
//
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Image = ((System.Drawing.Image)(resources.GetObject("button1.Image")));
this.button1.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
this.button1.Location = new System.Drawing.Point(40, 24);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(64, 64);
this.button1.TabIndex = 0;
this.button1.Text = "院系";
this.button1.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.BackColor = System.Drawing.SystemColors.Control;
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button2.Image = ((System.Drawing.Image)(resources.GetObject("button2.Image")));
this.button2.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
this.button2.Location = new System.Drawing.Point(40, 152);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(64, 56);
this.button2.TabIndex = 1;
this.button2.Text = "学期";
this.button2.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button3
//
this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button3.Image = ((System.Drawing.Image)(resources.GetObject("button3.Image")));
this.button3.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
this.button3.Location = new System.Drawing.Point(144, 24);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(64, 64);
this.button3.TabIndex = 2;
this.button3.Text = "班级";
this.button3.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// button4
//
this.button4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button4.Image = ((System.Drawing.Image)(resources.GetObject("button4.Image")));
this.button4.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
this.button4.Location = new System.Drawing.Point(48, 32);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(64, 56);
this.button4.TabIndex = 3;
this.button4.Text = "学生档案";
this.button4.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// button5
//
this.button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button5.Image = ((System.Drawing.Image)(resources.GetObject("button5.Image")));
this.button5.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
this.button5.Location = new System.Drawing.Point(64, 32);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(64, 56);
this.button5.TabIndex = 4;
this.button5.Text = "课程设置";
this.button5.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.button5.Click += new System.EventHandler(this.button5_Click);
//
// btnExit
//
this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnExit.Image = ((System.Drawing.Image)(resources.GetObject("btnExit.Image")));
this.btnExit.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
this.btnExit.Location = new System.Drawing.Point(544, 392);
this.btnExit.Name = "btnExit";
this.btnExit.Size = new System.Drawing.Size(64, 56);
this.btnExit.TabIndex = 5;
this.btnExit.Text = "退出";
this.btnExit.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.btnExit.Click += new System.EventHandler(this.button6_Click);
//
// button7
//
this.button7.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button7.Image = ((System.Drawing.Image)(resources.GetObject("button7.Image")));
this.button7.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
this.button7.Location = new System.Drawing.Point(64, 144);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(64, 56);
this.button7.TabIndex = 6;
this.button7.Text = "班级选课";
this.button7.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.button7.Click += new System.EventHandler(this.button7_Click);
//
// button8
//
this.button8.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button8.Image = ((System.Drawing.Image)(resources.GetObject("button8.Image")));
this.button8.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
this.button8.Location = new System.Drawing.Point(64, 48);
this.button8.Name = "button8";
this.button8.Size = new System.Drawing.Size(64, 56);
this.button8.TabIndex = 7;
this.button8.Text = "成绩录入";
this.button8.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.button8.Click += new System.EventHandler(this.button8_Click);
//
// button9
//
this.button9.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button9.Image = ((System.Drawing.Image)(resources.GetObject("button9.Image")));
this.button9.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
this.button9.Location = new System.Drawing.Point(64, 160);
this.button9.Name = "button9";
this.button9.Size = new System.Drawing.Size(64, 56);
this.button9.TabIndex = 8;
this.button9.Text = "成绩分析";
this.button9.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.button9.Click += new System.EventHandler(this.button9_Click);
//
// button10
//
this.button10.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button10.Image = ((System.Drawing.Image)(resources.GetObject("button10.Image")));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -