public void OnNextButtonClicked(View v) { if (_spinner.SelectedItemId > 0) { _textViewError.Visibility = ViewStates.Invisible; Intent intent = new Intent(this, typeof(DeviceRegistration_Step_2)); intent.PutExtra("Country", _countryName); intent.PutExtra("CountryCode", _countryCode.ToString()); intent.PutExtra("CountrySelectedIndex", _spinner.SelectedItemId); StartActivity(intent); } else { _textViewError.Visibility = ViewStates.Visible; _textViewError.Text = GetText(Resource.String.select_country_error); } }
} // !FromString() public static string EnumToString(this CountryCodes c) { // Special treatment for temporary code of Kosovo return(CountryCodes._1A == c ? "1A" : c.ToString("g")); } // !ToString()
} // !FromString() public static string EnumToString(this CountryCodes c) { return(c.ToString("g")); } // !ToString()
/// <summary> /// Get website articles filtered /// </summary> /// <param name="countryCode"></param> /// <returns></returns> public async Task <Website> GetWebsiteArticlesAsync(CountryCodes countryCode, WebsiteFilter websiteFilter) { var result = await GetRequestAsyncV1 <Website>($"/website/{countryCode.ToString().Replace("_", "-").ToLower()}?filter={websiteFilter}"); return(result); }