Пример #1
0
 private void cmbDevices_SelectedIndexChanged(object sender, EventArgs e)
 {
     lstBoxVideoInputs.DataSource = null;
     lstBoxSizeVideo.DataSource   = null;
     videoDeviceInfo = _frmMain.sdi.selectIndexChanged(cmbDevices.SelectedIndex);
     lstBoxVideoInputs.DataSource = videoDeviceInfo.lstPhysicalOuts;
     lstBoxSizeVideo.DataSource   = videoDeviceInfo.lstSizeVideo;
 }
Пример #2
0
        public SDI_Capture(frmMain frm)
        {
            videoDeviceInfo = new VideoDeviceInfo();
            frmMain         = frm;


            tmr        = new Multimedia.Timer();
            tmr.Period = 1000;
            tmr.Mode   = Multimedia.TimerMode.Periodic;
            tmr.Tick  += tmr_Tick;

            //frmMain.videoSourcePlayer.Parent = frmMain.pict1;
            //frmMain.videoSourcePlayer.Parent = frmMain.panelPict;

            /*frmMain.videoSourcePlayer.Parent = frmMain.pict1;
             * frmMain.videoSourcePlayer.Location = new System.Drawing.Point(0, 0);
             * frmMain.videoSourcePlayer.Size = new Size(0,0);*/
        }