Exemplo n.º 1
0
 // Build cameras tree
 public void BuildCamerasTree(GroupCollection groups, CameraCollection cameras)
 {
     page2.BuildCamerasTree(groups, cameras);
 }
Exemplo n.º 2
0
 // Build cameras tree
 public void BuildCamerasTree(GroupCollection groups, CameraCollection cameras)
 {
     this.groups = groups;
     this.cameras = cameras;
     this.camerasTree.BuildCamerasTree(groups, cameras);
     UpdateGridLabels();
 }
Exemplo n.º 3
0
 // Build cameras tree
 public void BuildCamerasTree(GroupCollection groups, CameraCollection cameras)
 {
     page2.BuildCamerasTree(groups, cameras);
 }
Exemplo n.º 4
0
 // Build views of specified parent
 private void BuildViewsTree(GroupCollection groups, ViewCollection views, Group parent, TreeNode parentNode)
 {
     // build all groups
     foreach (Group group in groups)
     {
         if (group.Parent == parent)
         {
             BuildViewsTree(groups, views, group, AddViewsGroup(group, parentNode));
         }
     }
     // build all views
     foreach (View view in views)
     {
         if (view.Parent == parent)
         {
             AddView(view, parentNode);
         }
     }
 }
Exemplo n.º 5
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);
         }
     }
 }
Exemplo n.º 6
0
 // Build views subtree
 public void BuildViewsTree(GroupCollection groups, ViewCollection views)
 {
     if (!camerasOnly)
     {
         BuildViewsTree(groups, views, null, viewsRootNode);
         camerasRootNode.Expand();
     }
 }
Exemplo n.º 7
0
 // Build cameras subtree
 public void BuildCamerasTree(GroupCollection groups, CameraCollection cameras)
 {
     BuildCamerasTree(groups, cameras, null, (camerasOnly) ? null : camerasRootNode);
     if (!camerasOnly)
         camerasRootNode.Expand();
 }