private void PopulateLabels() { this.Title = Resource.FileBrowser; litHeading.Text = Server.HtmlEncode(Resource.FileBrowseDialogHeading); btnSubmit.Text = Resource.SelectButton; btnNewFolder.Text = Resource.FileBrowserCreateFolderButton; btnUpload.Text = Resource.FileManagerUploadButton; regexFile.ErrorMessage = Resource.FileTypeNotAllowed; reqFile.ErrorMessage = Resource.NoFileSelectedWarning; requireFolder.ErrorMessage = Resource.FolderNameRequired; regexFolder.ValidationExpression = SecurityHelper.GetMaxLengthRegexValidationExpression(150); regexFolder.ErrorMessage = Resource.FolderName150Limit; litCreateFolder.Text = Server.HtmlEncode(Resource.FileBrowserCreateFolderHeading); litUpload.Text = Server.HtmlEncode(Resource.FileBrowserUploadHeading); litFolderInstructions.Text = Server.HtmlEncode(Resource.FileBrowserCreateFolderInstructions); litUploadInstructions.Text = Server.HtmlEncode(Resource.FileBrowserUploadInstructions); if (browserType == "folder") { litFileSelectInstructions.Text = Server.HtmlEncode(Resource.FolderBrowserSelectionInstructions); litFileBrowser.Text = string.Format(CultureInfo.InvariantCulture, "<span class='operationheading'>{0}</span>", Resource.FolderBrowser); } else { litFileSelectInstructions.Text = Server.HtmlEncode(Resource.FileBrowserSelectFileInstructions); litFileBrowser.Text = string.Format(CultureInfo.InvariantCulture, "<span class='operationheading'>{0}</span>", Resource.FileBrowser); litPreview.Text = string.Format(CultureInfo.InvariantCulture, "<span class='operationheading'>{0}</span>", Resource.Preview); } chkConstrainImageSize.Text = Resource.FileBrowserResizeForWeb; lnkImageCropper.Text = Resource.CropImageLink; btnDelete.Text = "Delete"; UIHelper.AddConfirmationDialog(btnDelete, "Are you sure you want to delete this file?"); btnDelete.Visible = userCanDeleteFiles; if (Head1.FindControl("treecss") == null) { Literal cssLink = new Literal(); cssLink.ID = "forumcss"; cssLink.Text = "\n<link href='" + Page.ResolveUrl("~/ClientScript/jqueryFileTree/jqueryFileTree.css") + "' type='text/css' rel='stylesheet' media='screen' />"; Head1.Controls.Add(cssLink); } uploader.AddFilesText = Resource.SelectFilesButton; uploader.AddFileText = Resource.SelectFileButton; ///uploader.DropFilesText = Resource.DropFiles; uploader.DropFileText = Resource.DropFile; uploader.UploadButtonText = Resource.UploadButton; uploader.UploadCompleteText = Resource.UploadComplete; uploader.UploadingText = Resource.Uploading; }
private void InitAllContent() { Head1 title = new Head1() { Text = "Trace Output" }; this.Contents.Add(title); AddDocumentOverview(); if (null != this.GenerationData.PerformanceMetrics) { AddPerformance(this.GenerationData.PerformanceMetrics); } if (null != this.GenerationData.TraceLog) { AddTraceLog(this.GenerationData.TraceLog); } }