Crowbar.CrowbarViewContext.CrowbarViewContext C# (CSharp) Method

CrowbarViewContext() public method

Creates a new instance of CrowbarViewContext.
public CrowbarViewContext ( string viewName ) : System
viewName string The name of the view that should be rendered.
return System
        public CrowbarViewContext(string viewName)
        {
            ViewName = Ensure.NotNullOrEmpty(viewName, "viewName");

            ClientValidationEnabled = GetBoolFromAppSettings("ClientValidationEnabled", true);
            UnobtrusiveJavaScriptEnabled = GetBoolFromAppSettings("UnobtrusiveJavaScriptEnabled", true);
        }