Пример #1
0
 public void UpdateWidth(TextTableCell cell)
 {
     if (cell.Text != null && cell.Text.Length > _width)
     {
         _width = cell.Text.Length;
     }
 }
Пример #2
0
        /// <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);
        }
Пример #3
0
        /// <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);
        }
Пример #4
0
        /// <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);
        }
Пример #5
0
        /// <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);
        }
Пример #6
0
 /// <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);
 }
Пример #7
0
 /// <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);
 }
Пример #8
0
        /// <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);
        }
Пример #9
0
        /// <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>();
 }