Ejemplo n.º 1
0
        public override string ToString()
        {
            if (!string.IsNullOrEmpty(_fixedValue))
            {
                return(_fixedValue);
            }

            if (string.IsNullOrEmpty(Prefix))
            {
                return(string.Empty);
            }

            string name = Name;

            if (string.IsNullOrEmpty(name))
            {
                name = Suffix;
            }

            string size = "bg_32";

            if (Sizes != null && Sizes.Length > 0)
            {
                size = Sizes.Min().ToString();
            }
            else if (Prefix.Contains("/img/user"))
            {
                size = "64x64";
            }

            return(string.Format("{0}{1}{2}", Prefix, size, name));
        }