Ejemplo n.º 1
0
 // Build cameras tree
 public void BuildCamerasTree(GroupCollection groups, CameraCollection cameras)
 {
     this.groups  = groups;
     this.cameras = cameras;
     this.camerasTree.BuildCamerasTree(groups, cameras);
     UpdateGridLabels();
 }
Ejemplo n.º 2
0
 // Build cameras subtree
 public void BuildCamerasTree(GroupCollection groups, CameraCollection cameras)
 {
     BuildCamerasTree(groups, cameras, null, (camerasOnly) ? null : camerasRootNode);
     if (!camerasOnly)
     {
         camerasRootNode.Expand();
     }
 }
Ejemplo n.º 3
0
 // Build cameras of specified parent
 private void BuildCamerasTree(GroupCollection groups, CameraCollection cameras, Group parent, TreeNode parentNode)
 {
     // build all groups
     foreach (Group group in groups)
     {
         if (group.Parent == parent)
         {
             BuildCamerasTree(groups, cameras, group, AddCamerasGroup(group, parentNode));
         }
     }
     // build all cameras
     foreach (Camera camera in cameras)
     {
         if (camera.Parent == parent)
         {
             AddCamera(camera, parentNode);
         }
     }
 }
Ejemplo n.º 4
0
 // Build cameras tree
 public void BuildCamerasTree(GroupCollection groups, CameraCollection cameras)
 {
     page2.BuildCamerasTree(groups, cameras);
 }
Ejemplo n.º 5
0
 // Build cameras tree
 public void BuildCamerasTree(GroupCollection groups, CameraCollection cameras)
 {
     this.groups = groups;
     this.cameras = cameras;
     this.camerasTree.BuildCamerasTree(groups, cameras);
     UpdateGridLabels();
 }
Ejemplo n.º 6
0
 // Build cameras tree
 public void BuildCamerasTree(GroupCollection groups, CameraCollection cameras)
 {
     page2.BuildCamerasTree(groups, cameras);
 }
Ejemplo n.º 7
0
 // Build cameras of specified parent
 private void BuildCamerasTree(GroupCollection groups, CameraCollection cameras, Group parent, TreeNode parentNode)
 {
     // build all groups
     foreach (Group group in groups)
     {
         if (group.Parent == parent)
         {
             BuildCamerasTree(groups, cameras, group, AddCamerasGroup(group, parentNode));
         }
     }
     // build all cameras
     foreach (Camera camera in cameras)
     {
         if (camera.Parent == parent)
         {
             AddCamera(camera, parentNode);
         }
     }
 }
Ejemplo n.º 8
0
 // Build cameras subtree
 public void BuildCamerasTree(GroupCollection groups, CameraCollection cameras)
 {
     BuildCamerasTree(groups, cameras, null, (camerasOnly) ? null : camerasRootNode);
     if (!camerasOnly)
         camerasRootNode.Expand();
 }