private void cbDevices_SelectedIndexChanged(object sender, EventArgs e) { mSelectedDevice = mDevices[cbDevices.SelectedIndex]; mDeviceResolutions = QuickCam.GetAvailableResolutions(mSelectedDevice); cbResolutions.Items.Clear(); cbResolutions.Items.AddRange(mDeviceResolutions); }
private void cbResolutions_SelectedIndexChanged(object sender, EventArgs e) { mSelectedResolution = mDeviceResolutions[cbResolutions.SelectedIndex]; if (mCam != null) { mCam.Dispose(); } mCam = new QuickCam(mSelectedDevice, mSelectedResolution); mCam.ResetPTZ(); }
private void CamForm_Load(object sender, EventArgs e) { mDevices = QuickCam.GetAvailableDevices(); cbDevices.Items.AddRange(mDevices); }