dd_main.cs
来自「此系统开发了一个公交车管理系统。系统根据权限的不同」· CS 代码 · 共 74 行
CS
74 行
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Configuration;
namespace CarManage
{
public partial class DD_Main : Form
{
public DD_Main()
{
InitializeComponent();
}
private void 排班管理ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
DD_paiban DDp = new DD_paiban();
DDp.MdiParent = this;
DDp.Show();
}
else
{
DD_paiban DDp = new DD_paiban();
DDp.MdiParent = this;
DDp.Show();
}
}
private void 排出时间表ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
DD_paiban DDp = new DD_paiban();
DDp.MdiParent = this;
DDp.Show();
}
else
{
DD_paiban DDp = new DD_paiban();
DDp.MdiParent = this;
DDp.Show();
}
}
private void 考勤录入ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
DD_kaoqin DDk = new DD_kaoqin();
DDk.MdiParent = this;
DDk.Show();
}
else
{
DD_kaoqin DDk = new DD_kaoqin();
DDk.MdiParent = this;
DDk.Show();
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?