예제 #1
0
    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"));
        }
    }
예제 #2
0
    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";
        }
    }