Пример #1
0
        public string GetLocationForList()
        {
            string result = Location;

            if (result != "")
            {
                result += " - ";
            }
            result += CountriesManager.GetNameFromCode(CountryCode);
            return(result);
        }
Пример #2
0
        public string GetNameWithLocation()
        {
            string country = CountriesManager.GetNameFromCode(CountryCode);
            string result  = DisplayName;

            if ((country != "") || (Location != ""))
            {
                result += " (";
                if (country != "")
                {
                    result += country;
                }
                if (Location != "")
                {
                    if (country != "")
                    {
                        result += ", ";
                    }
                    result += Location;
                }
                result += ")";
            }
            return(result);
        }
Пример #3
0
        public string GetLocationForOrdering()
        {
            string result = CountriesManager.GetNameFromCode(CountryCode) + " - " + Location;

            return(result);
        }