Exemplo n.º 1
0
        public static void Cut(this InteractiveScene scene, IObject3D sourceItem = null)
        {
            var selectedItem = scene.SelectedItem;

            if (selectedItem != null)
            {
                Clipboard.Instance.SetText("!--IObjectSelection--!");
                ApplicationController.ClipboardItem = selectedItem.Clone();

                scene.DeleteSelection();
            }
        }
Exemplo n.º 2
0
        public static void Cut(this InteractiveScene scene, IObject3D sourceItem = null)
        {
            var selectedItem = scene.SelectedItem;

            if (selectedItem != null)
            {
                Clipboard.Instance.SetText("!--IObjectSelection--!");
                ApplicationController.ClipboardItem = selectedItem.Clone();
                // put it back in right where we cut it from
                pasteObjectXOffset = 0;

                scene.DeleteSelection();
            }
        }