示例#1
0
        private void bt_delete_Click(object sender, EventArgs e)
        {
            if (str_dwbh == "" || str_fzbh == "")
            {
                return;
            }
            DialogResult dlg = MessageBox.Show("确定要删除所选择的分组吗?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information, MessageBoxDefaultButton.Button2);

            if (dlg == DialogResult.Yes)
            {
                tjglbiz.Delete_TJ_DWFZ_HD(str_dwbh, str_fzbh);
                MessageBox.Show("删除成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                ClearControl();
                tv_tjdw.Nodes.Remove(tv_tjdw.SelectedNode);
                str_fzbh = "";
            }
        }