Example #1
0
        /// ------------------------------------------------------------------------------------
        private bool GetShouldReportHaveConsent()
        {
            var  allParticipants            = MetaDataFile.GetStringValue(SessionFileType.kParticipantsFieldName, string.Empty);
            var  personNames                = FieldInstance.GetMultipleValuesFromText(allParticipants).ToArray();
            bool allParticipantsHaveConsent = personNames.Length > 0;

            return(personNames.All(name => _personInformant.GetHasInformedConsent(name)) &&
                   allParticipantsHaveConsent);
        }
Example #2
0
        /// ------------------------------------------------------------------------------------
        private bool GetShouldReportHaveConsent()
        {
            var contributions = MetaDataFile.GetValue(SessionFileType.kContributionsFieldName, null) as ContributionCollection;
            var personNames   = contributions?.Select(c => c.ContributorName).ToArray();

            if (personNames == null)
            {
                return(false);
            }
            bool allContributorsHaveConsent = personNames.Length > 0;

            return(personNames.All(name => _personInformant.GetHasInformedConsent(name)) &&
                   allContributorsHaveConsent);
        }