private void OnLookupISOControlReadinessChanged(object sender, EventArgs e)
{
if (_collectionInfo == null)
return;
if (_lookupISOControl.SelectedLanguage != null)
{
_collectionInfo.Language1Iso639Code = _lookupISOControl.SelectedLanguage.LanguageTag;
_collectionInfo.Language1Name = _lookupISOControl.SelectedLanguage.DesiredName;
_collectionInfo.Country = _lookupISOControl.SelectedLanguage.Countries.FirstOrDefault() ?? string.Empty;
//If there are multiple countries, just leave it blank so they can type something in
if (_collectionInfo.Country.Contains(","))
{
_collectionInfo.Country = "";
}
}
_setNextButtonState(this, _lookupISOControl.SelectedLanguage != null);
}