コード例 #1
0
        public void DeleteSelected()
        {
            //
            // Delete selected node
            //

            // Get name of descendant
            var childName = OutsideSimulatorApp.GetInstance().SceneRootNode.Children.First((x) => x.Value == ClickedNode).Key;

            var removeAction = new Commands.Undoables.DeleteObject(childName);
            removeAction.Redo();

            OutsideSimulatorApp.GetInstance().CommandStack.Push(removeAction);
        }
コード例 #2
0
        public void DeleteSelected()
        {
            //
            // Delete selected node
            //

            // Get name of descendant
            var childName = OutsideSimulatorApp.GetInstance().SceneRootNode.Children.First((x) => x.Value == ClickedNode).Key;

            var removeAction = new Commands.Undoables.DeleteObject(childName);

            removeAction.Redo();

            OutsideSimulatorApp.GetInstance().CommandStack.Push(removeAction);
        }