基本信息
源码名称:c#学生信息管理系统
源码大小:1.33M
文件格式:.rar
开发语言:C#
更新时间:2021-09-02
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 1 元 
   源码介绍
研究生信息管理系统








using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace MasterMIS
{
/// <summary>
/// Main 的摘要说明。
/// </summary>
public class Main : System.Windows.Forms.Form
{
private System.Windows.Forms.MainMenu mainMenu1;
public System.Windows.Forms.MenuItem menuItem1;
private System.Windows.Forms.MenuItem menuItem2;
private System.Windows.Forms.MenuItem menuItem3;
public System.Windows.Forms.MenuItem menuItem4;
public System.Windows.Forms.MenuItem menuItem5;
public System.Windows.Forms.MenuItem menuItem6;
public System.Windows.Forms.MenuItem menuItem7;
private System.Windows.Forms.MenuItem menuItem8;
private System.Windows.Forms.MenuItem menuItem9;
private System.Windows.Forms.MenuItem menuItem10;
private System.Windows.Forms.MenuItem menuItem11;
private System.Windows.Forms.MenuItem menuItem13;
private System.Windows.Forms.MenuItem menuItem14;
private System.Windows.Forms.MenuItem menuItem15;
private System.Windows.Forms.MenuItem menuItem16;
private System.Windows.Forms.MenuItem menuItem17;
private System.Windows.Forms.MenuItem menuItem18;
private System.Windows.Forms.MenuItem menuItem19;
private System.Windows.Forms.MenuItem menuItem20;
private System.Windows.Forms.ToolBar toolBar1;
private System.Windows.Forms.ToolBarButton toolBarButton1;
private System.Windows.Forms.ToolBarButton toolBarButton2;
private System.Windows.Forms.ToolBarButton toolBarButton3;
private System.Windows.Forms.ToolBarButton toolBarButton4;
private System.Windows.Forms.ToolBarButton toolBarButton5;
private System.Windows.Forms.ImageList imageList1;
private System.Windows.Forms.StatusBar statusBar1;
private System.Windows.Forms.StatusBarPanel statusBarPanel1;
public System.Windows.Forms.StatusBarPanel statusBarPanel2;
private System.Windows.Forms.StatusBarPanel statusBarPanel3;
private System.Windows.Forms.StatusBarPanel statusBarPanel4;
private System.Windows.Forms.StatusBarPanel statusBarPanel5;
private System.ComponentModel.IContainer components;

public Main()
{
//
// 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()
{
this.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Main));
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.menuItem1 = new System.Windows.Forms.MenuItem();
this.menuItem2 = new System.Windows.Forms.MenuItem();
this.menuItem3 = new System.Windows.Forms.MenuItem();
this.menuItem4 = new System.Windows.Forms.MenuItem();
this.menuItem10 = new System.Windows.Forms.MenuItem();
this.menuItem11 = new System.Windows.Forms.MenuItem();
this.menuItem5 = new System.Windows.Forms.MenuItem();
this.menuItem13 = new System.Windows.Forms.MenuItem();
this.menuItem14 = new System.Windows.Forms.MenuItem();
this.menuItem6 = new System.Windows.Forms.MenuItem();
this.menuItem15 = new System.Windows.Forms.MenuItem();
this.menuItem16 = new System.Windows.Forms.MenuItem();
this.menuItem7 = new System.Windows.Forms.MenuItem();
this.menuItem17 = new System.Windows.Forms.MenuItem();
this.menuItem18 = new System.Windows.Forms.MenuItem();
this.menuItem8 = new System.Windows.Forms.MenuItem();
this.menuItem19 = new System.Windows.Forms.MenuItem();
this.menuItem20 = new System.Windows.Forms.MenuItem();
this.menuItem9 = new System.Windows.Forms.MenuItem();
this.toolBar1 = new System.Windows.Forms.ToolBar();
this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton2 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton3 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton4 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton5 = new System.Windows.Forms.ToolBarButton();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
this.statusBar1 = new System.Windows.Forms.StatusBar();
this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel();
this.statusBarPanel2 = new System.Windows.Forms.StatusBarPanel();
this.statusBarPanel3 = new System.Windows.Forms.StatusBarPanel();
this.statusBarPanel4 = new System.Windows.Forms.StatusBarPanel();
this.statusBarPanel5 = new System.Windows.Forms.StatusBarPanel();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel5)).BeginInit();
this.SuspendLayout();
// 
// mainMenu1
// 
this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
 this.menuItem1,
 this.menuItem4,
 this.menuItem5,
 this.menuItem6,
 this.menuItem7,
 this.menuItem8,
 this.menuItem9});
