/// <summary> /// instantiate sub section one /// </summary> /// <param name="parent">control to instantiate in</param> private static void InstantiateSubsectionOne(Control parent) { TableCell itemCell = new TextTableCell(); itemCell.VerticalAlign = VerticalAlign.Top; AddressLabel addressControl = new AddressLabel(); itemCell.CssClass = PatientBannerCssClasses.ZoneTwoData; addressControl.ID = PatientBannerControlIds.Address; addressControl.AddressDisplayFormat = AddressDisplayFormat.InForm; itemCell.Controls.Add(addressControl); parent.Controls.Add(itemCell); }
/// <summary> /// Render the build no inside a span /// </summary> private void RenderBuildNo() { // Use the address label control to extract the build no. form nhscui.toolkit.web assembly AddressLabel addresslabel = new AddressLabel(); string buildNumber = System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetAssembly(addresslabel.GetType()).Location).FileVersion; this.buildNo.InnerText = string.Format(CultureInfo.CurrentCulture, "Build No: {0}", buildNumber); // Add the build number so a new version of the site won't use the old stylesheet if (!IsPostBack) { this.mainStylesheet.Href += "?" + buildNumber; } }