private void OpenMeetingDialog_Load(object sender, EventArgs e)
 {
     _cameras = _mediamanager.GetCameras();
     cameraBox.Items.Clear();
     foreach (CameraData camera in _cameras)
     {
         cameraBox.Items.Add(camera.Name);
     }
     cameraBox.SelectedIndex = 0;
 }
Esempio n. 2
0
        private void CreateEvent_Load(object sender, EventArgs e)
        {
            _folders = _mediamanager.GetFolders();
            foreach (FolderData folder in _folders)
            {
                folderBox.Items.Add(folder.Name);
            }
            folderBox.SelectedIndex = 0;

            _cameras = _mediamanager.GetCameras();
            foreach (CameraData cam in _cameras)
            {
                cameraBox.Items.Add(cam.Name);
            }
            cameraBox.SelectedIndex = 0;

            _templates = _mediamanager.GetTemplates();
            foreach (TemplateData template in _templates)
            {
                if (template.Type.ToLower() == "player")
                {
                    templateBox.Items.Add(template.Name);
                }
            }
            templateBox.SelectedIndex = 0;

            archiveStatusBox.SelectedIndex = 0;
        }
				public CameraList(BinaryReader bin)
				{
					this.camera_count = bin.ReadUInt32();
					this.camera = new CameraData[this.camera_count];
					for (int i = 0; i < this.camera_count; i++)
						this.camera[i] = new CameraData(bin);
					
					Array.Sort(camera);
				}