private void label1_Click(object sender, EventArgs e)//生成按钮的单击事件 { if (((Label)sender).Text == "系统管理") { panel4.Controls.Clear(); xitongForm zhu = new xitongForm(); zhu.TopLevel = false; this.panel4.Controls.Add(zhu); zhu.Show(); } else if (((Label)sender).Text == "门诊管理") { panel4.Controls.Clear(); gerenzhongxin zhu = new gerenzhongxin(); zhu.TopLevel = false; this.panel4.Controls.Add(zhu); zhu.Show(); } else if (((Label)sender).Text == "财务管理") { panel4.Controls.Clear(); guanlizhongxin zhu = new guanlizhongxin(); zhu.TopLevel = false; this.panel4.Controls.Add(zhu); zhu.Show(); } else if (((Label)sender).Text == "药房管理") { panel4.Controls.Clear(); gerenzhongxin zhu = new gerenzhongxin(); zhu.TopLevel = false; this.panel4.Controls.Add(zhu); zhu.Show(); } else if (((Label)sender).Text == "住院管理") { panel4.Controls.Clear(); xiangmuzhuizong zhu = new xiangmuzhuizong(); zhu.TopLevel = false; this.panel4.Controls.Add(zhu); zhu.Show(); } else if (((Label)sender).Text == "门诊收费") { panel4.Controls.Clear(); gerenzhongxin zhu = new gerenzhongxin(); zhu.TopLevel = false; this.panel4.Controls.Add(zhu); zhu.Show(); } else if (((Label)sender).Text == "药库管理") { panel4.Controls.Clear(); xiangmuzhuizong zhu = new xiangmuzhuizong(); zhu.TopLevel = false; this.panel4.Controls.Add(zhu); zhu.Show(); } }
private void label13_Click(object sender, EventArgs e) { panel4.Controls.Clear(); gerenzhongxin zhu = new gerenzhongxin(); zhu.TopLevel = false; this.panel4.Controls.Add(zhu); zhu.Show(); }