protected void Render(BrailBase view){ lock (sync){ if (UseCollapseBlock){ view.OutputSubView("partStart", new Dictionary<string, object> {{"this", this}, {"wiki", myapp.files.ReadXml("route.xml?$wiki")}}); } if (ViewName.hasContent()){ view.OutputSubView(ViewName); } else if (null != RenderObject){ RenderObject.Render(view); } else{ InternalRender(view); } if (UseCollapseBlock){ view.OutputSubView("partEnd", new Dictionary<string, object>{{"this", this}}); } } }
/// <summary> /// Pendent /// </summary> /// <param name="name"></param> /// <param name="writer"></param> public void RenderView(string name, TextWriter writer) { parent.OutputSubView(name, writer, ContextVars); }