private void DisplayFilter(DisplayFilterContext context) {
            var filterDisplay = context.ShapeFactory.AuditTrailFilter__ContentType(
                ContentType: context.Filters.Get("contenttype"),
                ContentTypes: _contentDefinitionManager.ListTypeDefinitions().OrderBy(x => x.DisplayName).ToArray());

            context.FilterDisplay.Add(filterDisplay);
        }
        private void DisplayFilter(DisplayFilterContext context) {
            var contentItemId = context.Filters.Get("content").ToInt32();
            if (contentItemId != null) {
                var contentItem = _contentManager.Get(contentItemId.Value, VersionOptions.AllVersions);
                var filterDisplay = context.ShapeFactory.AuditTrailFilter__ContentItem(ContentItem: contentItem);

                context.FilterDisplay.Add(filterDisplay);
            }
        }
        public override void DisplayFilter(DisplayFilterContext context) {
            var userName = context.Filters.Get("username");
            var fromDate = context.Filters.Get("from.Date");
            var toDate = context.Filters.Get("to.Date");
            var category = context.Filters.Get("category");
            var userNameFilterDisplay = context.ShapeFactory.AuditTrailFilter__Common__User(UserName: userName);
            var dateFromFilterDisplay = context.ShapeFactory.AuditTrailFilter__Common__Date__From(Editor: new DateTimeEditor {Date = fromDate, ShowDate = true});
            var dateToFilterDisplay = context.ShapeFactory.AuditTrailFilter__Common__Date__To(Editor: new DateTimeEditor { Date = toDate, ShowDate = true }); 
            var categoryFilterDisplay = context.ShapeFactory.AuditTrailFilter__Common__Category(
                Categories: _auditTrailManager.Value.DescribeCategories().ToArray(),
                Category: category);

            context.FilterDisplay.Add(dateFromFilterDisplay);
            context.FilterDisplay.Add(dateToFilterDisplay);
            context.FilterDisplay.Add(categoryFilterDisplay);
            context.FilterDisplay.Add(userNameFilterDisplay);
        }
 public virtual void DisplayFilter(DisplayFilterContext context) { }