Пример #1
0
        /// <summary>
        ///
        /// </summary>
        public Preview.Builder Preview(Preview.Config config)
        {
#if MVC
            return(new Preview.Builder(new Preview(config)
            {
                ViewContext = this.HtmlHelper != null ? this.HtmlHelper.ViewContext : null
            }));
#else
            return(new Preview.Builder(new Preview(config)));
#endif
        }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 public Builder(Preview.Config config) : base(new Preview(config))
 {
 }
Пример #3
0
 /// <summary>
 ///
 /// </summary>
 public Preview.Builder Preview(Preview.Config config)
 {
     return(new Preview.Builder(new Preview(config)));
 }