Exemplo n.º 1
0
        private void DeleteLayer()
        {
            var current = CurrentDataContext.Layers.ElementAt(SelectedLayerIndex);

            if (null == current)
            {
                return;
            }

            if (MessageBox.Show($@"Deleting a layer can not be undone! Are you sure you want to delete the [{current.Name}] layer?", "Confirm Deletion", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.Yes)
            {
                EditorScene.DeleteLayer(current);
                HasLayerArangementChanged = true;
                UpdateListDetails();
            }
        }