Пример #1
0
        public FormMember(Reflection.IClassMember member)
            : base(member)
        {
            this._Label = new Element("label");
            this._Restrictions = new Restrictions.RestrictionList(member.MemberInfo, true);
            this._Interceptors = new Interceptors.InterceptorList(member.MemberInfo, true);
            LabelAttribute label = member.GetAttribute<LabelAttribute>(true);

            if (label != null)
                this._Label.Children.AddLast(new Text(label.Text));
            else
                this._Label.Children.AddLast(new Text(member.MemberName));
        }
Пример #2
0
 protected override HtmlPresenterControl CreateControl(SingleAnnotationAspectMember <UIControlAttribute> member, string label, string hint, int localeCultureId, Restrictions.RestrictionList restrictions, Interceptors.InterceptorList interceptors, Globalization.GlobalizationList globalization)
 {
     return(new HtmlPresenterControl(
                member,
                label,
                hint,
                localeCultureId,
                restrictions,
                interceptors,
                globalization,
                (HtmlControl)HtmlControlFactory.Instance.CreateControlFor(member.Annotation)));
 }