Exemplo n.º 1
0
        public static void SetModeOfDataCollection(this StudyUnit study, string content)
        {
            var collectionEvent = EnsureCollectionEventExists(study);

            var modeOfCollection = new DataCollectionItem();

            modeOfCollection.Description.Current = content;
            collectionEvent.ModesOfCollection.Add(modeOfCollection);
        }
Exemplo n.º 2
0
        private static string BuildHeader(DataCollectionItem item)
        {
            string header   = item.Header;
            string function = item.Function;
            string vehType  = item.VehType;

            return(string.Format(string.IsNullOrWhiteSpace(function)
               ? string.IsNullOrWhiteSpace(vehType) ? header : string.Format("{0}-{1}", header, vehType)
               : string.Format("{0}({1}){2}", header, function, vehType)).Replace(" ", "_").Replace(".", "\x2024"));
        }