private void TreeViewEvent_MapNameChanged(object sender, IBasicMap pMap) { if (sender != this) { if (sender == this.m_pTOCTreeView) { TreeViewEvent.OnMapNameChanged(this, pMap); } else { this.RefreshTree(); } } }
private void TreeViewEvent_LayerVisibleChanged(object sender, IBasicMap pMap, ILayer pLayer) { if (sender != this) { if (sender == this.m_pTOCTreeView) { TreeViewEvent.OnLayerVisibleChanged(this, pMap, pLayer); } else { this.RefreshTree(); } } }