Example #1
0
        private void tspParcipantDelete_Click(object sender, EventArgs e)
        {
            DialogResult dr = MessageBox.Show("是否删除当前选中行的项目人员信息!", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information);

            if (dr == DialogResult.Yes)
            {
                if (pbll.Del_ParticipantInfo(Convert.ToInt32(dgvPreUcPar.CurrentRow.Cells["ID"].Value)))
                {
                    ParticipantInfoDataBind();
                }
                else
                {
                    MessageBox.Show("删除失败!");
                }
            }
        }