C#弹窗询问是否
DialogResult alert = MessageBox.Show("内容", "标题", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation);
if (alert == DialogResult.OK){
//true
}else{
//false
}
DialogResult alert = MessageBox.Show("内容", "标题", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation);
if (alert == DialogResult.OK){
//true
}else{
//false
}