Ejemplo n.º 1
0
        public void PasteShapes()
        {
            var layer = _context.Legend.SelectedLayer;

            if (layer != null && layer.IsVector && layer.FeatureSet.InteractiveEditing)
            {
                var result = _copyOperation.Paste(layer.Handle, layer.FeatureSet);
                switch (result)
                {
                case PasteResult.Ok:
                    _context.Map.Redraw();
                    MessageService.Current.Info("Shapes were copied.");
                    //App.RefreshUI();
                    break;

                case PasteResult.NoInput:
                    MessageService.Current.Info("No input was found.");
                    break;

                case PasteResult.ShapeTypeMismatch:
                    MessageService.Current.Info("Shape type of source and target shapefiles doesn't match.");
                    break;
                }
            }
        }
Ejemplo n.º 2
0
        public static void PasteShapes()
        {
            var result = _copyOperation.Paste(App.Legend.SelectedLayer, App.SelectedShapefile);

            switch (result)
            {
            case PasteResult.Ok:
                App.Map.Redraw();
                App.RefreshUI();
                MessageHelper.Info("Shapes were copied.");
                break;

            case PasteResult.NoInput:
                MessageHelper.Info("No input was found.");
                break;

            case PasteResult.ShapeTypeMismatch:
                MessageHelper.Info("Shape type of source and target shapefiles doesn't match.");
                break;
            }
        }