예제 #1
0
파일: bsSpan.cs 프로젝트: KostiaSA/Buhta5
        public static MvcHtmlString bsSpan(this HtmlHelper helper, BinderGetMethod<string> getTextMethod)
        {
            var tag = new bsSpan(helper.ViewData.Model as BaseModel);
            tag.Bind_Text(getTextMethod);

            (helper.ViewData.Model as BaseModel).Helper = helper;
            var script = new StringBuilder();
            var html = new StringBuilder();

            return new MvcHtmlString(tag.GetHtml());
        }
예제 #2
0
파일: bsSpan.cs 프로젝트: KostiaSA/Buhta5
        public static MvcHtmlString bsSpan(this HtmlHelper helper, Action<bsSpan> settings)
        {
            var tag = new bsSpan(helper.ViewData.Model as BaseModel);
            settings(tag);

            (helper.ViewData.Model as BaseModel).Helper = helper;
            //var script = new StringBuilder();
            //var html = new StringBuilder();

            return new MvcHtmlString(tag.GetHtml());
        }