Smrf.NodeXL.ExcelTemplate.TaskAutomator.EnableLayoutTypeIsNullNotifications C# (CSharp) Method

EnableLayoutTypeIsNullNotifications() private static method

private static EnableLayoutTypeIsNullNotifications ( System.Boolean bNewValue ) : System.Boolean
bNewValue System.Boolean
return System.Boolean
    EnableLayoutTypeIsNullNotifications
    (
        Boolean bNewValue
    )
    {
        NotificationUserSettings oNotificationUserSettings =
            new NotificationUserSettings();

        Boolean bOldValue = oNotificationUserSettings.LayoutTypeIsNull;

        if (bNewValue != bOldValue)
        {
            oNotificationUserSettings.LayoutTypeIsNull = bNewValue;
            oNotificationUserSettings.Save();
        }

        return (bOldValue);
    }