private void PopulateCameraControl() { int top = lblAuto.Bottom; if (cameraProperties.ContainsKey("exposure_logitech")) { AddCameraProperty("exposure_logitech", CameraLang.FormConfiguration_Properties_Exposure, VendorHelper.GetValueMapper(identifier, "exposure_logitech"), top); } else if (cameraProperties.ContainsKey("exposure")) { AddCameraProperty("exposure", CameraLang.FormConfiguration_Properties_Exposure, VendorHelper.GetValueMapper(identifier, "exposure"), top); } AddCameraProperty("gain", CameraLang.FormConfiguration_Properties_Gain, VendorHelper.GetValueMapper(identifier, "gain"), top + 30); AddCameraProperty("focus", CameraLang.FormConfiguration_Properties_Focus, VendorHelper.GetValueMapper(identifier, "focus"), top + 60); }
private void PopulateCameraControl() { int top = lblAuto.Bottom; bool added = false; if (cameraProperties.ContainsKey("exposure_logitech")) { added = AddCameraProperty("exposure_logitech", CameraLang.FormConfiguration_Properties_Exposure, VendorHelper.GetValueMapper(identifier, "exposure_logitech"), top); } else if (cameraProperties.ContainsKey("exposure")) { added = AddCameraProperty("exposure", CameraLang.FormConfiguration_Properties_Exposure, VendorHelper.GetValueMapper(identifier, "exposure"), top); } top += (added ? 30 : 0); added = AddCameraProperty("gain", CameraLang.FormConfiguration_Properties_Gain, null, top); top += (added ? 30 : 0); AddCameraProperty("focus", CameraLang.FormConfiguration_Properties_Focus, null, top); }