// 
// menuItem1
// 
this.menuItem1.Index = 0;
this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
 this.menuItem2,
 this.menuItem3});
this.menuItem1.Text = "系统管理";
// 
// menuItem2
// 
this.menuItem2.Index = 0;
this.menuItem2.Text = "添加用户";
this.menuItem2.Click = new System.EventHandler(this.menuItem2_Click);
// 
// menuItem3
// 
this.menuItem3.Index = 1;
this.menuItem3.Text = "新建角色";
this.menuItem3.Click = new System.EventHandler(this.menuItem3_Click);
// 
// menuItem4
// 
this.menuItem4.Index = 1;
this.menuItem4.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
 this.menuItem10,
 this.menuItem11});
this.menuItem4.Text = "专业管理";
// 
// menuItem10
// 
this.menuItem10.Index = 0;
this.menuItem10.Text = "添加专业";
this.menuItem10.Click = new System.EventHandler(this.menuItem10_Click);
// 
// menuItem11
// 
this.menuItem11.Index = 1;
this.menuItem11.Text = "浏览专业";
this.menuItem11.Click = new System.EventHandler(this.menuItem11_Click);
// 
// menuItem5
// 
this.menuItem5.Index = 2;
this.menuItem5.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
 this.menuItem13,
 this.menuItem14});
this.menuItem5.Text = "课程管理";
// 
// menuItem13
// 
this.menuItem13.Index = 0;
this.menuItem13.Text = "添加课程";
this.menuItem13.Click = new System.EventHandler(this.menuItem13_Click);
// 
// menuItem14
// 
this.menuItem14.Index = 1;
this.menuItem14.Text = "浏览课程";
this.menuItem14.Click = new System.EventHandler(this.menuItem14_Click);
// 
// menuItem6
// 
this.menuItem6.Index = 3;
this.menuItem6.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
 this.menuItem15,
 this.menuItem16});
this.menuItem6.Text = "研究生管理";
// 
// menuItem15
// 
this.menuItem15.Index = 0;
this.menuItem15.Text = "添加信息";
this.menuItem15.Click = new System.EventHandler(this.menuItem15_Click);
// 
// menuItem16
// 
this.menuItem16.Index = 1;
this.menuItem16.Text = "浏览信息";
this.menuItem16.Click = new System.EventHandler(this.menuItem16_Click);
// 
// menuItem7
// 
this.menuItem7.Index = 4;
this.menuItem7.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
 this.menuItem17,
 this.menuItem18});
this.menuItem7.Text = "成绩管理";
// 
// menuItem17
// 
this.menuItem17.Index = 0;
this.menuItem17.Text = "添加成绩";
this.menuItem17.Click = new System.EventHandler(this.menuItem17_Click);
// 
// menuItem18
// 
this.menuItem18.Index = 1;
this.menuItem18.Text = "浏览成绩";
this.menuItem18.Click = new System.EventHandler(this.menuItem18_Click);
// 
// menuItem8
// 
this.menuItem8.Index = 5;
this.menuItem8.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
 this.menuItem19,
 this.menuItem20});
