日期:2014-05-17 浏览次数:20827 次
if (e.ClickedItem == 删除选定项ToolStripMenuItem) { if (MessageBox.Show("确认要删除?", "删除确认", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK) { //BaseClass.delete_equ(this.treeView1.SelectedNode.Parent.Text, treeview_sel); } }
private void 删除DToolStripMenuItem_Click(object sender, EventArgs e) { try { if (MessageBox.Show("确认要删除?", "删除确认", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK) { //BaseClass.delete_equ(this.treeView1.SelectedNode.Parent.Text, treeview_sel); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }