예제 #1
0
        private void tlBtnDelete_Click(object sender, EventArgs e)
        {
            if (txtID.Text.Trim() == string.Empty)
            {
                MessageBox.Show("删除--胸部数据--失败!", "错误提示!", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            ChestDataInfo.id = txtID.Text;
            //执行删除
            int id = baseinfo.DeleteChestData(ChestDataInfo);

            MessageBox.Show("删除--胸部数据--成功!", "成功提示!", MessageBoxButtons.OK, MessageBoxIcon.Information);
            dgvChestDataList.DataSource = baseinfo.GetAllChestData("ChestData").Tables[0].DefaultView;
            this.SetdgvChestDataListHeadText();
            this.clearText();
        }