this.menuItem8.Text = "用户管理";
// 
// menuItem19
// 
this.menuItem19.Index = 0;
this.menuItem19.Text = "更改密码";
this.menuItem19.Click = new System.EventHandler(this.menuItem19_Click);
// 
// menuItem20
// 
this.menuItem20.Index = 1;
this.menuItem20.Text = "重新登录";
this.menuItem20.Click = new System.EventHandler(this.menuItem20_Click);
// 
// menuItem9
// 
this.menuItem9.Index = 6;
this.menuItem9.Text = "帮助";
// 
// toolBar1
// 
this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
this.toolBarButton1,
this.toolBarButton2,
this.toolBarButton3,
this.toolBarButton4,
this.toolBarButton5});
this.toolBar1.ButtonSize = new System.Drawing.Size(70, 40);
this.toolBar1.DropDownArrows = true;
this.toolBar1.ImageList = this.imageList1;
this.toolBar1.Location = new System.Drawing.Point(0, 0);
this.toolBar1.Name = "toolBar1";
this.toolBar1.ShowToolTips = true;
this.toolBar1.Size = new System.Drawing.Size(632, 46);
this.toolBar1.TabIndex = 1;
this.toolBar1.ButtonClick = new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
// 
// toolBarButton1
// 
this.toolBarButton1.ImageIndex = 0;
this.toolBarButton1.Text = "专业浏览";
this.toolBarButton1.ToolTipText = "专业";
// 
// toolBarButton2
// 
this.toolBarButton2.ImageIndex = 1;
this.toolBarButton2.Text = "课程浏览";
// 
// toolBarButton3
// 
this.toolBarButton3.ImageIndex = 2;
this.toolBarButton3.Text = "研究生浏览";
// 
// toolBarButton4
// 
this.toolBarButton4.ImageIndex = 3;
this.toolBarButton4.Text = "成绩浏览";
// 
// toolBarButton5
// 
this.toolBarButton5.ImageIndex = 4;
this.toolBarButton5.Text = "修改密码";
// 
// imageList1
// 
this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
// 
// statusBar1
// 
this.statusBar1.Location = new System.Drawing.Point(0, 387);
this.statusBar1.Name = "statusBar1";
this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
 this.statusBarPanel1,
 this.statusBarPanel2,
 this.statusBarPanel3,
 this.statusBarPanel4,
 this.statusBarPanel5});
this.statusBar1.ShowPanels = true;
this.statusBar1.Size = new System.Drawing.Size(632, 22);
this.statusBar1.TabIndex = 3;
this.statusBar1.Text = "statusBar1";
// 
// statusBarPanel1
// 
this.statusBarPanel1.Text = "当前登录用户";
this.statusBarPanel1.Width = 80;
// 
// statusBarPanel2
// 
this.statusBarPanel2.Width = 60;
// 
// statusBarPanel3
// 
this.statusBarPanel3.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
this.statusBarPanel3.Width = 200;
// 
// statusBarPanel4
// 
this.statusBarPanel4.Width = 80;
// 
// statusBarPanel5
// 
this.statusBarPanel5.Width = 120;
// 
// Main
// 
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.BackColor = System.Drawing.Color.Lavender;
this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
this.ClientSize = new System.Drawing.Size(632, 409);
this.Controls.Add(this.statusBar1);
this.Controls.Add(this.toolBar1);
this.IsMdiContainer = true;
this.Menu = this.mainMenu1;
this.Name = "Main";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "主界面";
this.Load = new System.EventHandler(this.Main_Load);
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel5)).EndInit();
this.ResumeLayout(false);

}
#endregion

AddUser addUser;
private void menuItem2_Click(object sender, System.EventArgs e)
{
addUser = new AddUser();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
addUser.MdiParent = this;
addUser.WindowState = FormWindowState.Maximized;
addUser.Show();
}

