public void AddUnitBeforeNode(IRenderingNode unit, LinkedListNode<IRenderingNode> node)
 {
     if (node == null || unit == null)
         return;
     m_llRenderingNodeList.AddBefore(node, unit);
     unit.BaseInit();
 }
 public void AddUnitAtLast(IRenderingNode unit)
 {
     if (unit == null)
         return;
     m_llRenderingNodeList.AddLast(unit);
     unit.BaseInit();
 }
 public void AddCrucialUnitBeforeNode(string unitName, IRenderingNode unit, LinkedListNode<IRenderingNode> node)
 {
     if (node == null || unit == null)
         return;
     LinkedListNode<IRenderingNode> newUnit = new LinkedListNode<IRenderingNode>(unit);
     m_dicCrucialNodes.Add(unitName, newUnit);
     m_llRenderingNodeList.AddBefore(node, newUnit);
     unit.BaseInit();
 }
 public void AddCrucialUnitAtLast(string unitName, IRenderingNode unit)
 {
     if (unit == null)
         return;
     LinkedListNode<IRenderingNode> newUnit = new LinkedListNode<IRenderingNode>(unit);
     m_dicCrucialNodes.Add(unitName, newUnit);
     m_llRenderingNodeList.AddLast(newUnit);
     unit.BaseInit();
 }
 public void AddUnitAtFirst(IRenderingNode unit)
 {
     if (unit == null)
     {
         return;
     }
     m_llRenderingNodeList.AddFirst(unit);
     unit.BaseInit();
 }
 public void AddUnitBeforeNode(IRenderingNode unit, LinkedListNode <IRenderingNode> node)
 {
     if (node == null || unit == null)
     {
         return;
     }
     m_llRenderingNodeList.AddBefore(node, unit);
     unit.BaseInit();
 }
        public void AddCrucialUnitBeforeNode(string unitName, IRenderingNode unit, LinkedListNode <IRenderingNode> node)
        {
            if (node == null || unit == null)
            {
                return;
            }
            LinkedListNode <IRenderingNode> newUnit = new LinkedListNode <IRenderingNode>(unit);

            m_dicCrucialNodes.Add(unitName, newUnit);
            m_llRenderingNodeList.AddBefore(node, newUnit);
            unit.BaseInit();
        }
        public void AddCrucialUnitAtLast(string unitName, IRenderingNode unit)
        {
            if (unit == null)
            {
                return;
            }
            LinkedListNode <IRenderingNode> newUnit = new LinkedListNode <IRenderingNode>(unit);

            m_dicCrucialNodes.Add(unitName, newUnit);
            m_llRenderingNodeList.AddLast(newUnit);
            unit.BaseInit();
        }