btnResetCurrentOptions_Click
(
object sender,
RibbonControlEventArgs e
)
{
AssertValid();
const String Message =
"Do you want to reset this workbook's options to the options"
+ " used for new NodeXL workbooks?"
;
if (MessageBox.Show(Message, FormUtil.ApplicationName,
MessageBoxButtons.YesNo, MessageBoxIcon.Information)
== DialogResult.Yes)
{
( new NodeXLApplicationSettingsBase() ).
UseNewWorkbookSettingsForThisWorkbook();
OnWorkbookSettingsReplaced();
}
}