private void btnDelete_Click(object sender, EventArgs e) { if (listView.SelectedItems.Count == 0) { return; } if (MessageBox.Show("您确定要删除列表上所选择的日志吗?(删除后不可恢复)", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) != DialogResult.OK) { return; } LogTable.DeleteSelectedLog(listView); btnSearch_Click(sender, e); }