2.4.1主界面的功能系统结构图对应
2.4.5 重要代码片段
private void 打开ToolStripMenuItem_Click(object sender, EventArgs e)
{
FormChild frmChild = new FormChild();
frmChild.MdiParent = this;
frmChild.Show();
// 试一试frmChild.ShowDialog()看看什么效果
}
private void QueryProtoolStripMenuItem_Click(object sender, EventArgs e)
{
QueryProForm queryForm = new QueryProForm();
queryForm.MdiParent = this;
queryForm.Show();
}
private void MainForm_Load(object sender, EventArgs e)
{
datetoolStripStatusLabel.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
usertoolStripStatusLabel.Text = userName;
}
private void timer1_Tick(object sender, EventArgs e)
{
datetoolStripStatusLabel.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
}