private void AvtForm_FormClosing(object sender, FormClosingEventArgs e) { if (CameraCtrl.DeviceValid) { CameraCtrl.LiveStop(); } if (_bIsStart == true) { _pGPSCtrl.DestroyGPSCtrl(); } }
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"); } }
/// <summary> /// Stop the live video and update the state of the start/stop button. /// </summary> private void StopLiveVideo() { CameraCtrl.LiveStop(); }