private void btnDelete_Click(object sender, EventArgs e) { if (!CheckForm()) { return; } GetMessage(); m_lnqJumbly.ID = Convert.ToInt32(dataGridView1.CurrentRow.Cells["序号"].Value); if (!m_bomServer.DeleteJumbly(m_lnqJumbly, out m_err)) { MessageDialog.ShowPromptMessage(m_err); } else { MessageDialog.ShowPromptMessage("删除成功"); } RefreshDataGirdView(m_bomServer.GetJumblyTable()); ClearDate(); }