Пример #1
0
        public override void Process(TagHelperContext context, TagHelperOutput output)
        {
            output.TagName = "";
            var box = new BoxBase();

            if (IsSolid)
            {
                box = new BoxSolidDecorator(box);
            }

            if (!string.IsNullOrWhiteSpace(Title))
            {
                box = new BoxHeaderDecorator(box, Title);
            }


            box.Process(context, output);
            // output.Content.SetHtmlContent(solid);
        }
Пример #2
0
 public BoxHeaderDecorator(BoxBase box, string title)
 {
     this.box   = box;
     this.title = title;
 }
Пример #3
0
 public BoxSolidDecorator(BoxBase box)
 {
     this.box = box;
 }