Example #1
0
 protected void RecycleElement(CUIListElementScript elementScript, bool disableElement)
 {
     if (disableElement)
     {
         elementScript.Disable();
     }
     this.m_elementScripts.Remove(elementScript);
     this.m_unUsedElementScripts.Add(elementScript);
 }
Example #2
0
 protected void RecycleElement(bool disableElement)
 {
     while (this.m_elementScripts.Count > 0)
     {
         CUIListElementScript cUIListElementScript = this.m_elementScripts[0];
         this.m_elementScripts.RemoveAt(0);
         if (disableElement)
         {
             cUIListElementScript.Disable();
         }
         this.m_unUsedElementScripts.Add(cUIListElementScript);
     }
 }