示例#1
0
 /// <summary>
 /// Gets the name of a Pollutant based on the code.
 /// If the code corresponds to a pollutant group, the name for confidnetiality within the group is returned
 /// </summary>
 public static string PollutantName(string code)
 {
     if (ListOfValues.IsPollutantGroup(code))
     {
         return(GetResource("LOV_POLLUTANT", code + ".Confidential"));
     }
     else
     {
         return(GetResource("LOV_POLLUTANT", code));
     }
 }
示例#2
0
        /// <summary>
        /// Gets the short name of a Pollutant based on the code.
        /// If the code corresponds to a pollutant group, the name for confidnetiality within the group is returned
        /// </summary>
        public static string PollutantNameShort(string code)
        {
            string shortCode = code + ".short";

            if (ListOfValues.IsPollutantGroup(code))
            {
                return(GetResource("LOV_POLLUTANT", shortCode + ".Confidential"));
            }
            else
            {
                return(GetResource("LOV_POLLUTANT", shortCode));
            }
        }