Пример #1
0
        /// <summary>
        /// instantiate name item
        /// </summary>
        /// <param name="parent">control to instantiate in</param>
        private static void InstantiatePatientName(Control parent)
        {
            parent.ID = PatientBannerControlIds.ZoneOnePatientNameCell;

            Image img = new Image();
            img.Width = Unit.Pixel(1);
            img.Height = Unit.Pixel(1);
            img.ID = PatientBannerControlIds.DeceasedPatientTransparentIcon;
            parent.Controls.Add(img);

            NameLabel name = new NameLabel();
            name.ID = PatientBannerControlIds.Name;
            name.CssClass = PatientBannerCssClasses.PatientName;
            parent.Controls.Add(name);

            LiteralControl separator = new LiteralControl(PatientBannerControl.Resources.SeparatorControlHtmlText);
            separator.ID = PatientBannerControlIds.PreferredNameSeparator;
            parent.Controls.Add(separator);

            InstantiateLabelItemPair(
                                parent, 
                                PatientBannerControlIds.PreferredNameLabel, 
                                PatientBannerControlIds.PreferredName,
                                new Label());
        }