/// <summary> /// Gets a value indicating that the specified action is setup page. /// </summary> /// <param name="action">The action to check.</param> /// <returns>true, if the specified action is setup page; otherwise, false.</returns> internal static bool IsSetupPage(ConfigurationDataSet.ActionRow action) { if ((ActionType)action.ActionTypeId == ActionType.Page) { if ((action.ActionId == SetupPageActionId) || (action.ActionId == SetupGlobalNavigationLinkActionId)) { return(true); } else if (!action.IsNavigateUrlNull()) { return(ResourceProvider.IsSetupPageUrl(action.NavigateUrl)); } } return(false); }
/// <summary> /// Gets a value indicating that the specified action is setup page. /// </summary> /// <param name="action">The action to check.</param> /// <returns>true, if the specified action is setup page; otherwise, false.</returns> internal static bool IsSetupPage(Action action) { if ((action.ActionId == SetupPageActionId) || (action.ActionId == SetupGlobalNavigationLinkActionId)) { return(true); } else { if (action.ActionType == ActionType.Page) { return(ResourceProvider.IsSetupPageUrl(action.NavigateUrl)); } } return(false); }