private void btnRemove_Click(object sender, EventArgs e) { if (dgvList.SelectedRows.Count > 0) { string mid = dgvList.SelectedRows[0].Cells[0].Value.ToString(); if (mtiBll.RemoveMTI(mid)) { LoadList(); } else { MessageBox.Show("删除失败"); } } result = DialogResult.OK; }