Пример #1
0
        private void btnStopCapture_Click(object sender, EventArgs e)
        {
            m_ImagingControl.LiveStop();

            chkPause.Checked        = false;
            btnStartCapture.Enabled = true;
            btnStopCapture.Enabled  = false;
            btnClose.Enabled        = true;

            m_ImagingControl.Sink = m_OldSink;

            if (m_OldLiveMode)
            {
                m_ImagingControl.LiveStart();
            }
        }
Пример #2
0
        private void SetupDFKCam()
        {
            var TheImagingControl = new TIS.Imaging.ICImagingControl();

            // Let IC Imaging Control fill the complete form.
            TheImagingControl.Dock = DockStyle.Fill;
            // Allow scaling.
            TheImagingControl.LiveDisplayDefault = false;
            if (TheImagingControl.DeviceValid)
            {
                TheImagingControl.LiveStop();
            }
            TheImagingControl.ShowDeviceSettingsDialog();
            if (TheImagingControl.DeviceValid)
            {
                TheImagingControl.LiveStart();
            }

            InstrumentService.LJVScanCoordinator.TheImagingControl = TheImagingControl;
        }