📄 pt_main.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace CarManage
{
public partial class PT_Main : Form
{
public PT_Main()
{
InitializeComponent();
}
private void 个人信息查询ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
PT_Person_Message PTPM = new PT_Person_Message();
PTPM.MdiParent = this;
PTPM.Show();
}
else
{
PT_Person_Message PTPM = new PT_Person_Message();
PTPM.MdiParent = this;
PTPM.Show();
}
}
private void 个人公车档案查询ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
PT_Car_Message PTCM = new PT_Car_Message();
PTCM.MdiParent = this;
PTCM.Show();
}
else
{
PT_Car_Message PTCM = new PT_Car_Message();
PTCM.MdiParent = this;
PTCM.Show();
}
}
private void 个人修车记录ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
PT_Car_Repair PTCR = new PT_Car_Repair();
PTCR.MdiParent = this;
PTCR.Show();
}
else
{
PT_Car_Repair PTCR = new PT_Car_Repair();
PTCR.MdiParent = this;
PTCR.Show();
}
}
private void 个人月票销售记录ToolStripMenuItem_Click_1(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
PT_Yuepiao PTY = new PT_Yuepiao();
PTY.MdiParent = this;
PTY.Show();
}
else
{
PT_Yuepiao PTY = new PT_Yuepiao();
PTY.MdiParent = this;
PTY.Show();
}
}
private void 个人票款和油耗信息ToolStripMenuItem_Click_1(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
PT_Oil_Ticket POT = new PT_Oil_Ticket();
POT.MdiParent = this;
POT.Show();
}
else
{
PT_Oil_Ticket POT = new PT_Oil_Ticket();
POT.MdiParent = this;
POT.Show();
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -