private void MyVideoInputDlg_Shown(object sender, EventArgs e) { if (m_hCapDev[0] != 0x00000000) { uint nInput = (uint)EXPORTS.InputVideoSourceEnum.QCAP_INPUT_TYPE_SDI; EXPORTS.QCAP_GET_VIDEO_INPUT(m_hCapDev[0], ref nInput); if (nInput == (uint)EXPORTS.InputVideoSourceEnum.QCAP_INPUT_TYPE_COMPOSITE) { RadioButtonCOMPOSITE.Checked = true; } if (nInput == (uint)EXPORTS.InputVideoSourceEnum.QCAP_INPUT_TYPE_SVIDEO) { RadioButtonSVIDEO.Checked = true; } if (nInput == (uint)EXPORTS.InputVideoSourceEnum.QCAP_INPUT_TYPE_HDMI) { RadioButtonInputHDMI.Checked = true; } if (nInput == (uint)EXPORTS.InputVideoSourceEnum.QCAP_INPUT_TYPE_DVI_D) { RadioButtonInputDVI.Checked = true; } if (nInput == (uint)EXPORTS.InputVideoSourceEnum.QCAP_INPUT_TYPE_COMPONENTS) { RadioButtonYCBCR.Checked = true; } if (nInput == (uint)EXPORTS.InputVideoSourceEnum.QCAP_INPUT_TYPE_DVI_A) { RadioButtonRGB.Checked = true; } if (nInput == (uint)EXPORTS.InputVideoSourceEnum.QCAP_INPUT_TYPE_SDI) { RadioButtonSDI.Checked = true; } if (nInput == (uint)EXPORTS.InputVideoSourceEnum.QCAP_INPUT_TYPE_AUTO) { RadioButtonAUTO.Checked = true; } } }