protected Control GetCSharpLanguageCodeControl() { string codeFileName = GetCodeFileName("CS"); if (!System.IO.File.Exists(codeFileName)) { return(CreateNotAvailableTextControl()); } return(fCodeRender.GetHTMLFormattedCSFileControl(codeFileName)); }
protected Control CreateTabPageCustomContentControl(string path) { FileInfo fi = new FileInfo(path); switch (fi.Extension) { case ".aspx": case ".ascx": return(fCodeRender.GetHTMLFormattedAspxFileControl(path)); case ".js": return(fCodeRender.GetHTMLFormattedJSFileControl(path)); case ".cs": return(fCodeRender.GetHTMLFormattedCSFileControl(path)); case ".vb": return(fCodeRender.GetHTMLFormattedVBFileControl(path)); default: return(fCodeRender.GetHTMLFormattedXmlFileControl(path)); } }