private void setAllCam(VsCamera[] camLit) { try { if (camList != null) { this.camList = camLit; listCameras.Items.Clear(); foreach (VsCamera c in camList) { listCameras.Items.Add("" + c.location); } } setVsTimeLine(); } catch (Exception err) { logger.Log(LogLevel.Error, err.Message + " " + err.Source + " " + err.StackTrace); ; } }
public void setCam(VsCamera[] camData) { treeView1.Nodes.Clear(); foreach (var cam in camData) { TreeNode node = new TreeNode(); node.Text = cam.location; node.Name = cam.cameraID; node.ImageIndex = 0; node.SelectedImageIndex = 0; treeView1.Nodes.Add(node); } }