using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web.Mvc; namespace Bowin.Web.Controls.Mvc { public static class AccordionTreeExtensions { public static MvcHtmlString AccordionTree(this HtmlHelper htmlHelper, List DataItemList, AccordionTreeOptions accordiontreeOptions=null , System.Collections.Generic.IDictionary htmlAttributes = null) { return MvcHtmlString.Create(Bowin.Web.Controls.Mvc.AccordionTree.CreateControl(htmlHelper, DataItemList, accordiontreeOptions, htmlAttributes).Render()); } public static MvcHtmlString Tree(this HtmlHelper htmlHelper, TreeOptions treeOptions = null, System.Collections.Generic.IDictionary htmlAttributes = null) { if (treeOptions == null) { treeOptions = new TreeOptions(); } return MvcHtmlString.Create(Bowin.Web.Controls.Mvc.Tree.CreateControl(htmlHelper, treeOptions, htmlAttributes).Render()); } } }