I think S. Magus gives a correct and solid answer above.
I would only use this alternative style of coding in a situation where there were several possible results to be examined/acted upon:
switch(MessageBox.Show("Save Analysis and/or Design", "Save", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning))
{
case DialogResult.Yes:
break;
case DialogResult.No:
break;
case DialogResult.Retry:
break;
case DialogResult.Cancel:
break;
default:
break;
}
The above 'takes advantage' of the fact that DialogResult is an Enumeration, and, thus, can be used as the selector in a switch/case statement.