private static void SetChecked(RvFile pTree, RvTreeRow.TreeSelect nSelection) { pTree.Tree.Checked = nSelection; for (int i = 0; i < pTree.ChildCount; i++) { RvFile d = pTree.Child(i); if (d.IsDir && d.Tree != null) { SetChecked(d, nSelection); } } }
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(RvDir pTree, RvTreeRow.TreeSelect nSelection) { pTree.Tree.Checked = nSelection; for (int i = 0; i < pTree.ChildCount; i++) { RvBase b = pTree.Child(i); if (b is RvDir) { RvDir d = (RvDir)b; if (d.Tree != null) { SetChecked(d, nSelection); } } } }
private static void SetCheckedRecurse(RvFile pTree, RvTreeRow.TreeSelect nSelection, bool isworking, bool shiftPressed) { pTree.Tree.SetChecked(nSelection, isworking); if (shiftPressed) { return; } for (int i = 0; i < pTree.ChildCount; i++) { RvFile d = pTree.Child(i); if (d.IsDir && d.Tree != null) { SetCheckedRecurse(d, nSelection, isworking, false); } } }
private static void SetChecked(RvFile pTree, RvTreeRow.TreeSelect nSelection) { RvTreeRow.OpenStream(); SetCheckedRecurse(pTree, nSelection); RvTreeRow.CloseStream(); }