private void areaOffAtMotion_CheckedChanged(object sender, EventArgs e) { CameraRig.updateInfo(bubble.profileInUse, selectedWebcam, CameraRig.infoEnum.areaOffAtMotion, areaOffAtMotion.Checked); CameraRig.rigInfoPopulateForCam(bubble.profileInUse, selectedWebcam); CameraRig.ConnectedCameras[CameraRig.ConfigCam].cam.areaOffAtMotionTriggered = false; CameraRig.ConnectedCameras[CameraRig.ConfigCam].cam.areaOffAtMotionReset = false; }
private void areaOffAtMotion_CheckedChanged(object sender, EventArgs e) { CameraRig.updateInfo(bubble.profileInUse, selectedWebcam, "areaOffAtMotion", areaOffAtMotion.Checked); CameraRig.rigInfoPopulateForCam(bubble.profileInUse, selectedWebcam); CameraRig.rig[CameraRig.drawCam].cam.MotionDetector.areaOffAtMotionTriggered = false; CameraRig.rig[CameraRig.drawCam].cam.MotionDetector.areaOffAtMotionReset = false; }
private void radioButton1_CheckedChanged(object sender, EventArgs e) { CameraRig.updateInfo(bubble.profileInUse, selectedWebcam, CameraRig.infoEnum.areaDetectionWithin, radioButton1.Checked); CameraRig.rigInfoPopulateForCam(bubble.profileInUse, selectedWebcam); config.getProfile(bubble.profileInUse).areaDetectionWithin = radioButton1.Checked; CameraRig.AreaDetectionWithin = radioButton1.Checked; CameraRig.getCam(selectedWebcam).MotionDetector.Reset(); }
private void trkMov_ValueChanged(object sender, EventArgs e) { if (trkMov.Value == 100) { txtMov.Text = "99"; } else { txtMov.Text = trkMov.Value.ToString(); } CameraRig.updateInfo(bubble.profileInUse, selectedWebcam, CameraRig.infoEnum.movementVal, Convert.ToDouble(txtMov.Text) / 100); CameraRig.rigInfoPopulateForCam(bubble.profileInUse, selectedWebcam); }
private void radioButton4_CheckedChanged(object sender, EventArgs e) { if (drawModeOff.Checked) { CameraRig.updateInfo(bubble.profileInUse, selectedWebcam, CameraRig.infoEnum.areaDetection, radioButton4.Checked); CameraRig.rigInfoPopulateForCam(bubble.profileInUse, selectedWebcam); CameraRig.getCam(selectedWebcam).MotionDetector.Reset(); config.getProfile(bubble.profileInUse).areaDetection = radioButton4.Checked; CameraRig.getCam(selectedWebcam).areaDetection = radioButton4.Checked; areaOffAtMotion.Enabled = radioButton4.Checked; groupBox4.Enabled = radioButton4.Checked; showSelection.Enabled = radioButton4.Checked; CameraRig.ConnectedCameras[CameraRig.ConfigCam].cam.MotionDetector.Reset(); } }
private void txtMov_TextChanged(object sender, EventArgs e) { if (!bubble.IsNumeric(txtMov.Text)) { txtMov.Text = "1"; } if (txtMov.Text.Trim() == "0") { txtMov.Text = "1"; } //if (txtMov.Text.Trim() == "100") txtMov.Text = "99"; trkMov.Value = Convert.ToInt32(txtMov.Text); CameraRig.updateInfo(bubble.profileInUse, selectedWebcam, CameraRig.infoEnum.movementVal, Convert.ToDouble(txtMov.Text) / 100); CameraRig.rigInfoPopulateForCam(bubble.profileInUse, selectedWebcam); CameraRig.ConnectedCameras[CameraRig.ConfigCam].cam.movementVal = Convert.ToDouble(txtMov.Text) / 100; }
private void camName_TextChanged(object sender, EventArgs e) { CameraRig.updateInfo(bubble.profileInUse, selectedWebcam, CameraRig.infoEnum.friendlyName, camName.Text); CameraRig.rigInfoPopulateForCam(bubble.profileInUse, selectedWebcam); }