/// <summary>
        /// Determines whether a toolbox section should be visible in the <see cref="ZoneEditor"/>.
        /// </summary>
        /// <param name="section">The section in question.</param>
        /// <param name="context">The filter context passed externally.</param>
        /// <returns><c>true</c> if it should be visible.</returns>
        public bool IsSectionVisible(IToolboxSection section, IToolboxFilterContext context)
        {
            if (section != null && context != null && section.Name == GridWidgetRegistrator.GridSectionName && section.Title == GridWidgetRegistrator.GridSectionTitle)
            {
                return(SystemManager.GetModule("Feather") != null && !(context.ContainerId == "LayoutToolboxContainer" && (context.MediaType == DesignMediaType.NewsletterCampaign || context.MediaType == DesignMediaType.NewsletterTemplate)));
            }

            return(true);
        }
Пример #2
0
        /// <summary>
        /// Determines whether a toolbox section should be visible in the <see cref="ZoneEditor"/>.
        /// </summary>
        /// <param name="section">The section in question.</param>
        /// <returns><c>true</c> if it should be visible.</returns>
        public bool IsSectionVisible(IToolboxSection section)
        {
            if (section != null && section.Name == GridWidgetRegistrator.GridSectionName && section.Title == GridWidgetRegistrator.GridSectionTitle)
            {
                return(SystemManager.GetModule("Feather") != null);
            }

            return(true);
        }
Пример #3
0
 /// <summary>
 /// Determines whether a toolbox section should be visible in the <see cref="ZoneEditor"/>.
 /// </summary>
 /// <param name="section">The section in question.</param>
 /// <returns><c>true</c> if it should be visible.</returns>
 public bool IsSectionVisible(IToolboxSection section)
 {
     return(true);
 }
Пример #4
0
 /// <inheritdoc />
 public virtual bool IsSectionVisible(IToolboxSection section, IToolboxFilterContext context)
 {
     return(true);
 }
 /// <summary>
 /// Determines whether a toolbox section should be visible in the <see cref="ZoneEditor"/>.
 /// </summary>
 /// <param name="section">The section in question.</param>
 /// <returns><c>true</c> if it should be visible.</returns>
 public bool IsSectionVisible(IToolboxSection section)
 {
     return true;
 }