Exemplo n.º 1
0
        public void GetNextRenderable()
        {
            //
            // Cycle through generation chain, swap out objects.
            //
            if (!(OutsideSimulatorApp.GetInstance().SceneRootNode.Children.Count((x) => x.Value == ClickedNode) > 0)) return;

            var childName = OutsideSimulatorApp.GetInstance().SceneRootNode.Children.First((x) => x.Value == ClickedNode).Key;
            var nextChain = Renderable.RenderableFactory.GetNextRenderableInModificationChain(ClickedNode.Renderable);

            if (nextChain != null)
            {
                var swapoutaction = new Commands.Undoables.ReplaceRenderable(childName, nextChain);
                swapoutaction.Redo();
                OutsideSimulatorApp.GetInstance().CommandStack.Push(swapoutaction);
            }
        }
Exemplo n.º 2
0
        public void GetNextRenderable()
        {
            //
            // Cycle through generation chain, swap out objects.
            //
            if (!(OutsideSimulatorApp.GetInstance().SceneRootNode.Children.Count((x) => x.Value == ClickedNode) > 0))
            {
                return;
            }

            var childName = OutsideSimulatorApp.GetInstance().SceneRootNode.Children.First((x) => x.Value == ClickedNode).Key;
            var nextChain = Renderable.RenderableFactory.GetNextRenderableInModificationChain(ClickedNode.Renderable);

            if (nextChain != null)
            {
                var swapoutaction = new Commands.Undoables.ReplaceRenderable(childName, nextChain);
                swapoutaction.Redo();
                OutsideSimulatorApp.GetInstance().CommandStack.Push(swapoutaction);
            }
        }