Пример #1
0
 public LayoutFarm.HtmlBoxes.LayoutVisitor GetSharedHtmlLayoutVisitor(HtmlContainer htmlCont)
 {
     LayoutFarm.HtmlBoxes.LayoutVisitor lay = null;
     if (htmlLayoutVisitorStock.Count == 0)
     {
         lay = new LayoutVisitor(this.gfxplatform);
     }
     else
     {
         lay = this.htmlLayoutVisitorStock.Dequeue();
     }
     lay.Bind(htmlCont);
     return(lay);
 }
Пример #2
0
 public void ReleaseHtmlLayoutVisitor(LayoutFarm.HtmlBoxes.LayoutVisitor lay)
 {
     lay.UnBind();
     this.htmlLayoutVisitorStock.Enqueue(lay);
 }