示例#1
0
        /// <summary>
        /// Gets the name of the quality.
        /// </summary>
        /// <param name="quality">The quality.</param>
        /// <returns></returns>
        public static string GetQualityName(string quality)
        {
            int counter = 0;

            foreach (string val in _quality)
            {
                if (val == quality)
                {
                    break;
                }

                counter++;
            }

            return(QualityHelper.GetQualityName((Quality)counter));
        }
示例#2
0
 /// <summary>
 /// Gets the name of the quality.
 /// </summary>
 /// <param name="quality">The quality.</param>
 /// <returns></returns>
 public static string GetQualityName(int quality)
 {
     return(QualityHelper.GetQualityName((Quality)quality));
 }