private void bt_delete_Click(object sender, EventArgs e) { if (str_bh == "") { return; } if (tjglbiz.Exists_tj_dw(str_bh) > 0) { MessageBox.Show("该项目被引用了,不能删除!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } tjglbiz.Delete_tj_dw(str_bh); MessageBox.Show("删除成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); ClearControl(); tv_tjdw.Nodes.Remove(tv_tjdw.SelectedNode); str_bh = ""; }