DialogResult alert = MessageBox.Show("内容", "标题", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation);
if (alert == DialogResult.OK){
    //true
}else{
    //false
}

标签: none

添加新评论