📄 frmmdiform.cs
字号:
// toolBarButton1
//
this.toolBarButton1.ImageIndex = 0;
this.toolBarButton1.Text = "档案信息";
//
// toolBarButton2
//
this.toolBarButton2.ImageIndex = 1;
this.toolBarButton2.Text = "成绩管理";
//
// toolBarButton3
//
this.toolBarButton3.ImageIndex = 4;
this.toolBarButton3.Text = "通信录";
//
// toolBarButton4
//
this.toolBarButton4.ImageIndex = 3;
this.toolBarButton4.Text = "数据管理";
//
// toolBarButton5
//
this.toolBarButton5.ImageIndex = 2;
this.toolBarButton5.Text = "关于";
//
// toolBarButton6
//
this.toolBarButton6.ImageIndex = 5;
this.toolBarButton6.Text = "退出";
//
// imageList1
//
this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
this.imageList1.ImageSize = new System.Drawing.Size(20, 20);
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
//
// sbrStatusBar1
//
this.sbrStatusBar1.AllowDrop = true;
this.sbrStatusBar1.Font = new System.Drawing.Font("楷体_GB2312", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.sbrStatusBar1.Location = new System.Drawing.Point(0, 494);
this.sbrStatusBar1.Name = "sbrStatusBar1";
this.sbrStatusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
this.sbrTime,
this.sbrpass,
this.sbrthanks,
this.sbrname});
this.sbrStatusBar1.ShowPanels = true;
this.sbrStatusBar1.Size = new System.Drawing.Size(800, 22);
this.sbrStatusBar1.SizingGrip = false;
this.sbrStatusBar1.TabIndex = 2;
//
// sbrTime
//
this.sbrTime.Text = "当前时间:";
this.sbrTime.Width = 250;
//
// sbrpass
//
this.sbrpass.Text = "版本:V1.0.0";
this.sbrpass.Width = 150;
//
// sbrthanks
//
this.sbrthanks.Text = "制作时间:2007.01.01";
this.sbrthanks.Width = 180;
//
// sbrname
//
this.sbrname.Text = "欢迎使用!毕业生信息管理系统 !";
this.sbrname.Width = 500;
//
// tmrTickTimer
//
this.tmrTickTimer.Enabled = true;
this.tmrTickTimer.Interval = 1000;
this.tmrTickTimer.Tick += new System.EventHandler(this.tmrTickTimer_Tick);
//
// hlpPassenger
//
this.hlpPassenger.HelpNamespace = ".\\\\Help\\毕业生信息管理系统.chm";
//
// frmMdiForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.BackColor = System.Drawing.Color.Silver;
this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
this.ClientSize = new System.Drawing.Size(800, 516);
this.Controls.Add(this.sbrStatusBar1);
this.Controls.Add(this.toolBar1);
this.ForeColor = System.Drawing.Color.Black;
this.HelpButton = true;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.IsMdiContainer = true;
this.Menu = this.mainMenu;
this.MinimumSize = new System.Drawing.Size(808, 548);
this.Name = "frmMdiForm";
this.hlpPassenger.SetShowHelp(this, true);
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "毕业生信息管理系统";
this.Load += new System.EventHandler(this.frmMdiForm_Load);
this.Closed += new System.EventHandler(this.frmMdiForm_Closed);
((System.ComponentModel.ISupportInitialize)(this.sbrTime)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.sbrpass)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.sbrthanks)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.sbrname)).EndInit();
this.ResumeLayout(false);
}
#endregion
private void menuItem3_Click(object sender, System.EventArgs e)
{
DialogResult objDR=MessageBox.Show("您确认要退出吗?","确认",MessageBoxButtons.YesNo,MessageBoxIcon.Question);
if(objDR==DialogResult.Yes)
{
Application.Exit();
}
}
private void menuItem2_Click(object sender, System.EventArgs e)
{
frmlogin objlogin = new frmlogin();
objlogin.Show();
this.Hide();
}
private void tmrTickTimer_Tick(object sender, System.EventArgs e)
{
sbrStatusBar1.Panels[0].Text="\t"+DateTime.Now.ToString();
}
private void frmMdiForm_Load(object sender, System.EventArgs e)
{
f1.Close();
}
private void frmMdiForm_Closed(object sender, System.EventArgs e)
{
f1.Close();
Application.Exit();
}
private void menuItem7_Click(object sender, System.EventArgs e)
{
if(this.MdiChildren.Length>0)
{
this.ActiveMdiChild.Close();
}
frmMinZu objfrmMinZu=new frmMinZu();
objfrmMinZu.MdiParent=this;
objfrmMinZu.Show();
}
private void menuItem15_Click(object sender, System.EventArgs e)
{
if(this.MdiChildren.Length>0)
{
this.ActiveMdiChild.Close();
}
frmManager objfrmManager=new frmManager();
objfrmManager.MdiParent=this;
objfrmManager.Show();
}
private void menuItem10_Click(object sender, System.EventArgs e)
{
if(this.MdiChildren.Length>0)
{
this.ActiveMdiChild.Close();
}
frmAbout objguanyu = new frmAbout();
objguanyu.MdiParent=this;
objguanyu.Show();
}
private void menuItem9_Click(object sender, System.EventArgs e)
{
Help.ShowHelp(this,".\\Help\\毕业生信息管理系统.chm");
}
private void menuItem8_Click(object sender, System.EventArgs e)
{
if(this.MdiChildren.Length>0)
{
this.ActiveMdiChild.Close();
}
frmWenHuaChengDu objfrmWenHuaChengDu=new frmWenHuaChengDu();
objfrmWenHuaChengDu.MdiParent=this;
objfrmWenHuaChengDu.Show();
}
private void menuItem13_Click(object sender, System.EventArgs e)
{
if(this.MdiChildren.Length>0)
{
this.ActiveMdiChild.Close();
}
frmZhuanYe objfrmZhuanYe=new frmZhuanYe();
objfrmZhuanYe.MdiParent=this;
objfrmZhuanYe.Show();
}
private void menuItem16_Click(object sender, System.EventArgs e)
{
if(this.MdiChildren.Length>0)
{
this.ActiveMdiChild.Close();
}
frmDataOut objfrmDataOut=new frmDataOut();
objfrmDataOut.MdiParent=this;
objfrmDataOut.Show();
}
private void menuItem17_Click(object sender, System.EventArgs e)
{
if(this.MdiChildren.Length>0)
{
this.ActiveMdiChild.Close();
}
frmDataCopy objfrmDataCopy=new frmDataCopy();
objfrmDataCopy.MdiParent=this;
objfrmDataCopy.Show();
}
private void menuItem18_Click(object sender, System.EventArgs e)
{
if(this.MdiChildren.Length>0)
{
this.ActiveMdiChild.Close();
}
frmChengJi objfrmChengJi=new frmChengJi();
objfrmChengJi.MdiParent=this;
objfrmChengJi.Show();
}
private void menuItem19_Click(object sender, System.EventArgs e)
{
if(this.MdiChildren.Length>0)
{
this.ActiveMdiChild.Close();
}
frmTongxin objfrmTongxin=new frmTongxin();
objfrmTongxin.MdiParent=this;
objfrmTongxin.Show();
}
private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
{
switch(this.toolBar1.Buttons.IndexOf(e.Button))
{
case 0:
{
this.menuItem15_Click(sender,e);break;
}
case 1:
{
this.menuItem18_Click(sender,e);break;
}
case 2:
{
this.menuItem19_Click(sender,e);break;
}
case 3:
{
this.menuItem17_Click(sender,e);break;
}
case 4:
{
this.menuItem10_Click(sender,e);break;
}
case 5:
{
this.menuItem3_Click(sender,e);break;
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -