예제 #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);
        }