Example #1
0
        public bool HandleGroupOperation(EditorCommand command)
        {
            switch (command)
            {
            case EditorCommand.Copy:
                OperationHelper.CopyShapes();
                return(true);

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

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

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

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

            case EditorCommand.RemoveShapes:
                OperationHelper.RemoveShapes();
                return(true);
            }
            return(false);
        }