public void remove(int index) { try { cReportSectionLine w_item = item(index); if (w_item != null) { if (w_item.getControls() != null) { w_item.getControls().clear(); w_item.getControls().setSectionLine(null); w_item.getControls().setCopyColl(null); } m_coll.Remove(m_keys[index]); m_keys.RemoveAt(index); } return; } catch { } }
public void remove(String key) { try { cReportSectionLine w_item = item(key); if (w_item != null) { if (w_item.getControls() != null) { w_item.getControls().clear(); w_item.getControls().setSectionLine(null); w_item.getControls().setCopyColl(null); } m_coll.Remove(key); m_keys.Remove(key); } return; } catch { } }