private void selectCaptureDeviceToolStripMenuItem_Click(object sender, EventArgs e) { using (CaptureDevice DevSelection = new CaptureDevice()) { if (DevSelection.ShowDialog(this) == System.Windows.Forms.DialogResult.OK) { // Give this source to the CPlayer object for preview. HResult hr = m_pPreview.SetDevice(DevSelection.SelectedCaptureDevice); MFError.ThrowExceptionForHR(hr); } } }
private void selectCaptureDeviceToolStripMenuItem_Click(object sender, EventArgs e) { using (CaptureDevice DevSelection = new CaptureDevice()) { if (DevSelection.ShowDialog(this) == System.Windows.Forms.DialogResult.OK) { // Give this source to the CPlayer object for preview. int hr = m_pPreview.SetDevice(DevSelection.SelectedCaptureDevice); MFError.ThrowExceptionForHR(hr); } } }