private void layers_LayerRemoved(object sender, LayerManagerEventArgs e) { LayerViewModel layerViewModel = layerViewModels.FirstOrDefault(l => l.WrapsLayer(e.Layer)); layerViewModels.Remove(layerViewModel); OnPropertyChanged("Layers"); }
private void layers_LayerAdded(object sender, LayerManagerEventArgs e) { layerViewModels.Add(CreateViewModelFrom(e.Layer)); OnPropertyChanged("Layers"); }