private void OnLayerListUpdate(string oldKey, LayerListDto layerListDto) { var currentLayerListDto = _layerList .Single(x => x.Key == oldKey); _layerList.Remove(currentLayerListDto); _layerList.Add(layerListDto); objectListViewLayers.BuildList(); objectListViewLayers.Sort(olvPriority, SortOrder.Ascending); }
private void OnLayerListAdd(LayerListDto layerListDto) { _layerList.Add(layerListDto); objectListViewLayers.BuildList(); }