private void btnSelectCamera_Click(object sender, EventArgs e)
{
VideoCaptureDeviceForm form = new VideoCaptureDeviceForm();
if (form.ShowDialog() == DialogResult.OK)
{
VideoCaptureDevice device = new VideoCaptureDevice(form.VideoDevice);
device.VideoResolution = selectResolution(device);
controller.Device = device;
controller.Start();
toolStripStatusLabel1.Text = "Initializing...";
}
}