private void DeleteCulture(int cultureId) { CultureInfo culture = CultureInfoProvider.GetSafeCulture(cultureId); EditedObject = culture; string cultureCode = culture.CultureCode; DataSet ds = CultureInfoProvider.GetCultureSites(cultureCode); if (DataHelper.DataSourceIsEmpty(ds)) { CultureInfoProvider.DeleteCultureInfo(cultureCode); } else { ShowError(GetString("culture_list.errorremoveculture")); } }
private void DeleteCulture(int cultureId) { CultureInfo culture = CultureInfoProvider.GetSafeCulture(cultureId); EditedObject = culture; string cultureCode = culture.CultureCode; DataSet ds = CultureInfoProvider.GetCultureSites(cultureCode); if (DataHelper.DataSourceIsEmpty(ds)) { CultureInfoProvider.DeleteCultureInfo(cultureCode); } else { lblError.Visible = true; lblError.Text += GetString("culture_list.errorremoveculture") + "\n"; } }