AddRoles addRoles;
private void menuItem3_Click(object sender, System.EventArgs e)
{
addRoles = new AddRoles();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
addRoles.MdiParent = this;
addRoles.WindowState = FormWindowState.Maximized;
addRoles.Show();
}

MajorAdd majorAdd;
private void menuItem10_Click(object sender, System.EventArgs e)
{
majorAdd = new MajorAdd();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
majorAdd.MdiParent = this;
majorAdd.WindowState = FormWindowState.Maximized;
majorAdd.Show();
}

Major major;
private void menuItem11_Click(object sender, System.EventArgs e)
{
major = new Major();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
major.MdiParent = this;
major.WindowState = FormWindowState.Maximized;
major.Show();
}

CourseAdd courseAdd;
private void menuItem13_Click(object sender, System.EventArgs e)
{
courseAdd = new CourseAdd();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
courseAdd.MdiParent = this;
courseAdd.WindowState = FormWindowState.Maximized;
courseAdd.Show();
}

Course course;
private void menuItem14_Click(object sender, System.EventArgs e)
{
course = new Course();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
course.MdiParent = this;
course.WindowState = FormWindowState.Maximized;
course.Show();
}

StudentAdd studentAdd;
private void menuItem15_Click(object sender, System.EventArgs e)
{
studentAdd = new StudentAdd();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
studentAdd.MdiParent = this;
studentAdd.WindowState = FormWindowState.Maximized;
studentAdd.Show();
}

Student student;
private void menuItem16_Click(object sender, System.EventArgs e)
{
student = new Student();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
student.MdiParent = this;
student.WindowState = FormWindowState.Maximized;
student.Show();
}

ScoreAdd scoreAdd;
private void menuItem17_Click(object sender, System.EventArgs e)
{
scoreAdd = new ScoreAdd();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
scoreAdd.MdiParent = this;
scoreAdd.WindowState = FormWindowState.Maximized;
scoreAdd.Show();
}

Score score;
private void menuItem18_Click(object sender, System.EventArgs e)
{
score = new Score();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
score.MdiParent = this;
score.WindowState = FormWindowState.Maximized;
score.Show();
}

private void menuItem20_Click(object sender, System.EventArgs e)
{
((System.Windows.Forms.Form)this.Tag).Visible=true;
this.Close();
}

ModifyCode modifyCode;
private void menuItem19_Click(object sender, System.EventArgs e)
{
modifyCode = new ModifyCode();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
modifyCode.MdiParent = this;
modifyCode.Tag = this.statusBarPanel2.Text.Trim();
modifyCode.WindowState = FormWindowState.Maximized;
modifyCode.Show();
}

private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
{
switch(toolBar1.Buttons.IndexOf(e.Button))
{
case 0:
Form major = new Major();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
major.MdiParent = this;
major.WindowState = FormWindowState.Maximized;
major.Show();
break;
case 1:
Form course = new Course();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
course.MdiParent = this;
course.WindowState = FormWindowState.Maximized;
course.Show();
break;
case 2:
Form student = new Student();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
student.MdiParent = this;
student.WindowState = FormWindowState.Maximized;
student.Show();
break;
case 3:
Form score = new Score();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
score.MdiParent = this;
score.WindowState = FormWindowState.Maximized;
score.Show();
break;
case 4:
Form modifyCode = new ModifyCode();
for(int x=0;x<MdiChildren.Length;x )
{
Form tempChild = (Form)MdiChildren[x];
tempChild.Close();
}
modifyCode.MdiParent = this;
modifyCode.Tag = this.statusBarPanel2.Text.Trim();
modifyCode.WindowState = FormWindowState.Maximized;
modifyCode.Show();
break;
}
}

private void Main_Load(object sender, System.EventArgs e)
{
this.statusBarPanel3.Text=DateTime.Now.ToString();
this.statusBarPanel4.Text="作者:ddl";
this.statusBarPanel5.Text="研究生管理信息系统";
}
}
}