private void ResolveLoadCommand(TapestrySplitViewLoadCommand lc) { history.Push(lc); if(leftNodeView.CurrentNode != lc.LeftNode) { leftNodeView.LoadNode(lc.LeftNode); } if(rightNodeView.CurrentNode != lc.RightNode) { rightNodeView.LoadNode(lc.RightNode); } }
public void PerformLoad(TapestryNodeViewControl originator, TapestryNode nd) { TapestrySplitViewLoadCommand lc = new TapestrySplitViewLoadCommand(); if (originator == leftNodeView) { lc.LeftNode = leftNodeView.CurrentNode; lc.RightNode = nd; } else { lc.LeftNode = nd; lc.RightNode = rightNodeView.CurrentNode; } ResolveLoadCommand(lc); }