private static void SetExpanded(RvFile pTree, bool rightClick, bool isWorking) { if (!rightClick) { pTree.Tree.SetTreeExpanded(!pTree.Tree.TreeExpanded, isWorking); return; } if (!isWorking) { RvTreeRow.OpenStream(); } // Find the value of the first child node. for (int i = 0; i < pTree.ChildCount; i++) { RvFile d = pTree.Child(i); if (!d.IsDir || d.Tree == null) { continue; } //Recusivly Set All Child Nodes to this value SetExpandedRecurse(pTree, !d.Tree.TreeExpanded, isWorking); break; } if (!isWorking) { RvTreeRow.CloseStream(); } }
private static void SetChecked(RvFile pTree, RvTreeRow.TreeSelect nSelection, bool isWorking, bool shiftPressed) { if (!isWorking) { RvTreeRow.OpenStream(); } SetCheckedRecurse(pTree, nSelection, isWorking, shiftPressed); if (!isWorking) { RvTreeRow.CloseStream(); } }
private static void SetChecked(RvFile pTree, RvTreeRow.TreeSelect nSelection) { RvTreeRow.OpenStream(); SetCheckedRecurse(pTree, nSelection); RvTreeRow.CloseStream(); }