Smrf.NodeXL.ExcelTemplate.GraphImportTextWrapManager.NotifyUser C# (CSharp) Method

NotifyUser() private static method

private static NotifyUser ( ) : System.Boolean
return System.Boolean
    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);
    }