public bool HandleGroupOperation(EditorCommand command)
        {
            switch (command)
            {
            case EditorCommand.Copy:
                _geoService.CopyShapes();
                return(true);

            case EditorCommand.Paste:
                _geoService.PasteShapes();
                return(true);

            case EditorCommand.Cut:
                _geoService.CutShapes();
                return(true);

            case EditorCommand.SplitShapes:
                _geoService.ExplodeShapes();
                return(true);

            case EditorCommand.MergeShapes:
                _geoService.MergeShapes();
                return(true);

            case EditorCommand.RemoveShapes:
                _geoService.RemoveSelectedShapes(true);
                return(true);
            }
            return(false);
        }
Exemple #2
0
        public bool HandleGroupOperation(string itemKey)
        {
            switch (itemKey)
            {
            case MenuKeys.MergeShapes:
                _geoprocessingService.MergeShapes();
                return(true);

            case MenuKeys.Copy:
                _geoprocessingService.CopyShapes();
                return(true);

            case MenuKeys.Paste:
                _geoprocessingService.PasteShapes();
                return(true);

            case MenuKeys.Cut:
                _geoprocessingService.CutShapes();
                return(true);

            case MenuKeys.SplitShapes:
                _geoprocessingService.ExplodeShapes();
                return(true);

            case MenuKeys.RemoveShapes:
                _geoprocessingService.RemoveSelectedShapes(true);
                return(true);
            }
            return(false);
        }