Ejemplo n.º 1
0
 protected void RecycleElement(UIListElementScript elementScript, bool disableElement)
 {
     if (disableElement)
     {
         elementScript.Disable();
     }
     m_elementScripts.Remove(elementScript);
     m_unUsedElementScripts.Add(elementScript);
 }
Ejemplo n.º 2
0
 protected void RecycleElement(bool disableElement)
 {
     while (m_elementScripts.Count > 0)
     {
         UIListElementScript uiListElementScript = m_elementScripts[0];
         m_elementScripts.RemoveAt(0);
         if (disableElement)
         {
             uiListElementScript.Disable();
         }
         m_unUsedElementScripts.Add(uiListElementScript);
     }
 }