NotifyUser()
{
NotificationUserSettings oNotificationUserSettings =
new NotificationUserSettings();
if (!oNotificationUserSettings.TextWrapWillBeTurnedOff)
{
// The user doesn't want to be notified.
return (true);
}
Boolean bReturn = true;
const String Message =
"To speed up the import, text wrapping will be turned off in most"
+ " of the NodeXL workbook. Do you want to continue with the"
+ " import?"
;
NotificationDialog oNotificationDialog = new NotificationDialog(
"Text Wrapping", SystemIcons.Warning, Message);
if (oNotificationDialog.ShowDialog() != DialogResult.Yes)
{
bReturn = false;
}
if (oNotificationDialog.DisableFutureNotifications)
{
oNotificationUserSettings.TextWrapWillBeTurnedOff = false;
oNotificationUserSettings.Save();
}
return (bReturn);
}