private void localVideoCaptureSettingsToolStripMenuItem_Click(object sender, EventArgs e)
{
if ((videoSource != null) && (videoSource is VideoCaptureDevice))
{
try
{
((VideoCaptureDevice)videoSource).DisplayPropertyPage(this.Handle);
}
catch (NotSupportedException)
{
MessageBox.Show("The video source does not support configuration property page.", "Error",
MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}