📜  c# 是或否对话框 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:53.339000             🧑  作者: Mango

代码示例1
DialogResult dialogResult = MessageBox.Show("Sure", "Some Title", MessageBoxButtons.YesNo);
if(dialogResult == DialogResult.Yes)
{
    //do something
}
else if (dialogResult == DialogResult.No)
{
    //do something else
}