public bool CreateTable() { #if OnlineDemo throw new ApplicationException(WebUtils.GRes("FeatureDisabled")); #endif if (!Manager.CreateLocalizationTable(null)) throw new ApplicationException(DbIRes.T("LocalizationTableNotCreated", STR_RESOURCESET) + "\r\n" + Manager.ErrorMessage); return true; }
protected void btnCreateTable_Click(object sender, EventArgs e) { #if OnlineDemo this.ErrorDisplay.ShowError(WebUtils.LRes("FeatureDisabled")); return; #endif if (!Manager.CreateLocalizationTable(null)) { ErrorDisplay.ShowError(WebUtils.LRes("LocalizationTableNotCreated") + "<br />" + Manager.ErrorMessage); } else { ErrorDisplay.ShowMessage(WebUtils.LRes("LocalizationTableCreated")); Response.AddHeader("Refresh", "3;" + Request.Url.ToString()); } }