2.4.1主界面的功能系统结构图对应
主界面的功能系统结构图对应.PNG
登录成功.PNG
收银员界面.PNG
库管员界面.PNG
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");
}
网友评论