//添加病例 private void BtnCaseAdd_Click(object sender, RoutedEventArgs e) { SectionRoomSo w = new SectionRoomSo(); w.Sname = cboSectionRoom.Text; w.SonSname = txtSonName.Text; string str = new SectionRoomSonBLL().Son(w); if (str == "") { sw.Add(w); } else { MessageBox.Show(str); } SectionroomManage_Load(null, null); }
private void button1_Click(object sender, EventArgs e) { treeView1.Nodes.Clear(); SectionRoomSo w = new SectionRoomSo(); w.Sname = cboSectionRoom.Text; w.SonSname = txtSonName.Text; string str = new SectionRoomSonBLL().Son(w); if (str == "") { sw.Add(w); } else { MessageBox.Show(str); } SectionRoomSon_Load(null, null); }