示例#1
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");
            }
        }