/// <summary> /// 添加人员信息 /// </summary> public void LoadNewInfo() { this.panel.Controls.Clear(); MyInfo p = new MyInfo(ma); p.AddPerson(); p.TopLevel = false; p.Dock = DockStyle.Fill; this.panel.Controls.Add(p); p.Show(); }
//人员详情显示 public void LoadMyInfo(PersonPlane pp, Entity.Person per) { this.panel.Controls.Clear(); MyInfo p = new MyInfo(pp, per); p.LoadInfo(); p.TopLevel = false; p.Dock = DockStyle.Fill; this.panel.Controls.Add(p); p.Show(); }