示例#1
0
 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);
         }
     }
 }
示例#2
0
 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();
     }
 }
示例#3
0
 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);
             }
         }
     }
 }
示例#4
0
 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);
         }
     }
 }
示例#5
0
 private static void SetChecked(RvFile pTree, RvTreeRow.TreeSelect nSelection)
 {
     RvTreeRow.OpenStream();
     SetCheckedRecurse(pTree, nSelection);
     RvTreeRow.CloseStream();
 }