Пример #1
0
        private void layers_LayerRemoved(object sender, LayerManagerEventArgs e)
        {
            LayerViewModel layerViewModel = layerViewModels.FirstOrDefault(l => l.WrapsLayer(e.Layer));

            layerViewModels.Remove(layerViewModel);

            OnPropertyChanged("Layers");
        }
Пример #2
0
        private void layers_LayerAdded(object sender, LayerManagerEventArgs e)
        {
            layerViewModels.Add(CreateViewModelFrom(e.Layer));

            OnPropertyChanged("Layers");
        }