时间:2021-03-01 13:40:28 | 栏目:.NET代码 | 点击:次
if (DialogResult.Yes == result)
{
e.Cancel = false; // Cancel属性如果为true,表示取消该事件的执行。
}
else
{
e.Cancel = true;
}
}