private void InitializeCountries() { _Countries = CountryDataSource.LoadForStore(AbleContext.Current.StoreId, "Name"); //FIND STORE COUNTRY AND COPY TO FIRST POSITION string storeCountry = AbleContext.Current.Store.DefaultWarehouse.CountryCode; if (storeCountry.Length == 0) { storeCountry = "US"; } int index = _Countries.IndexOf(storeCountry); if (index > -1) { Country country = new Country(storeCountry); country.Name = "----------"; _Countries.Insert(0, country); _Countries.Insert(0, _Countries[index + 1]); if (storeCountry == "US") { index = _Countries.IndexOf("CA"); if (index > -1) { _Countries.Insert(1, _Countries[index]); } } else if (storeCountry == "CA") { index = _Countries.IndexOf("US"); if (index > -1) { _Countries.Insert(1, _Countries[index]); } } } }