예제 #1
0
파일: rvTree.cs 프로젝트: RomVault/RVWorld
        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();
            }
        }
예제 #2
0
파일: rvTree.cs 프로젝트: RomVault/RVWorld
 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(RvFile pTree, RvTreeRow.TreeSelect nSelection)
 {
     RvTreeRow.OpenStream();
     SetCheckedRecurse(pTree, nSelection);
     RvTreeRow.CloseStream();
 }