Пример #1
0
        public void EnforceDependencies()
        {
            try
            {
                // image capture save is not relevant if no images are being captured
                if (imageCaptureEnabledElement.Value == false)
                {
                    saveImageGroup.Selected = 0;
                }
                saveImageElement.GetActiveCell().UserInteractionEnabled = imageCaptureEnabledElement.Value;

                // looped recordings and duration are not relevant unless something is being recorded
                bool isMediaCaptureEnebled = (audioCaptureEnabledElement.Value || videoCaptureEnabledElement.Value);
                if (isMediaCaptureEnebled == false)
                {
                    autoRecordNextMovieElement.Value = false;
                }
                autoRecordNextMovieElement.GetActiveCell().UserInteractionEnabled = isMediaCaptureEnebled;
                durationElement.GetActiveCell().UserInteractionEnabled            = isMediaCaptureEnebled;
            }
            catch
            {
            }
        }