private void button4_Click(object sender, EventArgs e)
{
var cp = new ConfigureProcessor(CameraControl);
if (cp.ShowDialog(this)== DialogResult.OK)
{
if (CameraControl.Camera != null && CameraControl.Camera.MotionDetector != null)
{
CameraControl.SetDetector();
}
}
cp.Dispose();
}