protected void btnImport_Click(object sender, EventArgs e) { wwDbResXConverter Converter = new wwDbResXConverter(Context.Request.PhysicalApplicationPath); Converter.ImportWebResources(); ErrorDisplay.ShowMessage(Res("ResourceImportComplete")); lstResourceIds.SelectedValue = null; GetResourceSet(); }
protected void btnImport_Click(object sender, EventArgs e) { #if OnlineDemo this.ErrorDisplay.ShowError(Res("FeatureDisabled")); return; #endif wwDbResXConverter Converter = new wwDbResXConverter(this.Context.Request.PhysicalApplicationPath); Converter.ImportWebResources(); this.ErrorDisplay.ShowMessage(Res("ResourceImportComplete")); this.lstResourceIds.SelectedValue = null; this.GetResourceSet(); }
protected void btnExportResources_Click(object sender, EventArgs e) { wwDbResXConverter Exporter = new wwDbResXConverter(this.Context.Request.PhysicalApplicationPath); if (!Exporter.GenerateLocalResourceResXFiles()) { ErrorDisplay.ShowError(Res("ResourceGenerationFailed")); return; } if (!Exporter.GenerateGlobalResourceResXFiles()) { ErrorDisplay.ShowError(Res("ResourceGenerationFailed")); return; } this.ErrorDisplay.ShowMessage(Res("ResourceGenerationComplete")); }
protected void btnExportResources_Click(object sender, EventArgs e) { wwDbResXConverter Exporter = new wwDbResXConverter(Context.Request.PhysicalApplicationPath); if (!Exporter.GenerateLocalResourceResXFiles()) { ErrorDisplay.ShowError(Res("ResourceGenerationFailed")); return; } if (!Exporter.GenerateGlobalResourceResXFiles()) { ErrorDisplay.ShowError(Res("ResourceGenerationFailed")); return; } ErrorDisplay.ShowMessage(Res("ResourceGenerationComplete")); }