Ejemplo n.º 1
0
        private void AvtForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (CameraCtrl.DeviceValid)
            {
                CameraCtrl.LiveStop();
            }

            if (_bIsStart == true)
            {
                _pGPSCtrl.DestroyGPSCtrl();
            }
        }
Ejemplo n.º 2
0
        private void SettingBtn_Click(object sender, EventArgs e)
        {
            if (CameraCtrl.DeviceValid)
            {
                CameraCtrl.LiveStop();;
            }
            else
            {
                CameraCtrl.Device = "";
            }
            CameraCtrl.ShowDeviceSettingsDialog();

            if (CameraCtrl.DeviceValid)
            {
                // Save the currently used device into a file in order to be able to open it
                // automatically at the next program start.
                CameraCtrl.SaveDeviceStateToFile("device.xml");
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Stop the live video and update the state of the start/stop button.
 /// </summary>
 private void StopLiveVideo()
 {
     CameraCtrl.LiveStop();
 }