public void UpdateWidth(TextTableCell cell)
 {
     if (cell.Text != null && cell.Text.Length > _width)
     {
         _width = cell.Text.Length;
     }
 }
        /// <summary>
        /// instantiate subsection four
        /// </summary>
        /// <param name="parent">control to instantiate in</param>
        private static void InstantiateSubsectionFour(Control parent)
        {
            TableCell container = new TextTableCell();

            container.CssClass      = PatientBannerCssClasses.ZoneTwoData;
            container.ID            = PatientBannerControlIds.SubsectionFour;
            container.VerticalAlign = VerticalAlign.Top;
            parent.Controls.Add(container);
        }
        /// <summary>
        /// instantiate subsection five
        /// </summary>
        /// <param name="parent">control to instantiate in</param>
        private static void InstantiateSubsectionFive(Control parent)
        {
            TableCell itemCell = new TextTableCell();

            itemCell.ColumnSpan    = 2;
            itemCell.CssClass      = PatientBannerCssClasses.ZoneTwoData;
            itemCell.ID            = PatientBannerControlIds.AllergyDetails;
            itemCell.VerticalAlign = VerticalAlign.Top;
            parent.Controls.Add(itemCell);
        }
        /// <summary>
        /// instantiate subsection two
        /// </summary>
        /// <param name="parent">control to instantiate in</param>
        private static void InstantiateSubsectionTwo(Control parent)
        {
            TableCell itemCell = new TextTableCell();

            itemCell.VerticalAlign = VerticalAlign.Top;
            itemCell.CssClass      = PatientBannerCssClasses.ZoneTwoData;
            ContactLabel contactLabel = new ContactLabel();

            contactLabel.LabelStyle = PatientBannerCssClasses.ZoneTwoLabel;
            contactLabel.ID         = PatientBannerControlIds.ContactDetails;
            itemCell.Controls.Add(contactLabel);

            parent.Controls.Add(itemCell);
        }
        /// <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>
 /// instantiate subsection five
 /// </summary>
 /// <param name="parent">control to instantiate in</param>
 private static void InstantiateSubsectionFive(Control parent)
 {
     TableCell itemCell = new TextTableCell();
     itemCell.ColumnSpan = 2;
     itemCell.CssClass = PatientBannerCssClasses.ZoneTwoData;
     itemCell.ID = PatientBannerControlIds.AllergyDetails;
     itemCell.VerticalAlign = VerticalAlign.Top;
     parent.Controls.Add(itemCell);
 }
 /// <summary>
 /// instantiate subsection four
 /// </summary>
 /// <param name="parent">control to instantiate in</param>
 private static void InstantiateSubsectionFour(Control parent)
 {
     TableCell container = new TextTableCell();
     container.CssClass = PatientBannerCssClasses.ZoneTwoData;
     container.ID = PatientBannerControlIds.SubsectionFour;
     container.VerticalAlign = VerticalAlign.Top;
     parent.Controls.Add(container);
 }
        /// <summary>
        /// instantiate subsection two
        /// </summary>
        /// <param name="parent">control to instantiate in</param>
        private static void InstantiateSubsectionTwo(Control parent)
        {
            TableCell itemCell = new TextTableCell();
            itemCell.VerticalAlign = VerticalAlign.Top;
            itemCell.CssClass = PatientBannerCssClasses.ZoneTwoData;
            ContactLabel contactLabel = new ContactLabel();

            contactLabel.LabelStyle = PatientBannerCssClasses.ZoneTwoLabel;
            contactLabel.ID = PatientBannerControlIds.ContactDetails;
            itemCell.Controls.Add(contactLabel);

            parent.Controls.Add(itemCell);
        }
        /// <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);
        }
 public CellInfo(TextTableCell cell)
 {
     Cell    = cell;
     Rows    = new HashSet <int>();
     Columns = new HashSet <int>();
 }