예제 #1
0
 /// <summary>
 /// Configure the default CV library
 /// </summary>
 public void DefaultCV()
 {
     this.CVList = new MSDataList <CVInfo>();
     foreach (var cv in CV.CV.CVInfoList)
     {
         if (cv.Id.ToLower() == "pato" || cv.Id.ToLower() == "unimod")
         {
             continue;
         }
         var newcv = new CVInfo();
         newcv.FullName = cv.Name;
         newcv.Id       = cv.Id;
         newcv.URI      = cv.URI;
         newcv.Version  = cv.Version;
         this.CVList.Add(newcv);
     }
     this.CvTranslator = new CVTranslator(this.CVList);
 }
        /// <summary>
        /// Configure the default CV library
        /// </summary>
        public void DefaultCV()
        {
            CVList = new MSDataList <CVInfo>();
            foreach (var cv in CV.CV.CVInfoList)
            {
                if (string.Equals(cv.Id, "pato", StringComparison.OrdinalIgnoreCase) ||
                    string.Equals(cv.Id, "unimod", StringComparison.OrdinalIgnoreCase))
                {
                    continue;
                }

                // ReSharper disable once IdentifierTypo
                var newcv = new CVInfo
                {
                    FullName = cv.Name,
                    Id       = cv.Id,
                    URI      = cv.URI,
                    Version  = cv.Version
                };

                CVList.Add(newcv);
            }
            CvTranslator = new CVTranslator(CVList);
        }