MessageBoxResult mr = CMessageBox.ShowQuestionMessage("点击“是”继续,点击“否”取消。", "确认删除?"); if (mr == MessageBoxResult.Yes) {}