void AddUpdate(int layerUpdate, IUpdate newUpdate) { if (layerUpdate >= m_LayerUpdateList.Count) { int addCount = (layerUpdate - m_LayerUpdateList.Count) + 1; for (int i = 0; i < addCount; ++i) { m_LayerUpdateList.Add(null); } } if (m_LayerUpdateList[layerUpdate] == null) { m_LayerUpdateList[layerUpdate] = new LayerUpdate(); } m_LayerUpdateList[layerUpdate].m_UpdateMgr.Add(newUpdate); }
void AddUpdate(int layerUpdate, IUpdate newUpdate) { if(layerUpdate >= m_LayerUpdateList.Count) { int addCount = (layerUpdate - m_LayerUpdateList.Count )+ 1; for(int i = 0; i < addCount; ++i) { m_LayerUpdateList.Add(null); } } if(m_LayerUpdateList[layerUpdate] == null) { m_LayerUpdateList[layerUpdate] = new LayerUpdate(); } m_LayerUpdateList[layerUpdate].m_UpdateMgr.Add(newUpdate); }
public void testLayerUpdateForm() { var LU = new LayerUpdate(); LU.UpdateLayers(); }