private void btnCleanAll_Click(object sender, EventArgs e) { if ( MessageBox.Show("确认要清空所有认识和不认识的单词所有记录?", "确认清空?", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning) == DialogResult.Yes) { if ( MessageBox.Show("确认要清空所有认识和不认识的单词所有记录?此操作不可逆,别后悔哦!", "再次确认清空?", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning) == DialogResult.Yes) { dbOperator.ClearUserVocabulary(); BindList(); MessageBox.Show("已清空,请点击设置词汇量进行重新设置"); } } }