Beispiel #1
0
 public void Render()
 {
     if (Filled())
     {
         if (visual == null)
         {
             visual = renderer.RenderCell(bounds);
         }
     }
     else
     {
         if (visual != null)
         {
             renderer.RemoveCell(visual);
             visual = null;
         }
         for (var i = 0; i < children.Length; i++)
         {
             if (children[i] != null)
             {
                 children[i].Render();
             }
         }
     }
 }